window.location = 'maintain.php'; "; } } if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['username']) && isset($_POST['todo'])) { // Collect the data from post method of form submission // $todo=mysqli_real_escape_string($con,$_POST['todo']); $name=mysqli_real_escape_string($con,$_POST['fname']); $username=mysqli_real_escape_string($con,$_POST['username']); $userid=mysqli_real_escape_string($con,$_POST['username']); $password=mysqli_real_escape_string($con,$_POST['password']); $password2=mysqli_real_escape_string($con,$_POST['password2']); $email=mysqli_real_escape_string($con,$_POST['email']); $mobile=mysqli_real_escape_string($con,$_POST['mobile']); $ref=mysqli_real_escape_string($con,$_POST['referral']); $address=mysqli_real_escape_string($con,$_POST['address']); $country=mysqli_real_escape_string($con,$_POST['country']); $package=mysqli_real_escape_string($con,$_POST['package']); $status = "OK"; $msg=""; //validation starts // if userid is less than 6 char then status is not ok if(!isset($username) or strlen($username) <6){ $msg=$msg."User Id Should Contain Minimum 6 CHARACTERS.
"; $status= "NOTOK";} if(!ctype_alnum($username)){ $msg=$msg."User Id Should Contain Alphanumeric Chars Only.
"; $status= "NOTOK";} $rr=mysqli_query($con,"SELECT COUNT(*) FROM affiliateuser WHERE username = '$username'"); $r = mysqli_fetch_row($rr); $nr = $r[0]; if($nr==1){ $msg=$msg."Userid Already Exists. Please Try Another One.
"; $status= "NOTOK"; } $rrr=mysqli_query($con,"SELECT COUNT(*) FROM affiliateuser WHERE mobile = '$mobile'"); $r3 = mysqli_fetch_row($rrr); $nr3 = $r3[0]; if($nr3==1){ $msg=$msg."Mobile Number Already Registered.
"; $status= "NOTOK"; } $remail=mysqli_query($con,"SELECT COUNT(*) FROM affiliateuser WHERE email = '$email'"); $re = mysqli_fetch_row($remail); $nremail = $re[0]; if($nremail==1){ $msg=$msg."E-Mail Id Already Registered.
"; $status= "NOTOK"; } $result = mysqli_query($con,"SELECT count(*) FROM affiliateuser where username = '$ref'"); $row = mysqli_fetch_row($result); $numrows = $row[0]; if ($numrows==0) { $msg=$msg."Sponsor/Referral Username Not Found.If you have no sponsor please type millionaire in the sponsor field
"; $status= "NOTOK"; } if ( $package=="" ){ $msg=$msg."Please Select The Package.
"; $status= "NOTOK";} if ( strlen($password) < 8 ){ $msg=$msg."Password Must Be More Than 8 Char Length.
"; $status= "NOTOK";} if ( strlen($address) < 1 ){ $msg=$msg."Not Available
"; } if ( strlen($mobile) > 15 ){ $msg=$msg."Please Enter Correct Mobile Number
"; } if ( strlen($email) < 1 ){ $msg=$msg."Please Enter Your Email Id.
"; $status= "NOTOK";} if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)){ $msg=$msg."Email Id Not Valid, Please Enter The Correct Email Id .
"; $status= "NOTOK";} if ( $password <> $password2 ){ $msg=$msg."Both Passwords Are Not Matching.
"; $status= "NOTOK";} if ( $country == "" ){ $msg=$msg."Please Enter Your Country Name.
"; $status= "NOTOK";} $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); else if(getenv('HTTP_X_FORWARDED_FOR')) $ipaddress = getenv('HTTP_X_FORWARDED_FOR'); else if(getenv('HTTP_X_FORWARDED')) $ipaddress = getenv('HTTP_X_FORWARDED'); else if(getenv('HTTP_FORWARDED_FOR')) $ipaddress = getenv('HTTP_FORWARDED_FOR'); else if(getenv('HTTP_FORWARDED')) $ipaddress = getenv('HTTP_FORWARDED'); else if(getenv('REMOTE_ADDR')) $ipaddress = getenv('REMOTE_ADDR'); else $ipaddress = 'UNKNOWN'; //The value of $ip at this point would look something like: "192.0.34.166" $ip = $ipaddress; //The $ip would now look something like: 1073732954 $sqlquery="SELECT wlink FROM settings where sno=0"; //fetching website from databse $rec2=mysqli_query($con,$sqlquery); $row2 = mysqli_fetch_row($rec2); $wlink=$row2[0]; //assigning website address $sqlquery111="SELECT etext FROM emailtext where code='SIGNUP'"; //fetching website from databse $rec2111=mysqli_query($con,$sqlquery111); $row2111 = mysqli_fetch_row($rec2111); $emailtext=$row2111[0]; //assigning email text for email if(!($package=="")) { $sqlquery11="SELECT validity FROM packages where id = $package"; //fetching no of days validity from package table from databse $rec211=mysqli_query($con,$sqlquery11); $row211 = mysqli_fetch_row($rec211); $noofdays=$row211[0]; //assigning no of days of package validity $cur=date("Y-m-d"); $expiry=date('Y-m-d', strtotime($cur. '+ '.$noofdays.'days')); $sbonus=0; } if ($status=="OK") { $scode=rand(1111111111,9999999999); //generating random code, this will act as signup key $query=mysqli_query($con,"insert into affiliateuser(username,password,fname,address,email,referedby,ipaddress,mobile,doj,country,signupcode,tamount,pcktaken,expiry,active,payment) values('$username','$password','$name','$address','$email','$ref','$ip','$mobile','$cur','$country','$scode','$sbonus','$package','$expiry',0,0)"); $_SESSION['paypalidsession'] = $userid; // More headers $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: ' . "\r\n"; $to=$email; $subject="Order Confirmation"; $message=$emailtext; mail($to,$subject,$message,$headers); print " "; } else { $errormsg= "
Please Fix Below Errors :
".$msg."
"; //printing error if found in validation } } ?> Bitcoin Millionaire Club: Bitcoin Education and Affiliate Platform For Africa
Home Register Rules Entries Partners Testimonials Open an Account

#FCMBFlexxtern 2.0

SUBMIT YOUR APPLICATION

URL:

By signing up, you agree to accept all our terms and conditions