]]jkjjgdjffksdkdxmnnnnnnnnnnnmnmmnmnmnmnmbnwqeqwewqskfgj
במ12[cvbnvbnvbnvbnnmnnmnmnnmnmnmnmnmnmmnnmnmnmqewv;'
/
home
/
cgniioxq
/
public_html
/
Upload FileeE
HOME
<?php error_reporting(0); session_start(); include_once 'Config.php'; // Get the current URL path $request_uri = $_SERVER['REQUEST_URI']; // Check if the URL ends with a trailing slash if (substr($request_uri, -1) == '/') { // Remove the trailing slash $new_url = rtrim($request_uri, '/'); // Redirect to the new URL without the trailing slash header("Location: " . $new_url, true, 301); // 301 Moved Permanently exit(); } if(isset($_POST['forgotpassword'])){ if($_POST['forget_email']<>''){ $forgetemail=addslashes($_POST['forget_email']); $check=$mysqli->query("SELECT * FROM `admin` WHERE `email`='".$forgetemail."' "); $forget_res=$check->fetch_assoc(); $randpassword = sha1(rand(111111,999999)); $ori_randpassword = rand(111111,999991); //$forgotpassword = sha1($forget_res['password']); //$ori_password = $forget_res['ori_password']; if($check->num_rows>0){ $forgetpass=$mysqli->query("UPDATE `admin` SET password='".$randpassword."', ori_password='".$ori_randpassword."' WHERE `email`='".$forgetemail."' "); $message='<body class="" style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;"> <table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;"> <tr> <td style="font-family: sans-serif; font-size: 14px; vertical-align: top;"> </td> <td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;"> <div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;"> <!-- START CENTERED WHITE CONTAINER --> <table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;"> <!-- START MAIN CONTENT AREA --> <tr> <td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;"> <tr> <td style="font-family: sans-serif; font-size: 14px; vertical-align: top;"> <div align="left"> <img src="https://www.Cgnight.net/images/logo.png" width="400" height="113"> </div> <p style="font-family: sans-serif; font-size: 14px; font-weight: bold; margin: 0; Margin-bottom: 15px;">Dear '.$_POST['forget_email'].',</p> <p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;"></p> <p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;"> Your Password: '.$ori_randpassword.'<br> </p> <p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">If you have any questions, send us an email: cgnightindia@gmail.com</p> </td> </tr> </table> </td> </tr> <!-- END MAIN CONTENT AREA --> </table> <!-- END CENTERED WHITE CONTAINER --> </div> </td> <td style="font-family: sans-serif; font-size: 14px; vertical-align: top;"> </td> </tr> </table> </body>'; $to = $_POST['forget_email']; $subject = 'Reset Password'; $headers = 'From: cgnightindia@gmail.com' . "\r\n" . 'Reply-To: cgnightindia@gmail.com' . "\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Send the email mail($to, $subject, $message, $headers); $msgforgot='<div class="alert alert-success alert-dismissible fade show" role="alert"> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> Your password successfully send. pls check your Email.</div>'; } else { $msgforgot='<div class="alert alert-danger alert-dismissible fade show" role="alert"> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> No user found with that email address. !</div>'; } } } ?> <!doctype html> <html lang="en"> <head> <title>Forget Password - Cgnight</title> <meta name="title" content=""> <meta name="description" content=""> <meta name="robots" content="index, follow"> <meta name="language" content="English"> <link rel="canonical" href="<?php echo $base_url;?>/forget-password"> <link rel="alternate" href="<?php echo $base_url;?>/forget-password" hreflang="en-in" /> <link rel="alternate" href="<?php echo $base_url;?>/forget-password" hreflang="hi-in" /> <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "WebSite", "name": "Search Real Indian Call Girls Adverts & Adult Meetings India", "url": "<?php echo $base_url;?>", "potentialAction": { "@type": "SearchAction", "target": "<?php echo $base_url;?>/search/?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> <meta charset="utf-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="<?php echo $base_url;?>/images/favicon.png" type="image/png"> <link href="<?= $base_url; ?>/css/all.min.css" rel="stylesheet"> <link href="<?php echo $base_url;?>/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="<?php echo $base_url;?>/css/loginpage.css"> </head> <body> <?php include_once('includes/header.php'); ?> <section class="login-bg"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="wrapper mt-5 mb-5"> <?php if (isset($msgforgot)) {echo $msgforgot;} ?> <div class="title-text"> <h1 class="title">Reset Password?</h1> </div> <div class="form-container"> <div class="form-inner"> <form action="" method="POST"> <div class="field"> <input type="email" type="email" placeholder="Please Email Id" required> </div> <div class="field"> <input name="forgotpassword" type="submit" value="Send New Password"> </div> <div class="signup-link">Don't have an account? <br> <a href="<?= $base_url; ?>/login">Signup Now</a> </div> </form> </div> </div> </div> </div> </div> </div> </section> <?php include_once('includes/footer.php'); ?> <script src="<?= $base_url; ?>/js/bootstrap.bundle.min.js"></script> <script> document.addEventListener('DOMContentLoaded', () => { const scrollBtn = document.querySelector('.scroll-btn'); // Smooth scroll to the top when the button is clicked scrollBtn.addEventListener('click', () => { window.scrollTo({ top: 0, behavior: 'smooth' }); }); // Show or hide the button based on the scroll position window.addEventListener('scroll', () => { scrollBtn.style.display = window.scrollY > 20 ? 'block' : 'none'; }); }); </script> </body> </html>