BLACKSITE
:
216.73.217.148
:
172.93.223.125 / www.geeteetravels.com
:
Linux ubuntu 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
:
/
home
/
geeteetravels
/
public_html
/
admin
/
Upload File:
files >> /home/geeteetravels/public_html/admin/login.php
<?php require_once 'config.php'; // If already logged in, redirect to dashboard if (isLoggedIn()) { header("Location: dashboard.php"); exit(); } $error = ''; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $username = trim($_POST['username']); $password = trim($_POST['password']); if (!empty($username) && !empty($password)) { $stmt = $pdo->prepare("SELECT * FROM admin_users WHERE username = ?"); $stmt->execute([$username]); $user = $stmt->fetch(); if ($user && password_verify($password, $user['password'])) { $_SESSION['admin_id'] = $user['id']; $_SESSION['admin_username'] = $user['username']; header("Location: dashboard.php"); exit(); } else { $error = 'Invalid username or password.'; } } else { $error = 'Please enter both username and password.'; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Admin Login - Geetee Travels</title> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> <link href="../css/font-awesome.css" rel="stylesheet"> <link href="css/admin-style.css" rel="stylesheet"> </head> <body class="login-body"> <div class="login-container"> <div class="login-box"> <div class="login-header"> <img src="../images/logo.png" alt="Geetee Logo" class="login-logo"> <h2>Admin Portal</h2> <p>Welcome back! Please login to your account.</p> </div> <?php if ($error): ?> <div class="alert alert-danger"><?php echo $error; ?></div> <?php endif; ?> <form action="login.php" method="POST" class="login-form"> <div class="form-group"> <label for="username">Username</label> <div class="input-with-icon"> <i class="fa fa-user"></i> <input type="text" id="username" name="username" placeholder="Enter username" required> </div> </div> <div class="form-group"> <label for="password">Password</label> <div class="input-with-icon"> <i class="fa fa-lock"></i> <input type="password" id="password" name="password" placeholder="Enter password" required> </div> </div> <button type="submit" class="btn-login">Sign In</button> </form> <div class="login-footer"> <p>© <?php echo date('Y'); ?> Geetee Travels Pvt. Ltd.</p> </div> </div> </div> </body> </html>