diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-20 22:30:09 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-20 22:30:15 +0200 |
commit | 80c7437abbb3acde3d7f9fffb0840dc7776246ab (patch) | |
tree | 7ec0e5c06a249a7442867672db48d2613cbdc4df /bin/createaccount.rb | |
parent | d66defa74e2db2215061e4206e7282497c769158 (diff) | |
parent | aba1ea0122d5a90bd0e7ab76dee2818593fe28f8 (diff) | |
download | website-80c7437abbb3acde3d7f9fffb0840dc7776246ab.tar.gz website-80c7437abbb3acde3d7f9fffb0840dc7776246ab.tar.bz2 website-80c7437abbb3acde3d7f9fffb0840dc7776246ab.tar.xz website-80c7437abbb3acde3d7f9fffb0840dc7776246ab.zip |
Merge remote branch 'online-account-registration/master'
Diffstat (limited to 'bin/createaccount.rb')
-rwxr-xr-x | bin/createaccount.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/createaccount.rb b/bin/createaccount.rb index 45a8223..7ed1b33 100755 --- a/bin/createaccount.rb +++ b/bin/createaccount.rb @@ -10,6 +10,10 @@ $mail_subject = 'The Mana World Account registration' $mail_body_success = "Your account was created successfully. Have fun playing themanaworld.\n" $mail_body_error = "The was something wrong with the creation of your account.\n" + "Error message: " +$mysql_hostname = "localhost" +$mysql_database = "test" +$mysql_username = "test" +$mysql_password = "test123" $create_script = "/path/to/script" ############################################################################## @@ -46,7 +50,7 @@ end ############################################################################## -db = Mysql::new("localhost", "test", "test123", "test") +db = Mysql::new($mysql_hostname, $mysql_username, $mysql_password, $mysql_database) db.query("SELECT id, username, password, email, gender FROM tmw_accounts WHERE state = 0").each do |id, username, password, email, g| |