����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.17.165.196 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/bm1holdings-ltd.com/ |
Upload File : |
<?php include './header.php'; include './assets/php/connect.php'; if (isset($_GET['email'])) { if (!empty($_GET['email'])) { $email = $_GET['email']; } } ?> <div class="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-12"> <div class="bread-inner"> <ul class="bread-list"> <li><a href="home">Home<i class="ti-arrow-right"></i></a></li> <li class="active"><a href="#">Reset</a></li> </ul> </div> </div> </div> </div> </div> <?php if (isset($_POST['submit'])) { $email = mysqli_real_escape_string($conn, htmlentities($_POST['email'])); $pwd = mysqli_real_escape_string($conn, htmlentities(md5($_POST['pwd']))); $pwd_co = mysqli_real_escape_string($conn, htmlentities(md5($_POST['pwd_co']))); if (!empty($email)) { if ($pwd == $pwd_co) { if (strlen($_POST['pwd']) >= 5) { $query2 = "UPDATE `users` SET `password`='$pwd' WHERE `email`='$email'"; if ($run2 = mysqli_query($conn, $query2)) { ?> <script type="text/javascript"> swal("SUCCESS", "Password reset was successful", "success"); </script> <?php } else { die(mysqli_error($conn)); } } else { ?> <script type="text/javascript"> swal("WARNING", "Password is too short", "warning"); </script> <?php } } else { ?> <script type="text/javascript"> swal("WARNING", "Passwords do not match", "warning"); </script> <?php } } else { ?> <script type="text/javascript"> swal("ERROR", "Email is empty", "error"); </script> <?php } } ?> <section class="shop login section" data-aos="zoom-in" data-aos-duration="500"> <div class="container"> <div class="row"> <div class="col-lg-5 mx-auto"> <div class="login-form"> <form class="form" method="POST" action="<?php echo "reset?email=$email";?>"> <div class="row"> <div class="col-12" data-aos="flip-left" data-aos-duration="500" data-aos-delay="400"> <div class="form-group"> <label>New Password<span>*</span></label> <input type="password" name="pwd" placeholder="********" required="required"> </div> </div> <div class="col-12" data-aos="flip-left" data-aos-duration="500" data-aos-delay="400"> <div class="form-group"> <label>Confirm Password<span>*</span></label> <input type="password" name="pwd_co" placeholder="********" required="required"> </div> </div> <input type="hidden" name="email" value="<?php echo isset($_GET['email']) ? $email : ''; ?>"> <div class="col-12"> <div class="d-flex justify-content-end"> <a href="login" class="lost-pass">Sign In</a> </div> </div> <div class="col-12"> <div class="form-group login-btn"> <button class="btn" type="submit" name="submit">Reset</button> </div> </div> </div> </form> </div> </div> </div> </div> </section> <?php include './footer.php'; include './scripts.php'; ob_end_flush(); ?>