require_once("include/bittorrent.php"); dbconn(); $type = $_GET['type']; if( !isset($_GET['type']) ) { stderr( _("Error"), _("Input missing") ); } if ($type == "signup" && mkglobal("email")) { stdhead(_("User signup")); stdmsg( _("Signup successful!"), "A confirmation email has been sent to the address you specified (" . htmlspecialchars($email) . "). You need to read and respond to this email before you can use your account. If you don't do this, the new account will be deleted automatically after a few days."); stdfoot(); stdfoot(); } elseif ($type == "invite" && mkglobal("email")) { stdhead("User invite"); stdmsg("Invite successful!", "A confirmation email has been sent to the address you specified (" . htmlspecialchars($email) . "). They need to read and respond to this email before they can use their account. If they don't do this, the new account will be deleted automatically after a few days. Click HERE to invite someone else."); stdfoot(); } elseif ($type == "confirmed") { stdhead(_("Already confirmed")); print("
This user account has already been confirmed. You can proceed to log in with it.
\n"); stdfoot(); } elseif ($type == "confirm") { if (isset($CURUSER)) { stdhead(_("Signup confirmation")); print("Your account has been activated! You have been automatically logged in. You can now continue to the main page and start using your account.
\n"); print("Before you start using ".$GLOBALS['sitename']." we urge you to read the RULES and the FAQ.
\n"); stdfoot(); } else { stdhead(_("Signup confirmation")); print("Your account has been activated! However, it appears that you could not be logged in automatically. A possible reason is that you disabled cookies in your browser. You have to enable cookies to use your account. Please do that and then log in and try again.
\n"); stdfoot(); } } else stderr( _("Error"), _("Unknown type")); ?>