]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
Upload FileeE
HOME
<?php include_once("header.php"); ?> <?php function sendOTP($otp,$phone){ $url = str_replace("+","%20","http://bulksms.inboxtele.com/api/mt/SendSMS?user=crystal&password=crystal@123&senderid=CRYSTM&channel=Trans&DCS=0&flashsms=0&number=$phone&route=30&text=Dear+Customer,+Thank+you+for+choosing+Crystal+Miracle.+To+complete+your+authentication+and+ensure+the+security+of+your+account,+please+use+the+following+One-Time+Password+(OTP):+OTP:+$otp"); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); curl_exec($curl); } if(isset($_POST['submit'])) { $phone_number=$sel_obj->validation($_POST['phone_number']); $otp_number=$sel_obj->validation($_POST['otp_number']); if(isset($phone_number) and !empty($phone_number) ) { if(isset($otp_number) && $_POST['otp_number']!=''){ if($_POST['otp_number'] == $_SESSION['otp_number']){ $sql=$sel_obj->registration($phone_number); if($sql) { $ret=$sel_obj->signin($phone_number); $num=mysqli_fetch_array($ret); if(count($num)>0) { $_SESSION['uid']=$num['id']; $_SESSION['Username']=$num['Username']; /*-------- Send Welcome Email ----------*/ $ct_u_name = $firstname." ".$lastname; /*--------------------------------------*/ echo "<script>alert('Registration successfull.');</script>"; echo "<script>window.location.href='index.php'</script>"; } } else { // Message for unsuccessfull insertion echo "<script>alert('Something went wrong. Please try again');</script>"; // echo "<script>window.location.href='registration.php'</script>"; } }else{ $regmsg='<div class="alert alert-dandger alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <strong>Error!</strong>Invalid OTP number </div>'; } }else{ $otpNumber = rand(1111,9999); sendOTP($otpNumber,$phone_number); $_SESSION['otp_number'] = $otpNumber; $regmsg='<div class="alert alert-success alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <strong>Success!</strong> OTP has send on your phone number. </div>'; } } else { unset($_SESSION['otp_number']); $regmsg='<div class="alert alert-dandger alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <strong>Error!</strong> Field Should not be empty. </div>'; } }else{ unset($_SESSION['otp_number']); } if(!empty($checksession)) { echo "<script>window.location.href='my_account.php'</script>"; } /*----- Back Url ----*/ if ($_SERVER['HTTP_REFERER']) { $back_url = $_SERVER['HTTP_REFERER']; } else{ $back_url = "#"; } ?> <section class="breadcrumb-area"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="breadcrumb-content"> <h1 class="breadcrumb-hrading">Register</h1> <ul class="breadcrumb-links"> <li><a href="index.php">Home</a></li> <li><a href="<?php echo $back_url; ?>">Back</a></li> <li>Register</li> </ul> </div> </div> </div> </div> </section> <!-- Breadcrumb Area End --> <!-- login area start --> <div class="login-register-area " style=" padding:40px 10px;"> <div class="container"> <div class="row"> <div class="col-lg-4 col-md-12 ml-auto mr-auto"> <div class="login-register-wrapper"> <div class="tab-content"> <div id="lg2" class="tab-pane active"> <p class="mb-20 emial">Please fill in the information below:</p> <div class="login-form-container"> <div class="login-register-form"> <form action="<?php echo strip_tags($_SERVER['PHP_SELF']);?>" method="POST"> <span><?=$regmsg ?? ''?></span> <div id="usernameavailblty"></div> <div class="row"> <div class="col-md-12"> <input type="number" name="phone_number" <?php if(isset($_SESSION['otp_number'])): ?> readonly <?php endif;?> value="<?=$_POST['phone_number'] ?? ''?>" onblur="checkusername(this.value)" placeholder="10 digit mobile number" required> </div> <?php if(isset($_SESSION['otp_number'])): ?> <div class="col-md-12"> <input type="number" minlength="4" maxlength="4" name="otp_number" autocomplete="off" placeholder="OTP Number" required/> </div> <?php endif; ?> </div> <div class="button-box"> <button id="validate" name="submit" type="submit"><span>Create My Account</span></button> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php include_once("footer.php");?> <style> .emial { margin-bottom: 15px; font-size: 17px; text-align:center; } .login-register-wrapper .login-form-container { box-shadow:none !important; border-bottom: none !important; padding: 0px; text-align: left; } .login-register-form input{ background:none!important; } .login-register-wrapper .login-form-container .login-register-form form input { border: 1px solid #9b9b9b; margin-bottom:15px; } .have_acc{ text-align: center; margin-top: 13px; font-size: 16px; } .login-register-wrapper .login-form-container .login-register-form form .button-box button { background-color: black; border-radius: 0; } .login-register-wrapper .login-form-container .login-register-form form .button-box .login-toggle-btn { padding: 2px 0 15px; } </style>