"; PRINT "Initial Information

"; PRINT "All Fields are required

"; PRINT "
"; PRINT "Your nick(s) (Info) :
"; PRINT "Your email (Info) :
"; PRINT "Password (Info):
"; PRINT "Retype Password (Info) :
"; PRINT ""; PRINT "
"; PRINT ""; PRINT "

Notes : If your details are accepted, clicking Next will add you to the directory and send a confirmation email, in the following 3 steps you will be able to provide more information about you. If you miss the final 3 steps you can enter the information later by loging in

"; print "Important : You must provide a valid email address. You will have to act on a confirmation email sent to the address you provide to finalise your registration. You will not be able to log in nor will you appear in the Directory until you have followed the steps in the confirmation email. Failure to do this will mean your entry in the Directory will be deleted in 24 hours."; print "


"; print ""; include("./bothtml.php3"); elseif ($step == 1) : if (isset($email) != false) : if ($email == "") : $errmisemail = 1; endif; $evalues = explode('@',$email); $e2values = explode('.',$evalues[1]); $noe2values = count($e2values); if ((strrpos($email, '@') == false ) OR (strrpos($evalues[1], ".") == false) OR (strlen($evalues[0]) == 0) OR ($noe2values < 2)) : $erremail = 1; endif; endif; if (isset($nick) != false) : if ($nick == "") : $errmisnick = 1; endif; endif; if ((isset($pass) != false) OR (isset($pass1) != false)) : if (($pass == "") OR ($pass1 == "")) : $errmispass = 1; endif; if ($pass != $pass1) : $errpass = 1; else : if (strlen($pass) < 3) : $errpasslen = 1; endif; endif; endif; if (($errmisemail != 1) AND ($erremail != 1)) : MYSQL_CONNECT($hostname,$username,$password) OR DIE("Unable to connect to database"); @mysql_select_db("$dbName") or die("Unable to select database"); $query = "SELECT * FROM $table WHERE email = '$email'"; $result = MYSQL_QUERY($query); $number = MYSQL_NUMROWS($result); if ($number > 0) : $errdupemail = 1; endif; mysql_close(); endif; if (($errmisemail) OR ($erremail) OR ($errmisnick) OR ($errmispass) OR ($errpass) OR ($errdupemail) OR ($errpasslen)) { if ((!$usremail) && (!$errmisemail) && (!$erremail) && (!$errdupemail)) : setcookie("usremail","$email",time()+8640000,"","www.tecknoxology.com"); endif; $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 1 of 4"; include("./tophtml.php3"); print "
"; PRINT "Initial Information

"; PRINT "All fields are required

"; PRINT ""; PRINT "Your nick(s) (Info) :
"; if ($errmisnick == 1) : PRINT "You didn't enter a nick, this is a required field.
"; endif; PRINT "Your email (Info) :
"; if ($errmisemail == 1) : PRINT "You didn't enter an email address, this is a required field.
"; endif; if (($erremail == 1) AND ($errmisemail != 1)) : PRINT "You didn't enter a valid email address.
"; endif; if (($errdupemail == 1) AND ($erremail != 1) AND ($errmisemail != 1)) : PRINT "The email address you entered is already used in the database. Info
"; endif; PRINT "Password (Info) :
"; PRINT "Retype Password (Info) :
"; if ($errmispass == 1) : PRINT "You didn't enter the password twice, these are required fields.
"; endif; if (($errpass == 1) AND ($errmispass != 1)) : PRINT "The passwords you entered didn't match.
"; endif; if (($errpasslen) AND ($errpass != 1) AND ($errmispass != 1)) : PRINT "The password you entered was less than the required 3 characters, please use a longer password.
"; endif; PRINT ""; PRINT "


"; PRINT "

Notes : If your details are accepted, clicking Next will add you to the directory and send a confirmation email, in the following 3 steps you will be able to provide more information about you. If you miss the final 3 steps you can enter the information later by loging in

"; print "Important : You must provide a valid email address. You will have to act on a confirmation email sent to the address you provide to finalise your registration. You will not be able to log in nor will you appear in the Directory until you have followed the steps in the confirmation email. Failure to do this will mean your entry in the Directory will be deleted in 24 hours."; print "


