summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Habel <mail@exceptionfault.de>2009-10-20 22:29:04 +0200
committerAndreas Habel <mail@exceptionfault.de>2009-10-20 22:29:04 +0200
commitaba1ea0122d5a90bd0e7ab76dee2818593fe28f8 (patch)
treeab3665e879731d764fec57195408b507f976efbb
parent3b28b034f2a6f263c958b84adf87f096e8440155 (diff)
downloadwebsite-aba1ea0122d5a90bd0e7ab76dee2818593fe28f8.tar.gz
website-aba1ea0122d5a90bd0e7ab76dee2818593fe28f8.tar.bz2
website-aba1ea0122d5a90bd0e7ab76dee2818593fe28f8.tar.xz
website-aba1ea0122d5a90bd0e7ab76dee2818593fe28f8.zip
Added config cars for mysql connection
-rwxr-xr-xbin/createaccount.rb6
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|