Initial commit

This commit is contained in:
Porawit Dongwang
2026-09-16 23:20:08 +07:00
commit 0041668dbb
32577 changed files with 3687927 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
// auth/logout.php
session_start();
require_once '../config/db.php';
require_once '../includes/functions.php';
if (isset($_SESSION['cid'])) {
add_log($pdo_sys, $_SESSION['cid'], $_SESSION['fullname'], 'Logout', 'User logged out');
}
// Unset all of the session variables
$_SESSION = array();
// Destroy the session.
session_destroy();
// Redirect to login page
header("location: ../index.php");
exit;
?>