PK

ADDRLIN : /home/questend/public_html/domains/deepanshiarora.com/da-admin/
FLL :
Current File : /home/questend/public_html/domains/deepanshiarora.com/da-admin/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['plusPackageAdminId'])){
    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['plusPackageAdminId'] = $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>Admin 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-image: url('img/bg.jpg');
            background-repeat: no-repeat;
            background-size: cover; 
            height: auto!important;           
            background-position: 100% 50%;}
        .form-css {
            border: solid gray 1px;
            border-radius: 5px;
            margin: 100px auto;
            background: white;
            padding: 50px;
            box-shadow: 3px 4px 20px 5px #ccc;
            background-color: #4a4a4a;
        }
    </style>
</head>
<body>
    <div class="middle-box text-center animated fadeInDown form-css">
        <div>
            <div>
                <p style="color:red; text-align: center;"><?=(!empty($error_msg))?$error_msg:'';?></p>
                <h1 class="logo-name"><!-- <img src="../images/logo.png" width="250px;"> --></h1>
            </div>
            <h3 class="text-white">Welcome to Deepanshi Arora</h3>           
            <p class="text-white">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-primary 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