fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh
DIR:/home/tcfq2ylb8mbt/public_html/tanpureinterior.com/admin_panel/ |
Current File : /home/tcfq2ylb8mbt/public_html/tanpureinterior.com/admin_panel/index.php |
<?php session_start(); include("./controllers/Main.php"); if (isset($_POST['login'])) { $response = Login($_POST); if ($response === 422) { echo "<script>alert('Invalid credentials')</script>"; } else { $_SESSION['admin_id'] = $response['id']; $_SESSION['admin_name'] = $response['name']; $_SESSION['admin_mobile'] = $response['mobile']; ?> <script> alert("Logged In successfully"); window.location.href = "./dashboard.php" </script> <?php } } ?> <!DOCTYPE html> <html lang="en"> <head> <base href="./"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <meta name="keyword" content=""> <title>Admin Login</title> <link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="assets/favicon/android-icon-192x192.png"> <link rel="manifest" href="assets/favicon/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="assets/favicon/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> <!-- Vendors styles--> <link rel="stylesheet" href="vendors/simplebar/css/simplebar.css"> <link rel="stylesheet" href="css/vendors/simplebar.css"> <!-- Main styles for this application--> <link href="css/style.css" rel="stylesheet"> <!-- We use those styles to show code examples, you should remove them in your application.--> <link href="css/examples.css" rel="stylesheet"> </head> <body> <div class="bg-light min-vh-100 d-flex flex-row align-items-center"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6"> <div class="card-group d-block d-md-flex row"> <div class="card col-md-7 p-4 mb-0"> <div class="card-body"> <form action="" method="post"> <h1>Admin Login</h1> <p class="text-medium-emphasis">Sign In to your account</p> <div class="input-group mb-3"> <span class="input-group-text"> <svg class="icon"> <use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-user"></use> </svg> </span> <input class="form-control" type="text" name="username" placeholder="Username"> </div> <div class="input-group mb-4"> <span class="input-group-text"> <svg class="icon"> <use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-lock-locked"></use> </svg> </span> <input class="form-control" type="password" name="password" placeholder="Password"> </div> <div class="row"> <div class="col-6"> <button class="btn btn-primary px-4" name="login" type="submit">Login</button> </div> <div class="col-6 text-end"> <button class="btn btn-link px-0" type="button">Forgot password?</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> <script src="vendors/@coreui/coreui/js/coreui.bundle.min.js"></script> <script src="vendors/simplebar/js/simplebar.min.js"></script> <script> </script> </body> </html> |