PK

ADDRLIN : /home/questend/www/subdomain/rwa.questend.com/
FLL :
Current File : /home/questend/www/subdomain/rwa.questend.com/forget.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include 'admin/includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once 'admin/includes/settings/PDODB.php';
   include 'admin/includes/modules/functions.php';
   $function = new FUNCTIONS();

   if(isset($_POST['sendForgot']) && !empty($_POST)){
      //print_r($_POST); exit;
      $email = !empty($_POST['email'])?$_POST['email']:"";
      $user = $function->getUsers($id=NULL,$email=$email,$password=NULL,$isactive=1);
      //print_r($user); exit;

      $date= date('Y-m-d H:i:s');
      if ($email == $user[0]['email']) {
          
          $name = $user[0]['username'];
          $email = $user[0]['email'];
          $id = $user[0]['id'];          

          $resetcode = $function->generateOTP(6);
          
          $sql = "INSERT INTO tbl_reset_password  SET user_id='".$id."',start_date='".$date."',created_date='".$date."',update_date='".$date."', reset_code='".$resetcode."'";
          //print_r($sql); exit;
          $pdodb = PDODB::getInstance();
          $result = $pdodb->query($sql);
          $insert_id = $pdodb->lastInsertId();
          //print_r($insert_id); exit;
          $forgetPwdLink =BASEPATH."restore-password.php?page=".base64_encode('reset-password')."&constant=".base64_encode('jai hanumaan')."&request=".base64_encode($email)."&restcode=".base64_encode($resetcode)."&restid=".base64_encode($insert_id)."&key=".base64_encode($id)."&requests=".base64_encode(md5('terimakiankah'));
          $message = "<table border='0' cellspacing='10' style=' width:100%; font-family:Arial, Helvetica, sans-serif; font-size:12px'>
             <tr>
                <td>Dear Customer,</td>
             </tr>
             <tr>
                <td>
                   <p>Did you forget your password? No problem! Please click the link below to reset your password.</p>
                </td>
             </tr>               
             <tr>
                <td>
                   <p><a style='color:#15c; font-weight:bold' href= '".$forgetPwdLink."' target='_blank'>Click to reset password</a>
                   </p>
                </td>
             </tr>       
             <tr>
                <td>
                   <p>If it was not you who requested for a change in password, rest assured - your account would not be compromised, and you can continue to use your existing password.</p>
                </td>
             </tr>
             <tr>
                <td>
                   <p>If you have any concerns or questions please contact us at NP Recharge.</p>
                </td>
             </tr>
             <tr>
                <td>
                   <p>
                      Best Regards,<br />
                      Team NP Recharge
                   </p>
                </td>
             </tr>
          </table>";

          $mailres = $function->sendMail2($email,'Forget your password',$message);

          if ($mailres==1) {
              $error_msg = 'Message has been sent';
          } else {
              $error_msg = 'Message could not be sent.';
              $error_msg = 'Mailer Error: ' . $mail->ErrorInfo;
          }    
      }
      else{
          $error_msg = "Please enter your register email.";
        } 
   }
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="description" content="">
      <meta name="author" content="">
      <title>RWA Sectore 40 Noida</title>
      <!-- Bootstrap core CSS -->
      <link href="vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
      <!-- Custom styles for this template -->
      <link href="css/noida40.css" rel="stylesheet">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
      <link href="css/bootstrap-dropdownhover.css" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
   </head>
   <body>
      <?php include_once 'header.php'; ?>
      <!-- Page Content -->
      <div class="container news-event-blog">
         <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
         <div class="row">            
            <div class="col-lg-4 pb-30 mx-auto">
               <h2><a name="latest"><span>Forgot</span> Password</a></h2>
               <!-- <p>When you fill in your registered email address, you will be sent instructions on how to reset your password.</p> -->
               <form class="col s12" method="POST" action="">
                  <div class="form-group">
                     <div class="input-group">
                        <span class="input-group-addon"><i class="glyphicon glyphicon-envelope color-blue"></i></span>
                        <input id="email" name="email" placeholder="Enter Your Registered Email" class="form-control"  type="email">
                     </div>
                  </div>
                  <div class="text-center">
                     <button type="submit" class="btn btn-primary" name="sendForgot" id="sendForgot">Submit</button>
                  </div>
               </form>
            </div>
         </div>
      </div>
      <!-- end Page Content -->
      <!-- Footer -->
      <?php include_once'footer.php';?>
      <!-- End Footer -->
      <?php include_once'login.php';?>
      <!-- Bootstrap core JavaScript -->
      <script src="vendor/jquery/jquery.min.js"></script>
      <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
      <script src="js/bootstrap-4-hover-navbar.js"></script>
      <!--login window-->
      
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home