"; print "
"; include("./bothtml.php3"); } else { MYSQL_CONNECT($hostname,$username,$password) OR DIE("Unable to connect to database"); @mysql_select_db("$dbName") or die("Unable to select database"); $exptime = time(); $iquery = "INSERT INTO $table VALUES('$nick','$email','$pass','','','','','','','','','','','','','','','','','','','','disal','dob','0','$exptime','NULL')"; $iresult = MYSQL_QUERY($iquery); $squery = "select * from $table where email = '$email'"; $sresult = MYSQL_QUERY($squery); $snumber = MYSQL_NUMROWS($sresult); if ($snumber == 1) : $id = mysql_result($sresult,$i,"id"); srand((double)microtime()*1000000); $rseed = rand(50000,150000); $eid = $rseed . "-" . $id * $rseed; $string = md5($email); $hex = substr($string,0,5); $dec = hexdec($hex); $dec1 = $dec * $id; $fid = substr($dec1,0,10); if ($fid<0) : $fid=0-$fid; endif; $subject = "Registration Confirmation for the Directory of IRC Users - Prompt Action Required"; $header = "From: registration@tecknoxology.com\nReply-To: webmaster@tecknoxology.com\nX-Mailer: www.tecknoxology.com/ircusers originating sender $REMOTE_ADDR\nX-Security-Info: www.tecknoxology.com/irc/users/security"; $message = "This is an automated confirmation email. Action is required to\nfinalise your registration on the Directory of IRC Users.\n\nA valid email address is required to register on the Directory. \nThis confirmation email is to ensure that the email address supplied\nwas both valid and owned by the person who used it. If you did not\nregister or wish to cancel your registration please do not follow\nthe steps outlined in this email. If you believe that this email\naddress was used maliciously then please forward this email to abuse@tecknoxology.com\n\n\nHOW TO CONFIRM YOUR REGISTRATION\n\nPerform one of the following steps\n\n1) Click the link below\n2) Copy and paste the address below into your browser\n\nhttp://www.tecknoxology.com/iuauth.php3?e=$eid&f=$fid&email=$email\n\n3) Visit http://www.tecknoxology.com/iuauth.shtml and enter the\nnumbers as they appear below into the form on that page\n\nFirst Code : $eid\n\nSecond Code : $fid\n\nIf you do not perform any of the 3 steps above your profile on the\nDirectory will be deleted 24 hours after you registered.\n\nIf you have any questions please email webmaster@tecknoxology.com\n\nThank you for registering on the Directory of IRC Users"; mail($email, $subject, $message, $header); else : $efailed = 1; endif; $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 2 of 4"; include("./tophtml.php3"); if (!$efailed) : print "
"; PRINT "You and IRC

"; print "You have been added to the directory, please continue and add more information.

"; PRINT ""; PRINT "Fields marked * are required

"; PRINT "If the server you use is linked to a network, please put the network name and not the specific server

"; PRINT "Network/Server 1 * (Info) :
"; PRINT "Channels on Network/Server 1 * (Info) :
"; PRINT "Network/Server 2 (Info) :
"; PRINT "Channels on Network/Server 2 (Info) :
"; PRINT "Network/Server 3 (Info) :
"; PRINT "Channels on Network/Server 3 (Info) :
"; PRINT "What software do you use to connect to IRC (Info) :
"; PRINT "How long do you spend on IRC per week? (Info) :
"; PRINT ""; PRINT ""; PRINT "


"; PRINT "You can enter more channels or networks/servers in the comment field on the next page"; print "
"; endif; include("./bothtml.php3"); } elseif ($step == 2) : if (isset($network) != false) : if ($network == "") : $errnet = 1; endif; endif; if (isset($channels) != false) : if ($channels == "") : $errchan = 1; endif; endif; if (($errnet == 1) | ($errchan)) { $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 2 of 4"; include("./tophtml.php3"); print "
"; PRINT "You and IRC

"; PRINT ""; PRINT "Fields marked * are required

"; PRINT "If the server you use is linked to a network, please put the network name and not the specific server

"; PRINT "Network/Server 1 * (Info) :
"; if ($errnet == 1) : PRINT "You didn't enter a network/server, this is a required field
"; endif; PRINT "Channels on Network/Server 1 * (Info) :
"; if ($errchan == 1) : PRINT "You didn't enter any channels, this is a required field
"; endif; PRINT "Network/Server 2 (Info) :
"; PRINT "Channels on Network/Server 2 (Info) :
"; PRINT "Network/Server 3 (Info) :
"; PRINT "Channels on Network/Server 3 (Info) :
"; PRINT "What software do you use to connect to IRC (Info) :
"; PRINT "How long do you spend on IRC per week? (Info) :
"; PRINT ""; PRINT "


