This commit is contained in:
icret
2022-01-21 19:03:07 +08:00
parent f01306e25a
commit e357bb4b13
8 changed files with 61 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ require_once 'header.php';
$config_user = $config['user'];
if (isset($_COOKIE[$config_user ]) and $_COOKIE[$config_user] == $config['password']) {
setcookie("admin", null, time() - 1, '/');
setcookie($config['user'], null, time() - 1, '/');
header("Refresh:2;url=../index.php");
echo '
<script>