MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.144.8.68
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/vivahmilankendra.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/vivahmilankendra.com/check-otp-by-email.php
<?php
require_once("includes/dbsmain.inc.php");
////////////////////////   FOR MEMBER MOBILE VERIFICATION /////////////////////////////
$otp=$_GET['otp'];
$regID=$_GET['regID'];
$vEmail=$_GET['vEmail'];

if($otp!="" && $regID!=""){
	
$rID=db_scalar("SELECT reg_id FROM tbl_registration WHERE 1 AND reg_id='$regID'");	

if($rID){
	
$regRealOTP=db_scalar("SELECT otp_code FROM tbl_otp WHERE 1 AND otp_reg_id='$rID' ORDER BY otp_id DESC");		

if($otp==$regRealOTP){
$sql="UPDATE tbl_registration SET  reg_member_email='$vEmail', reg_member_verified_email='$vEmail' WHERE  reg_id='$regID'";	 
db_query($sql);		
echo 1;	
}else{
echo 0;		
}

	
}

}
?>

MMCT - 2023