check("member","emailId",$mememailid); if($chkuname == 1) { $usrerr=1; if($urlmemrefby != '') $ref = $urlmemrefby; } else { $GetRefBy = ''; if($memrefby != '') $GetRefBy = $memrefby; if($urlmemrefby != '') $GetRefBy = $urlmemrefby; if($GetRefBy != '') { $GetReferralData = $db->get_a_line("select memberId from member where referenceCode='$GetRefBy'"); $GetReferredId = isset($GetReferralData['memberId'])?$GetReferralData['memberId']:0; } if(is_numeric ($memphone) && strlen($memphone) == 10){ $chkmobexist = $db->get_a_line("select count(*) as total from member where mobileNumber='$memmob'"); $ChkMobVer = $chkmobexist['total']; if($ChkMobVer == 0) $setmemphone = $memphone; else $setmemphone = ''; } else $setmemphone = ''; $GetActivationCode = $common->str_makerand (5, 5, true, false, true);//str_makerand ($minlength, $maxlength, $useupper, $usespecial, $usenumbers) $createddate = time(); $set = "memberName = '$memname'"; $set .= ",emailId = '$mememailid'"; $set .= ",password = '$mempass'"; $set .= ",quizRef = '$quizref'"; $set .= ",activationCode = '$GetActivationCode'"; $set .= ",addedDate = '$createddate'"; $set .= ",referedBy = '$GetReferredId'"; $set .= ",mobileNumber = '$setmemphone'"; //Temporary Solutions $set .= ",activeStatus = '1'"; // $RegMemId = $db->insert("insert into member set $set"); $ReferenceCode = 1000 + $RegMemId; $db->insert("update member set referenceCode = '$ReferenceCode' where memberId='$RegMemId'"); $ActMailMsg = "Please click on to the link to activate your account $http_path/todtopusract.php?cd=$GetActivationCode"; /* $ConfMailMsg = "

Please click on to the below link to activate your account

$http_path/todtopusract.php?cd=$GetVerificationCode

";*/ //$common->sendmail($mememailid,$ActMailMsg); header("Location:thanks.php"); exit; } } $ref = isset($ref)?$ref:''; $usrerr = isset($usrerr)?$usrerr:''; $message = isset($message)?$message:''; $ajaxrefval = 'onblur="userRefRequest(this.value)"'; $reftextbox = ''; $hiderefby = ''; if($ref != '' && $ref != 0) { $ajaxrefval = ''; $reftextbox = 'disabled'; $hiderefby = ""; } if($usrerr == 1) $message = "Email-Id Already Exist."; //$Content=preg_replace("/{{(.*?)}}/e","$$1",$Content); echo $common->load($Content); //include "right.php"; include "footer.php"; ?>