first commit

This commit is contained in:
No4m
2025-10-27 20:35:12 +01:00
commit 9187f41e17
19 changed files with 504 additions and 0 deletions

17
admin/logout.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
require '../include/authenticator.php';
$_SESSION = [];
if (!function_exists('logout_user')) {
$_SESSION = [];
if (ini_get('session.use_cookies')) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000,
$params['path'], $params['domain'], $params['secure'], $params['httponly']);
}
session_destroy();
}
header('Location: ../index.php');
exit;