"; } if ((strlen($nick) > 32) || (strlen($nick) < 3)) { $badboy .= "Your nickname must be between 3 and 32 characters " . "long.
"; } if (strlen($email) < 7) { $badboy .= "You forgot your email address (this is vital).
"; } if (strlen($email) > 40) { $badboy .= "Your email address is wayyy too long.
"; } if (strlen($badboy) > 0) { $form = 0; } } if ($form) { $db = mysql_connect("localhost", "say2", "heyjude"); mysql_select_db("say2", $db); $password = generate_password(); $query = "insert into user (id, email, tagline, privs, prefs, created, " . "password) values ('$nick','$email','',''," . "'N',NOW(),PASSWORD('$password'))"; if (! mysql_query($query, $db)) { if (mysql_errno() == 1062) { if (preg_match("/key 3/i", mysql_error())) { $badboy .= "That email address already has an account!
"; } else if (preg_match("/key 1/i", mysql_error())) { $badboy .= "That nickname is already being used.
"; } else { $badboy .= "Some key was duplicate (internal error).
"; } } else { $badboy .= "Internal SQL error: " . mysql_error() . "
"; } $form = 0; } else { $message = "Hello! You (or someone using your email address) registered a new\n" . "say2 account on say2.lag.net. Here's your account name and\n" . "password:\n" . "\n" . "Nickname: $nick\n" . "Password: $password\n" . "\n" . "You should login within the next 48 hours (2 days) or the account may\n" . "be erased. Once you login, you will probably want to change your\n" . "password (generally with a command like /pass or .pass) to something\n" . "you're more likely to remember. :)\n" . "\n" . "More information on say2 can be found at this page:\n" . " http://www.lag.net/say2/\n" . "\n" . "Share and enjoy!\n"; mail($email, "Your say2 account is activated!", $message, "From: Alkienet Say2 Server "); ?> Congratulations!

You now have a new say2 account. You should shortly receive an email telling you the password that you'll need to login the first time. Once you get it, login and change your password to something you're more likely to remember, and start chatting with the countless cool people who have been missing from your life!

Join the alkienet say2 server!

0) { echo "Dude, there were issues with your form. Namely:

"; echo "$badboy\n"; echo "

So, er, let's try again.

"; } ?> Fill this out:

Nickname:
Email:

Then, you will receive an email at that address with your brand-new password! The sun will come out and everything will be fresh and new in your life!

Limit one account per email address. Invalid in Canadiga.