PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/useradmin/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/useradmin/changepass.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(empty($_SESSION['userId'])){
    header("Location: ../index.php");
    exit();
   }
   
   $user = $function->getUsers($_SESSION['userId'],NULL,NULL,1);
   $user_details = $function->getUserDetails($_SESSION['userId'],1);

   $account = $function->getAccountDetails($_SESSION['userId']);
   $paid=0;
   for($i=0;$i<count($account);$i++){
      $paid += (float)$account[$i]['credit'];
   }
   $bal = 0;                     
   for($i=0;$i<count($account);$i++){
      $bal += (float)$account[$i]['debit']-(float)$account[$i]['credit'];
   }

   //Updating User Login Password
    if(isset($_POST['btnChangePassword'])){
        //print_r($_POST); exit;
        $user_id = !empty($_SESSION['userId'])?$_SESSION['userId']:"";
        $old_password = !empty($_POST['old_password'])?$_POST['old_password']:"";
        $new_password = !empty($_POST['new_password'])?$_POST['new_password']:"";
        $cnew_password = !empty($_POST['cnew_password'])?$_POST['cnew_password']:"";

        if(!empty($user_id)){            
            $user = $function->getUsers($user_id,NULL,NULL,NULL,1);
            if(count($user)>0){
                if(md5($old_password)==$user[0]['password']){
                    $sql = "UPDATE `users` SET password=md5('$new_password') WHERE id='$user_id'";
                    $pdodb = PDODB::getInstance();
                $result = Array();
                if(!empty($pdodb)){
                    $result = $pdodb->query($sql);
                    PDODB::closeInstance();
                }else{
                    $error_msg = "Sorry! Unable to connect to the database server.";
                }
                if(!empty($result)){
                    $error_msg = "Password updated successfully.";
                }else{
                    $error_msg = "Sorry! Unable to update Password. Kindly try again later.";
                }
                }else{
                    //Alert wrong old password
                    $error_msg = "Sorry! You have entered the invalid Old Password.";
                }
            }
        }
    }
    //End Updating User Login Password
?>
<!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 class="body-bg">
      <?php include_once '../layout/header.php'; ?>
      <header class="user-admin-hdr">
         <div class="user-title">
            <h1>Dashboard</h1>
         </div>
      </header>
      <!-- Page Content -->
      <div class="container-fluid padding-0">
         <!--container-->
         <div class="container mt-4">
            <div class="row">
               <!-- Sidebar Column -->
               <div class="col-lg-3 mb-4 side-link">
                  <div class="list-group list-shadow">
                     <a href="my-profile.php" class="list-group-item">My Profile</a>
                     <a href="my-family.php" class="list-group-item">My Family Member</a>
                     <a href="my-account.php" class="list-group-item">My Account</a>
                     <a href="my-vehicle.php" class="list-group-item">Registered Vehicles</a>
                     <a href="changepass.php" class="list-group-item">Change Password</a>
                     <a href="help.php" class="list-group-item">Help & Support</a>
                     <a href="../logout.php" class="list-group-item">Log Out</a>
                  </div>
               </div>
               <!-- Content Column -->
               <div class="col-lg-9 mb-4" style="padding:0px">
                  <div class="row m-0">
                     <div class="col-lg-3">
                        <div class="info-box bg-pink">
                           <a href="dashboard.php">
                              <div class="content"><i class="fa fa-arrow-left" aria-hidden="true"></i>
                                 Go Back<br>Dashboard
                              </div>
                           </a>
                        </div>
                     </div>
                     <div class="col-lg-9">
                        <div class="info-box bg-light-green">
                           <a href="my-profile.php">
                              <div class="content">CHANGE PASSWORD</div>
                           </a>
                        </div>
                     </div>
                     
                     <!--content-->
                     <div class="col-lg-12">
                        <div class="card">
                           <div class="header">
                              <!-- <h2>Change Password</h2> -->
                              <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
                           </div>
                           <div class="body">
                              <form method="POST" action="" id="changePassword">
                                 <div class="profile-dl-main">
                                    <div class="name">Old Password :</div>
                                    <div class="name-details">
                                       <input name="old_password" id="old_password" type="password" class="validate form-control">
                                    </div>
                                 </div>
                                 <div class="profile-dl-main">
                                    <div class="name">New Password :</div>
                                    <div class="name-details">
                                       <input name="new_password" id="new_password" type="password" class="validate form-control">
                                    </div>
                                 </div>
                                 <div class="profile-dl-main">
                                    <div class="name">Confirm Password :</div>
                                    <div class="name-details">
                                       <input name="cnew_password" id="cnew_password" type="password" class="validate form-control">
                                    </div>
                                    <br>
                                    <input class="btn btn-primary float-right" name="btnChangePassword" value="UPDATE" type="submit">
                                    <!-- <button type="button" class="btn btn-primary float-right" name="btnChangePassword">Change</button> -->
                                 </div>                                 
                              </form>
                           </div>
                        </div>
                     </div>
                     <!--end content-->
                  </div>
               </div>
            </div>
         </div>
         <!--end container-->
      </div>
      <!-- end Page Content -->
      <!-- Footer -->
      <?php include_once'../layout/footer.php';?>
      <!-- End Footer -->
      <!-- 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>
      <script src="../js/jquery.form-validator.min.js"></script>
      <script type="text/javascript">     
        $("#changePassword").validate({
          rules: {
              old_password: {
                  required: true,            
              },                            
              new_password: {
                  required: true,
                  minlength: 6,
              },
              cnew_password: {
                  required: true,
                  minlength: 6,
                  equalTo: "#new_password"
              }       
          },
          messages: {        
              old_password: {
                  required: "Please enter Old password",            
              },                                  
              new_password: {
                  required: "Please enter New Password",
                  minlength: "Password at least 6 digit"
              },
              cnew_password: {
                  required: "Please confirm your password",
                  equalTo: "Please enter the same password as above"
              }                
          },
          submitHandler: function(form) { 
              form.submit();
          }   
        });
      </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home