"; PRINT "You can enter more channels or networks/servers in the 'anything else' field on the next page"; print "
"; include("./bothtml.php3"); } else { $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 3 of 4"; include("./tophtml.php3"); print "
"; PRINT "More about you

"; PRINT ""; PRINT "Your name (Info) :

"; PRINT "Date of Birth - You can select whether you want to show the full date, just your age or neither in a later section (Info) :
"; PRINT ""; PRINT "19

"; PRINT "Sex (Info) :
"; PRINT "City (Info) :
"; PRINT "Country (Info) : "; include("./country_options.php3"); PRINT "
"; PRINT "Interests/Hobbies (Info) :
"; PRINT "ICQ Number (Info) :
"; PRINT "Web site (Info) :
"; PRINT "Picture URL (Info) :
"; PRINT "Anything else (Info) :
"; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT "


"; print "
"; include("./bothtml.php3"); } elseif ($step == 3) : if (($month == '4') | ($month == '6') | ($month == '9') | ($month == '11')) : if ($day == '31') : $errdate = 1; endif; elseif ($month == 2) : if (($day == '30') | ($day == '31')) : $errdate = 1; elseif ($day == '29') : if ((($year % 4) != 0 and ($years % 100) == 0) or ($years %400) != 0) : $errdate = 1; endif; endif; endif; if ($errdate) : $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 3 of 4"; include("./tophtml.php3"); print "
"; PRINT "More about you

"; PRINT ""; PRINT "Your name (Info) :
"; PRINT "Date of Birth - You can select whether you want to show the full date, just your age or neither in a later section (Info) :
"; PRINT ""; PRINT "19
"; print "You entered an invalid date, please try again
"; PRINT "Sex (Info) :
"; PRINT "City (Info) :
"; PRINT "Country (Info) : "; include("./country_options.php3"); PRINT "
"; PRINT "Interests/Hobbies (Info) :
"; PRINT "ICQ Number (Info) :
"; PRINT "Web site (Info) :
"; PRINT "Picture URL (Info) :
"; PRINT "Anything else (Info) :
"; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT "


"; print "
"; include("./bothtml.php3"); elseif (($ctry == "United States of America" ) AND (isset($state) == false)) : $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 3b of 4"; include("./tophtml.php3"); print "
"; PRINT "State

"; PRINT ""; PRINT "Select a state (Info) : "; include("./state_options.php3"); PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT "



"; print "







"; print "
"; include("./bothtml.php3"); else : $topic = "| www.tecknoxology.com | IRC | Users | Add - Step 4 of 4"; include("./tophtml.php3"); print "
"; PRINT "Display Permissions

"; PRINT ""; PRINT "Displaying email (What's this?):

"; PRINT "Display email in results :
"; PRINT "Allow users to email you without disclosing your email :
"; PRINT "Keep email secret :

"; PRINT "Displaying Date of Birth (What's this?):

"; PRINT "Display full Date of Birth :
"; PRINT "Display only age :
"; PRINT "Don't display either :
"; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; if ($website == "http://") : $website = ""; endif; if ($picture == "http://") : $picture = ""; endif; if ($year == "") : $dob = "1000-01-01"; else : $dob = "19" . $year . "-" . $month . "-" . $day; endif; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT "


"; print "
"; include("./bothtml.php3"); endif; elseif ($step == 4) : MYSQL_CONNECT($hostname,$username,$password) OR DIE("Unable to connect to database"); @mysql_select_db("$dbName") or die("Unable to select database"); $iquery = "UPDATE $table SET network='$network',channels='$channels',network2='$network2',channels2='$channels2',network3='$network3',channels3='$channels3',client='$client',time='$time',name='$name',dob='$dob',sex='$sex',city='$city',country='$ctry',state='$state',interests='$interests',icq='$icq',website='$website',picture='$picture',comments='$comments',emailpref='$emailpref',dobpref='$dobpref' where email='$email'"; $iresult = MYSQL_QUERY($iquery); $topic = "| www.tecknoxology.com | IRC | Users | Add - Finished"; include("./tophtml.php3"); print "
"; if ($iresult == 1) : print "Registration Complete

You have been added to the directory with all the information you submitted. To confirm your entry an email containing a link for you to visit has been sent to the address you provided. If you do not visit this link within 24 hours your entry will be deleted.





"; else : print "Oops, Server Error

"; print "An error occured while adding you to the database, this is unlikely to be your fault so please email the webmaster to get it fixed








"; print "$iquery
"; endif; MYSQL_close(); print "
"; include("./bothtml.php3"); endif; ?>