whoo
This commit is contained in:
parent
804e35f1b4
commit
39130c4f8e
@ -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 = 'Неверный пароль';
|
||||
|
Loading…
x
Reference in New Issue
Block a user