PK

ADDRLIN : /home/questend/public_html/subdomain/devtrufflenation.questend.com/
FLL :
Current File : /home/questend/public_html/subdomain/devtrufflenation.questend.com/index.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);
   require_once 'admin/includes/settings/PDODB.php';
   include 'admin/includes/modules/functions.php';
   $function = new FUNCTIONS();
   if(isset($_POST['sendLogin'])){
     $username = !empty($_POST['username'])?trim($_POST['username']):"";
     $mobile = !empty($_POST['mobile'])?trim($_POST['mobile']):"";;
     //print_r($password); exit;
     if(!empty($username) && !empty($mobile)){        
         $loginQuery = "SELECT * FROM `tn_student` WHERE `uemail`='$username' AND `mobileno`='$mobile' 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 Name & Mobile.";
         echo "<script>tossterMsgAlert('".$error_msg."','Error');</script>";
     }
   }  
?>
<!DOCTYPE html>
<html lang="en" >
   <head>
      <meta charset="UTF-8">
      <title> Login</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel='stylesheet' href='css/bootstrap.min.css'>
      <link rel='stylesheet' href='css/style.css'>
      
      <style type="text/css">
         body {
             background: url('images/bg.jpg') no-repeat center center fixed;
             -webkit-background-size: cover;
             -moz-background-size: cover;
             background-size: cover;
             -o-background-size: cover;
         }
         .error {
            color: red;
         }
      </style>
   </head>
   <body>
      <!-- partial:index.partial.html -->
      <!-- Follow these instructions, please! -->
      <div class="container py-5">
      <div class="row justify-content-center">
         <div class="col-md-6 col-10 loginform">
            <div class="row justify-content-center">
               <div class="col-md-4">
                  <img src="images/truffle-nation-logo-1.png" class="img-fluid">
               </div>
               <h3 class="text-center"></h3>
            </div>
            <br>
            <form action="" method="POST" id="loginForm">
               <div class="mb-3">
                  <label class="form-label">Registered Email ID</label>
                  <input type="text" class="form-control" id="username" name="username">
               </div>
               <div class="mb-3">
                  <label class="form-label">Registered Mobile Number</label>
                  <input type="text" class="form-control" id="mobile" name="mobile">
               </div>
               <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
               <button type="submit" class="btn login-btn" name="sendLogin" id="sendLogin">Login Now</button>
            </form>
         </div>
      </div>
      <!-- partial -->
      <script type='text/javascript' src='//code.jquery.com/jquery-1.8.3.js'></script> 
      <script type="text/javascript" src="//code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
      <link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
      <script type='text/javascript' src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js"></script> 
      <script type='text/javascript' src="//jqueryvalidation.org/files/dist/additional-methods.min.js"></script> 
      <script src='js/bootstrap.bundle.min.js'></script>
      <script type="text/javascript">
         $("#loginForm").validate({
           rules: {   
               username: {
                   required: true
               },
               mobile: {
                    required: true,
                    minlength: 10,
                    maxlength: 10,
                    //number: true
                    digits: true
               }
           },
           messages: {                           
               username: {
                   required: "Please enter your name"
               },
               mobile: {
                   required: "Please enter mobile No",
                   minlength: "Mobile No Must Contain at least 10 digit",
                   maxlength: "Mobile No Must Not Exceed 10 digit",
                   digits: "Please enter only digit"
               }
           },
           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