File size: 4.06Kb
<?php
////////////////////////////////////////////////////
/*
*/
//////////////////////////////////////////////////////////
include("xhtmlfunctions.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
?>
<?php
$uid = $_POST["uid"];
$action = $_GET["action"];
$pwd = $_POST["pwd"];
$cpw = $_POST["cpw"];
$refer = $_POST["refer"];
$usx = $_POST["usx"];
$email = $_POST["email"];
$bdyy = $_POST["bdyy"];
$bdym = $_POST["bdym"];
$bdyd = $_POST["bdyd"];
$bdy = "$bdyy-$bdym-$bdyd";
$ulc = $_POST["ulc"];
$lang = $_POST["lang"];
include ("config.php");
include ("core.php");
connectdb();
$brws = explode("/",$_SERVER['HTTP_USER_AGENT']);
$ubr = $brws[0];
$pstyle = gettheme1("1");
echo xhtmlhead("$stitle",$pstyle);
if(!canreg())
{
echo "<p>";
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Registration for this IP range is disabled at the moment, please check later";
echo "</p>";
}else{
echo "<p>";
if ($action=="register"){
echo "<small>";
echo "<img src=\"images/point.gif\" alt=\"!\"/>";
echo "Allowed characters in userid and password are a-z, 0-9, and -_ only<br/>";
echo "<img src=\"images/point.gif\" alt=\"!\"/>";
echo "No vulgar words are accepted in UserID<br/>";
echo "<img src=\"images/point.gif\" alt=\"!\"/>";
echo "UserName and Password must contain at least 4 characters<br/>";
echo "<img src=\"images/point.gif\" alt=\"!\"/>";
echo "UserName must begin with a letter<br/>";
echo "<img src=\"images/point.gif\" alt=\"!\"/>";
echo "Birthday must be in this format YYYY-MM-DD <br/>eg. 16 January 1989 = 1989-01-16<br/>";
echo "<img src=\"images/point.gif\" alt=\"!\"/>";
echo "In the Referal field enter the Nicname of the user who referd you to $stitle<br/><br/>";
echo "</small>";
}else
$tolog = false;
if(trim($uid)=="")
{
echo registerform(1);
}else if(trim($pwd)=="")
{
echo registerform(2);
}else if(trim($cpw)=="")
{
echo registerform(3);
}else if(spacesin($uid)||scharin($uid))
{
echo registerform(4);
}else if(spacesin($pwd)||scharin($pwd))
{
echo registerform(5);
}else if($pwd!=$cpw)
{
echo registerform(6);
}else if(strlen($uid)<4)
{
echo registerform(7);
}else if(strlen($pwd)<4)
{
echo registerform(8);
}else if(isdigitf($uid))
{
echo registerform(11);
}else if(checknick($uid)==1)
{
echo registerform(12);
}else if(checknick($uid)==2)
{
echo registerform(13);
}else if(trim($email)=="14")
{
echo registerform(15);
}
else if(register($uid,$pwd,$usx,$bdy,$ulc,$lang,$email, $ubr)==1)
{
echo registerform(9);
}else if(register($uid,$pwd,$usx,$bdy,$ulc,$lang,$email, $ubr)==2)
{
echo registerform(10);
}else{
/*
$brws = explode(" ",$HTTP_USER_AGENT);
$ubr = $brws[0];
$fp = fopen("usapile113/reg.txt","a+");
fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n");
fclose($fp);
*/
echo "<i>Registration completed successfully!</i> Now you are a proud member in <u>$stitle!</u><br/><br/><b>Bookmark next page</b> for auto login <br/>and Be online at least 20 minutes in $stitle to get validate ur account, If not ur profile will be deleted in 3 Days";
$tolog = true;
}
echo "</p>";
}
echo "<p align=\"center\">";
if($tolog)
{
$msg = "\n Username: ".$uid." \n Password: ".$pwd." \n\n http://chat.Waplive.co.za is a nice friendly chat community we are glad to hav u with us :o) pls feel free to bring ya m8s along \n\n Thank You\n";
$subj = "Registration details for chat.Waplive.co.za";
$headers = 'From: noemail@Waplive.co.za' . "\r\n" .
'Reply-To: noreply@Waplive.co.za' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subj, $msg, $headers);
echo "<a href=\"login.php?loguid=$uid&logpwd=$pwd\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Login</a>";
}else{
echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
}
echo "</p>";
echo xhtmlfoot();
?>