This commit is contained in:
Lain Iwakura 2025-07-24 07:26:14 +03:00
parent 804e35f1b4
commit 39130c4f8e
No known key found for this signature in database
GPG Key ID: C7C18257F2ADC6F8

View File

@ -9,7 +9,7 @@ $config = require 'config.php';
if (isset($_GET['logout'])) {
unset($_SESSION['admin_authenticated']);
header('Location: admin.php');
header('Location: admin1337.php');
exit;
}
@ -18,7 +18,7 @@ if (!isset($_SESSION['admin_authenticated'])) {
$password = $_POST['password'] ?? '';
if ($password === $config['admin']['password']) {
$_SESSION['admin_authenticated'] = true;
header('Location: admin.php');
header('Location: admin1337.php');
exit;
} else {
$error = 'Неверный пароль';