/
/
home
/
u523034047
/
domains
/
eipcsindia.com
/
public_html
/
LoanApp
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.130
PHP 8.3.16
Dir:
/home/u523034047/domains/eipcsindia.com/public_html/LoanApp
Edit:
/home/u523034047/domains/eipcsindia.com/public_html/LoanApp/login.php
<!DOCTYPE html> <html lang="en"> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="assets/css/bootstrap.min.css" /> <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="assets/css/swiper.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons%401.10.5/font/bootstrap-icons.css"> <link rel="stylesheet" href="assets/css/style.css" /> <title>Betlio</title> </head> <body> <div id="preloader"> <div class="img-container"> <img class="img-fluid" height="150" width="150" src="assets/img/logo.png" alt=""> </div> </div> <!-- welcome slider Section --> <section class="login-email"> <div class="top-bg"> </div> <div class="login-card"> <div class="login-logo"> <img class="img-fluid logo" src="assets/img/logo.png" alt=""> </div> <?php session_start(); include('../admin/conn.php'); error_reporting(-1); if (isset($_POST['submit'])) { $loginname = strtoupper(trim($_POST['loginid'])); $password = trim($_POST['pass']); $a = mysqli_query($connection, "SELECT * FROM tbluser WHERE loginname = '$loginname' AND status = 'Active'"); $b = mysqli_fetch_array($a); if ($b && $b['password'] == $password) { $_SESSION["user"] = "OK"; $_SESSION['username'] = $b['loginname']; $_SESSION['id'] = $b['id']; $msg = 'Login Successfully... Redirecting...'; $redirect = true; // Trigger redirect after displaying message } else { $msgno = 'Incorrect Username, Password, or Account Not Active!'; } } ?> <form id="contactForm" method="POST" action=""> <?php if (isset($msg)) { echo '<div class="alert alert-success text-center">' . $msg . '</div>'; } if (isset($msgno)) { echo '<div class="alert alert-danger text-center">' . $msgno . '</div>'; } ?> <div class="input-box"> <img src="assets/img/email.png" height="15" width="20" alt=""> <input type="email" id="loginid" name="loginid" placeholder="Email" required> </div> <div class="input-box"> <img src="assets/img/lock.png" height="18" width="14" alt=""> <input type="password" id="pass" name="pass" placeholder="Password" required> </div> <a href="forgot.html" class="text-white text-decoration-underline text-end d-block pe-4 pb-4 mb-2"> Forgot Password? </a> <button type="submit" id="submit" name="submit" class="gradient-btn-full">Login</button> </form> <?php if (!empty($redirect)) { ?> <script> setTimeout(function () { window.location.href = 'index.php'; }, 3000); // 3 seconds delay for message visibility </script> <?php } ?> <p class="text-center">Don't have an account? <a href="register.php" class="text-blue">Sign up</a></p> </div> </section> <!-- JS file linkes --> <script src="assets/js/main.js"></script> </body> </html>
Ukuran: 3.1 KB