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,16 @@
<?php
session_start();
require_once 'config.php'; // นำเข้าเพื่อใช้บันทึก log
require_once 'functions.php';
if (isset($_SESSION['user_id'])) {
logAction('LOGOUT', 'auth', 'ออกจากระบบ');
}
// ทำลาย session ทั้งหมด
session_unset();
session_destroy();
// กลับไปหน้าแรกของเว็บไซต์
header("Location: index.php");
exit;