View file wap/regagree.php

File size: 4.17Kb
<?php
include("inc/func.inc.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php

  if(!db()){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getdberror();
  echo "</body>";
  echo "</html>";
  exit();
  }
 $uid = $_POST["uid"];
 $pwd = $_POST["pwd"];
 $state = $_POST["state"];
 $status = $_POST["status"];
 $cpw = $_POST["cpw"];
 $usx = $_POST['usx'];
 $day = $_POST['day'];
 $loc = $_POST['loc'];
 $month = $_POST['month'];
 $year = $_POST['year'];
 $info = $_POST['info'];
 $email = $_POST["email"];
 $refer = $_POST["refer"];
 $captcha = $_POST["captcha"];
 $ubr = $_SERVER['HTTP_USER_AGENT'];
 $uip = getip();
 $nomon = $_SERVER['HTTP_X_FH_MSISDN'];
 $nomtw = $_SERVER['HTTP_MSISDN'];
 $nomtr = $_SERVER['HTTP_X_UP_CALLING_LINE_ID'];
 $nomon2 = $HTTP_X_FH_MSISDN;
 $nomtw2 = $HTTP_MSISDN;
 $nomtr2 = $HTTP_X_UP_CALLING_LINE_ID;

 if($nomon != "")
 {
 $numberp = $nomon;
 }else  if($nomtw != "")
 {
 $numberp = $nomtw;

 }else  if($nomtr != "")
 {
 $numberp = $nomtr;

 }else if($nomon2 != "")
 {
 $numberp = $nomon2;

 }else if($nomtw2 != "")
 {
 $numberp = $nomtw2;

 }else  if($nomtr2 != "")
 {
 $numberp = $nomtr2;
 }

 
        echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
 echo "<div class=\"box_cen\">";
 echo "<b>Registration</b>";

 if(!canreg())
{
  echo "<div class=\"box_sub\" align=\"center\">";
    echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/>Sorry.. Registration currently closed. Please try later.";
}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((regchars($uid))||(nospace($uid))||(checknumber($uid)))
{
    echo registerform(4);
}else if((regchars($pwd))||(nospace($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(nameexist($uid)==true)
{
    echo registerform(9);

}else if(trim($email)=="")
{
    echo registerform(10);
}else if(checkemail($email)==false)
{
    echo registerform(11);
}else if(emailexist($email)==true)
{
    echo registerform(12);
}else if($captcha!=$_SESSION["captcha_code"])
{
    echo registerform(13);
}else if(register($uid, $pwd, $usx, $day, $month, $year, $loc, $email, $info, $state, $status, $refer, $ubr, $uip, $numberp)==1)
{
    echo registerform(14);
}else if(register($uid, $pwd, $usx, $day, $month, $year, $loc, $email, $info, $state, $status, $refer, $ubr, $uip, $numberp)==2)
{
    echo registerform(14);
}else{
  echo "<div class=\"box_sub\" align=\"left\">";
  echo "<center>Registration Completed Successfully!</center><br/><hr>";
 echo "<i><b>Username:</b> $uid</i><br/>";
 echo "<i><b>Password:</b> *****</i><br/>";
 echo "<i><b>E-Mail:</b> $email</i><br/><hr>";
 $tolog = true;
}
}

if($tolog)
{
 $pmtext = "Thank You For Joining Us At RemiXchaT.COM, This Your Registration Detail. \n\n Username: $uid \n Password: $pwd";
  $from_head = "From: admin@RemiXchaT.com";
  $subject = "RemiXchaT Sign-Up Detail";
  $time = time();
  $ddt = date("M d y", $time);
  $content = "Date: $ddt \n\n $pmtext \n\n RemiXchaT.COM The Best Wap Community! \n\n HTTP://RemiXchaT.COM";
  mail($email, $subject, $content, $from_head);
    echo "<a href=\"login.php?loguid=$uid&amp;logpwd=$pwd\">";
 echo "Login Now</a>";
echo "</div>";
 echo "</div>";
echo footerweb($hits);
}else{
 echo "</div>";
echo footerweb($hits);
}
echo "</body>";
?>

</html>