Server IP : 162.214.80.37 / Your IP : 216.73.216.68 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/eventsbyshubhchintak/vendor/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <?php include 'includes/db-conn.inc.php'; include'includes/head.php'; if(isset($_SESSION['usermobile'])){ echo "<script>window.location = 'dashboard.php';</script>"; } ?> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css"> <body data-ng-app=""> <div id="preloader"> <div id="status"> </div> </div> <!--TOP SEARCH SECTION--> <?php include'includes/header.php'; ?> <section class="tz-register"> <div class="log-in-pop"> <div class="log-in-pop-left"> <h1>Hello... <span>{{ name1 }}</span></h1> <p>Reset your password here. It's take less then a minutes</p> <h4>Login Here</h4> <ul> <li><a href="#">Add Listing</a> </li> <li><a href="#"> Grow Business</a> </li> <li><a href="#"> Generate Leads</a> </li> </ul> </div> <div class="log-in-pop-right"> <h4>Reset Password</h4> <p>Reset your password here. It's take less then a minutes</p> <form class="s12" method="POST" enctype="multipart/form-data" action=""> <div> <div class="input-field s12"> <input type="text" name="txtusermobile" minlength="10" maxlength="10" class="validate" required=""> <label>Mobile Number</label> </div> </div> <div> <div class="input-field s4"> <input type="submit" value="Send OTP" class="waves-effect waves-light log-in-btn" name="sendotp" > </div> </div> </form> <div> <div class="input-field s12"> <a href="login.php">Login</a> | <a href="register.php">Create a new account</a> </div> </div> </div> </div> </section> <!--FOOTER SECTION--> <?php include'includes/footer.php'; ?> <!--COPY RIGHTS--> <!--SCRIPT FILES--> <script src="js\jquery.min.js"></script> <script src="js\angular.min.js"></script> <script src="js\bootstrap.js" type="text/javascript"></script> <script src="js\materialize.min.js" type="text/javascript"></script> <script src="js\custom.js"></script> </body> </html> <?php if(isset($_POST['sendotp'])) { $usernumber=$_POST['txtusermobile']; $otp = rand(1000,9999); $sql=mysqli_query($conn,"select * from tbl_registration where mobile='$usernumber'") or die(mysqli_error($conn)); $row=mysqli_num_rows($sql); if(!$row==1) { ?> <script> swal({ title: "Sorry !", text: "This number is not exist.", type: "Error" }); </script> <?php } else { $sql2="update tbl_registration set otp='$otp' where mobile='$usernumber'"; if(mysqli_query($conn,$sql2) or die (mysqli_error($conn))) { // / message api code $message = rawurlencode($otp .' is your OTP from Agra Search. Please do not share OTP with anyone.'); $data="http://www.alots.in/sms-panel/api/http/index.php?username=AgraSearch&apikey=0023F-E616D&apirequest=Text&sender=AGRSRH&mobile=$usernumber&message=$message&route=TRANS&format=JSON"; $ch = curl_init($data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo "<script>location.href='forgot-change-password.php?userphone=$usernumber'</script>"; } } } ?>