PK

ADDRLIN : /home/questend/public_html/subdomain/cheesybite.questend.com/
FLL :
Current File : /home/questend/public_html/subdomain/cheesybite.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);
   include 'includes/settings/constant.php';
   require_once 'includes/settings/PDODB.php';
   include 'includes/modules/functions.php';
   
   $function = new FUNCTIONS();

   if(!empty($_SESSION['adminId_cheesyBites'])){
    header("Location: dashboard/index.php");
    exit();
   }

   if(isset($_POST['btnLogin'])){
        $username = $_POST['username'];
        $password = $_POST['password'];

        if(!empty($username) && !empty($password)){
            $password = md5($password);
            $loginQuery = "SELECT * FROM `admin` WHERE (email='$username' OR username='$username') AND password='$password' AND isactive='1'";
            
            $pdodb = PDODB::getInstance();
            $result = $pdodb->query($loginQuery);

            PDODB::closeInstance();
            
            if(count($result)>0){
                $_SESSION['adminId_cheesyBites'] = $result[0]['id'];
                header("Location: dashboard/index.php");
            }else{
                $error_msg = "Kindly check your login credentials.";                
            }
        }else{            
            $error_msg = "Kindly enter your Username & Password.";            
        }
    }
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>INSPINIA | Login</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <style type="text/css">
     body {
     background: url('img/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 class="gray-bg">

    <div class="middle-box text-center loginscreen animated fadeInDown" style="padding: 10px 10px; background-color: white; margin-top: 50px;">
        <div>
            <div>
                <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
                <h1 class="logo-name"><img src="img/cheesyBite_logo.jpg" width="180px;"></h1>
            </div>
            <h3>Welcome to Cheesy Bites</h3>           
            <p>Login in. To see it in action.</p>
            <form class="m-t" role="form" action="" method="POST" id="loginfrm">
                <div class="form-group">
                    <input type="text" class="form-control" id="username" name="username" placeholder="Username & Email">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="password" name="password" placeholder="Password">
                </div>
                <button type="submit" name="btnLogin" class="btn btn-danger block full-width m-b">Login</button>
            </form>
        </div>
    </div>
    <!-- Mainly scripts -->
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/bootstrap.min.js"></script>    
    <script src="js/jquery.form-validator.min.js"></script>
    <script type="text/javascript">     
      $("#loginfrm").validate({
        rules: {
            username: {
                required: true,                
            },                            
            password: {
                required: true,
                minlength: 6,
            }        
        },
        messages: {        
            username: {
                required: "Please enter username",
                
            },                                  
            password: {
                required: "Please enter Password",
                minlength: "Password at least 6 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