From aba1ea0122d5a90bd0e7ab76dee2818593fe28f8 Mon Sep 17 00:00:00 2001 From: Andreas Habel Date: Tue, 20 Oct 2009 22:29:04 +0200 Subject: Added config cars for mysql connection --- bin/createaccount.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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| -- cgit v1.2.3-60-g2f50