whoo
This commit is contained in:
parent
804e35f1b4
commit
39130c4f8e
@ -9,7 +9,7 @@ $config = require 'config.php';
|
|||||||
|
|
||||||
if (isset($_GET['logout'])) {
|
if (isset($_GET['logout'])) {
|
||||||
unset($_SESSION['admin_authenticated']);
|
unset($_SESSION['admin_authenticated']);
|
||||||
header('Location: admin.php');
|
header('Location: admin1337.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ if (!isset($_SESSION['admin_authenticated'])) {
|
|||||||
$password = $_POST['password'] ?? '';
|
$password = $_POST['password'] ?? '';
|
||||||
if ($password === $config['admin']['password']) {
|
if ($password === $config['admin']['password']) {
|
||||||
$_SESSION['admin_authenticated'] = true;
|
$_SESSION['admin_authenticated'] = true;
|
||||||
header('Location: admin.php');
|
header('Location: admin1337.php');
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
$error = 'Неверный пароль';
|
$error = 'Неверный пароль';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user