PK

ADDRLIN : /home/questend/public_html/subdomain/rwa.questend.com/
FLL :
Current File : /home/questend/public_html/subdomain/rwa.questend.com/login.php

<!-- Modal -->
 <div class="modal fade" id="userlogin" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog userlogin modal-dialog-centered" role="document">
       <div class="modal-content">
          <div class="modal-header">
             <h5 class="modal-title text-center">User Login</h5>
             <button type="button" class="close" data-dismiss="modal" aria-label="Close">
             <span aria-hidden="true">&times;</span>
             </button>
          </div>
          <div class="modal-body">
             <form id="UserLoginForm" method="POST" action="">
                <div class="control-group form-group">
                   <div class="controls">
                      <label>Username:</label>
                      <input type="text" class="form-control" id="username" name="username" required data-validation-required-message="Please enter Mobile Number.">
                      <p class="help-block text-danger"></p>
                   </div>
                </div>
                <div class="control-group form-group">
                   <div class="controls">
                      <label>Password:</label>
                      <input type="password" class="form-control" id="password" name="password" required data-validation-required-message="Please enter your password.">
                      <p class="help-block text-danger"></p>
                      <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
                   </div>
                </div>                
                <div class="modal-footer text-center">
                   <button type="submit" class="btn btn-primary" name="sendLogin" id="sendLogin">Login</button>
                </div>
             </form>
          </div>
       </div>
    </div>
 </div>


 <?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   if(isset($_POST['sendLogin'])){      
      $username = !empty($_POST['username'])?trim($_POST['username']):"";
      $password = !empty($_POST['password'])?trim($_POST['password']):"";;
      //print_r($password); exit;
      if(!empty($username) && !empty($password)){
          $password = md5($password);
          $loginQuery = "SELECT * FROM `users` WHERE mobile='$username' AND password='$password' AND isactive='1'";
          
          $pdodb = PDODB::getInstance();
          $result = $pdodb->query($loginQuery);

          PDODB::closeInstance();
          
          if(!empty(count($result))){
              $_SESSION['userId'] = $result[0]['id'];
              echo "<script>window.location.href='useradmin/dashboard.php';</script>";
              //header("Location: useradmin/dashboard.php");
          }else{
              //Alert
              $error_msg = "Kindly check your login credentials.";
              echo "<script>tossterMsgAlert('".$error_msg."','Error');</script>";
          }
      }else{
          //Alert
          $error_msg = "Kindly enter your Username & Password.";
          echo "<script>tossterMsgAlert('".$error_msg."','Error');</script>";
      }
    }
?>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home