25) bark("Sorry, username is too long (max is 25 chars)"); if ($wantpassword != $passagain) bark("The passwords didn't match! Must've typoed. Try again."); if (strlen($wantpassword) < 6) bark("Sorry, password is too short (min is 6 chars)"); if (strlen($wantpassword) > 20) bark("Sorry, password is too long (max is 20 chars)"); if ($wantpassword == $wantusername) bark("Sorry, password cannot be same as user name."); if (!validemail($email)) bark("That doesn't look like a valid email address."); if (!validusername($wantusername)) bark("Invalid username. A username can only contain letters and numbers and the characters '-' and '_'."); // make sure user agrees to everything... if ($_POST["rulesverify"] != "yes" || $_POST["faqverify"] != "yes" || $_POST["ageverify"] != "yes") stderr("Signup failed", "Sorry, you're not qualified to become a member of this site."); // check if email addy is already in use $a = (@mysql_fetch_row(@mysql_query("select count(*) from epw_users_data where user_email='$email'"))) or die(mysql_error()); if ($a[0] != 0) bark("The e-mail address $email is already in use."); $wantpasshash = md5($wantpassword); mt_srand ((double)microtime()*1000000); $maxran = 1000000; $check_num = mt_rand(0, $maxran); $check_num = md5($check_num); $ret = mysql_query("INSERT INTO epw_users_data (username, user_password, user_email, user_status, check_num, user_regdate) VALUES (" . implode(",", array_map("sqlesc", array($wantusername, $wantpasshash, $email, 'pending', $check_num))) . ",'" . get_date_time() . "')"); if (!$ret) { if (mysql_errno() == 1062) bark("Username already exists!"); bark("borked"); } $id = mysql_insert_id(); $body = <<Already confirmed\n"); 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("

Account successfully confirmed!

\n"); 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"); stdfoot(); } else { stdhead("Signup confirmation"); print("

Account successfully confirmed!

\n"); 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 { die(); } } else if ($_GET["id"] && $_GET["secret"]) { $id = 0 + $_GET["id"]; $md5 = $_GET["secret"]; if (!$id) { stderr("ERROR", "Incomplete URL used. Please ensure the URL you used is complete."); } $res = mysql_query("SELECT username, user_password, storynum, ublockon, theme, check_num, user_status FROM epw_users_data WHERE user_id = $id"); $row = mysql_fetch_array($res); if (!$row) { stderr("ERROR", "Could not find user info. Please ensure the URL you used is complete, otherwise contact the administrator."); } if ($row["user_status"] != "pending") { header("Refresh: 0; url=signup.php?type=confirmed"); exit(); } $sec = $row["check_num"]; if ($md5 != $sec) { stderr("ERROR", "Password confirmation code does not match. Please ensure the URL you used is complete."); } mysql_query("UPDATE epw_users_data SET user_status='confirmed', check_num='' WHERE user_id=$id AND user_status='pending'"); if (!mysql_affected_rows()) { stderr("Error", "Database error. Please contact an administrator about this."); } function docookie($setuid, $setusername, $setpass, $setstorynum, $setublockon, $settheme) { $info = base64_encode("$setuid:$setusername:$setpass:$setstorynum:$setublockon:$settheme"); setcookie("user","$info",time()+2592000); } docookie($id, $row['username'], $row['user_password'], $row['storynum'], $row['ublockon'], $row['theme']); header("Refresh: 0; url=signup.php?type=confirm"); } else { stdhead("Signup"); ?> Note: You need cookies enabled to sign up or log in.
Note: Creating an account on this site will NOT enable you to download or watch shows. You only need an account if you wish to:
If you don't plan on doing any of the above, a useraccount has no other benefit for you!
Inactive accounts will get deleted after 120 days following a warning email. Unconfirmed accounts after 3 days.
Deleted inactive accounts can NOT be restored, so ensure you keep your email address up to date.

Desired username:
Pick a password:
Enter password again:
Email address:
The email address must be valid. You will receive a confirmation email which you need to respond to. The email address won't be publicly shown anywhere.
I have read the site rules page.
I agree to read the FAQ before asking questions.
I am at least 13 years old.