> Register"; if(empty($show_email)) { $show_email = ""; } if(empty($email_list)) { @$email_list = ""; } if(!isset($submit)) { $submit = ""; } if($submit == "Submit") { $u_login = strip_tags($u_login); $u_login = trim($u_login); $u_login = str_replace("&", "", $u_login); $u_login = str_replace(";", "", $u_login); $u_login = str_replace("\"", "", $u_login); $u_login = str_replace("'", "", $u_login); $u_login = str_replace("@", "", $u_login); $u_login = str_replace("!", "", $u_login); $u_login = str_replace("$", "", $u_login); $u_login = str_replace("%", "", $u_login); $u_login = str_replace("^", "", $u_login); $u_login = str_replace("*", "", $u_login); $u_login = str_replace("(", "", $u_login); $u_login = str_replace(")", "", $u_login); $u_login = str_replace(" ", "", $u_login); //$u_login = addslashes($u_login); if($u_login == '' || $u_email == '') { include "header.php"; print "you did not fill in all required fields! (*)"; include "footer.php"; exit; } $d = listall("./db/users"); $c = count($d)-2; for($i=0; $i<=$c; $i++) { $r = def($d[$i], "./db/users"); if(@$u_login == @$r[user_name]) { include "header.php"; print "the username you chose is already in use!"; include "footer.php"; exit; } } $length = "3"; srand((double)microtime()*1000000); $vowels = array("a", "e", "i", "o", "u"); $cons = array("b", "c", "d", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "u", "v", "w", "tr", "cr", "br", "fr", "th", "dr", "ch", "ph", "wr", "st", "sp", "sw", "pr", "sl", "cl"); $num_vowels = count($vowels); $num_cons = count($cons); for($i = 0; $i < $length; $i++){ @$u_pass .= $cons[rand(0, $num_cons - 1)].$vowels[rand(0, $num_vowels - 1)]; } $d = listall("./db/users"); $c = count($d)-2; for($i=0; $i<=$c; $i++) { $r = def($d[$i], "./db/users"); if(@$u_email == @$r[email]) { include "header.php"; print "the email address u chose is already in use!"; include "footer.php"; exit; } } if(strlen($HTTP_POST_VARS["u_sig"]) > 200) { include "header.php"; print "You cannot have more than 200 characters in your signature."; include "footer.php"; exit; } if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$", $u_email)) { include "header.php"; print "please enter a valid email!"; include "footer.php"; exit; } $u_sig = chop($u_sig); $pass = t_encrypt($u_pass, $key); if(substr(trim(strtolower($u_site)), 0, 7) != "http://") { $u_site = "http://" . $u_site; } include "header.php"; add("$u_login<~>$pass<~>1<~>$u_email<~>$show_email<~>$email_list<~>$u_loca<~>$u_site<~>$avatar<~>$u_icq<~>$u_aim<~>$u_msn<~>$u_sig<~>0<~>".date("Y-m-d"), "./db/users", "no"); if (@$email_list == "on") { $write_email = fopen("./db/maillist.dat", "a"); $u_email .= ",,,"; $u_email .= "\r"; fwrite($write_email, $u_email); fclose($write_email); } $register_msg = str_replace("", $u_login, $register_msg); $register_msg = str_replace("", $u_pass, $register_msg); if(!@mail($u_email, $register_sbj, $register_msg, "From: $admin_email")) { error_log ("Unable to send register email conformation to user: $u_login", 3, "./logs/error.log"); } print "You are now registered!

An email has been sent to your email account with a random password,
which you can change at any time. It should arrive within 2 - 5 minutes.

Thank you for registering!"; echo ""; include "footer.php"; } else { include "header.php"; if(isset($id_env)) { echo "You're already logged in."; } else { echo "
$skin_tableheading
Register (note: required fields are marked with a *)
* User Name:
Used for logging in and is your identity throughout the forum
* E-mail Address:
Must be a valid email address (you@host.com). A random Password is sent to the email address that you provide. If you do not provide a valid email address, you will not be able to log in.
Make email address public in profile?    Privacy Policy
* Confirm E-mail Address:
Must be a valid email address (you@host.com)
Location:
Where are you from? (it can be anything)
Website URL:
please include the http:// in front of url
Avatar URL:       read this for avatar info!
Please leave the http:// infront of url
ICQ:
If you have ICQ put your number here
AIM:
If you have AOL Instant messanger, please type your SN (optional)
MSN:
If you have MSN Instant messanger please type your SN (optional)
Signature:
Your signature is appended to each of your messages
$skin_tablefooter"; } include "footer.php"; if (empty($user_env)) { $user = "guest"; } else { $user = "$user_env"; } $month = date("m",time()); $year = date("Y",time()); if ($REMOTE_HOST == "") { $visitor_info = $REMOTE_ADDR; } else { $visitor_info = $REMOTE_HOST; } $base = "http://" . $HTTP_SERVER_VARS['SERVER_NAME'] . "$PHP_SELF"; $x1= "host $REMOTE_ADDR |grep Name"; $x2= $REMOTE_ADDR; $fp = fopen("db/iplog", "a"); $date= "$month $year"; fputs($fp, "$visitor_info -$HTTP_USER_AGENT- $user-
Date/Time: $date$REMOTE_ADDR:$x2 $x1$base:--------------------------------Next Person


\r\n");fclose($fp); } ?>