if ($flag == 1) {go();} else {start();} exit; ?> function start() { global $fName,$mi,$lName,$add1,$add2,$city,$state,$zip,$phone,$whosenumber,$pemail,$web1,$web2,$beAbout,$user,$pass1,$pass2,$un,$tos,$age18,$age13,$offers,$flag; global $temp,$msg1a,$msg1b,$msg2a,$msg2b,$msg3a,$msg3b,$msg4a,$msg5a,$msg5b,$msg6a,$msg7a,$msg8a,$msg8b,$msg9a,$msg9b,$msg10a,$msg10b,$msg11a,$msg11b,$msg12a,$msg12b,$msg13a,$msg13b,$msg14a,$msg15a,$msg16a,$msg17a,$msg18a; ?>
© 2003-2004 YourFans.com
Use of this site is subject to our TOS. All Rights Reserved.
}
?>
function go() {
global $fName,$mi,$lName,$add1,$add2,$city,$state,$zip,$phone,$whosenumber,$pemail,$web1,$web2,$beAbout,$user,$pass1,$pass2,$un,$tos,$age18,$age13,$offers,$flag;
global $temp,$msg1a,$msg1b,$msg2a,$msg2b,$msg3a,$msg3b,$msg4a,$msg5a,$msg5b,$msg6a,$msg7a,$msg8a,$msg8b,$msg9a,$msg9b,$msg10a,$msg10b,$msg11a,$msg11b,$msg12a,$msg12b,$msg13a,$msg13b,$msg14a,$msg15a,$msg16a,$msg17a,$msg18a;
$temp=0;
$fName=trim($fName);
$mi=trim($mi);
$lName=trim($lName);
$add1=trim($add1);
$add2=trim($add2);
$city=trim($city);
$state=trim($state);
$zip=trim($zip);
$phone=trim($phone);
$pemail=trim($pemail);
$pemail=strtolower($pemail);
$web1=trim($web1);
$web1=strtolower($web1);
$web2=trim($web2);
$web2=strtolower($web2);
$beAbout=trim($beAbout);
$user=trim($user);
$user=strtolower($user);
$pass1=trim($pass1);
$pass2=trim($pass2);
if ($fName=="") {$msg1a="Please enter your First Name."; $msg1b="If you are under 13, have your parent use their name."; $temp=1;}
if ($lName=="") {$msg2a="Please enter your Last Name."; $msg2b="If you are under 13, have your parent use their name."; $temp=1;}
if ($add1=="") {$msg3a="Please enter your full address."; $msg3b="If you live in an apartment, please be sure to list the apartment number."; $temp=1;}
if ($city=="") {$msg4a="Please enter your City."; $temp=1;}
if ($state=="") {$msg5a="Please enter your State."; $msg5b="Residents of the UK, in areas that do not have states; enter \"UK\" in the \"State\" field."; $temp=1;}
if ($zip=="") {$msg6a="Please enter your ZIP or Post Code."; $temp=1;}
if ($phone=="") {$msg7a="Please enter your Phone Number."; $temp=1;}
if ($msg7a==""){
if (!preg_match("/^[0-9-]+$/", $phone)) {$msg7a="The Phone Number entered contains invalid characters."; $temp=1;}
if (!preg_match('/\d{3}[\/-]\d{3}[\/-]\d{4}$/',$phone)) {$msg7a="The Phone Number entered is invalid."; $temp=1;}
}
if ($whosenumber=="") {$msg8a="Please select whose the above phone number is."; $msg8b="If none of these apply, click \"Contact Number.\""; $temp=1;}
if ($pemail=="") {$msg9a="Please enter your primary Email address"; $msg9b="This is where your approval code is sent to."; $temp=1;}
if ($msg9a==""){
if (!preg_match("/^[a-z0-9\._-]+@[a-z0-9\._-]+\.+[a-z]{2,3}$/", $pemail)) {$msg9a="The Email address you entered was incomplete or it contained invalid characters."; $msg9b="This is where your approval code is sent to."; $temp=1;}
//if(!eregi("^[a-z0-9\._-]+@[a-z0-9\._-]+\.+[a-z]{2,3}$", $pemail)) {$msg9a="The Email address you entered was incomplete or it contained invalid characters."; $msg9b="This is where your approval code is sent to."; $temp=1;}
$emailtohostname = substr( $pemail, ( strrpos( $pemail, "@" ) +1 ));
if (!checkdnsrr( $emailtohostname, "MX" )) { $msg9a="Invalid Email address."; $msg9b="This is where your approval code is sent to."; $temp=1;}
}
if ($web1=="") {$msg10a="Please enter the URL to a web site that you have created."; $msg10b="If you have not created one, please enter \"NONE\" instead."; $temp=1;}
if ($web2=="") {$msg11a="Please enter the URL to another web site that you have created."; $msg11b="If you have not created two, please enter \"NONE\" instead."; $temp=1;}
if ($beAbout=="") {$msg12a="Please enter what your yourfans.com web site will be about."; $msg12b="This is used to place your web site in our directory."; $temp=1;}
if ($user=="") {$msg13a="Please create a Username."; $msg13b="Make this easy because this will be your login ID and your web site name."; $temp=1;}
if ($msg13a==""){
if (is_dir("$_SERVER[DOCUMENT_ROOT]/$user")) {$msg13a="The Username that you entered is already taken."; $msg13b="Please try a different username (maybe add a number to the end)."; $temp=1;}
if (!preg_match("/^[a-z0-9-]+$/",$user)) {$msg13a="The Username entered contains invalid characters."; $msg13b="Make this easy because this will be your login ID and your web site name."; $temp=1;}
$fp = fopen($_SERVER[DOCUMENT_ROOT]."/admin/restrict.txt", "r");
if ($fp) {
$values = explode("\n", fread($fp, filesize($_SERVER[DOCUMENT_ROOT]."/admin/restrict.txt")));
}
fclose($fp);
for ($i=0;$i
include('programs/bottomlinks2.html'); ?>
include('programs/menu2.html'); ?>
Thank you
for signing up for YourFans.com
We will contact you, by Email, within 12-72 hours.
include('programs/footerlogo.html');
}
}