芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/ajax/LoginCustomer - Copy.php
0) { $sqlRegData = mysqli_fetch_array($sqlReg); if(!empty($otp)) { if($otp==$sqlRegData['otp']) { $_SESSION['KXloginId'] = $sqlRegData['id']; $arr = array('status'=>1, 'loginType'=>$loginType, 'SuccessMsg'=>'
Success !
Login Successfully.
'); echo json_encode($arr); } else { $arr = array('status'=>3, 'ErrorMsg'=>'
Enter Correct OTP
'); echo json_encode($arr); } } else { $otp = generatePIN(); mysqli_query($cn, "update `tbl_register` set `otp`='".$otp."' where `mobile`='".$mobile."'"); $arr = array('status'=>2, 'otp'=>$otp, 'ErrorMsg'=>'
Enter OTP
'); echo json_encode($arr); } } else { $arr = array('status'=>3, 'ErrorMsg'=>'
Account Not Found. Register Your Account First.
'); echo json_encode($arr); } ?>