$user, 'role' => ($user === 'admin') ? 'admin' : 'viewer', 'display' => ($user === 'admin') ? 'ผู้ดูแลระบบ' : 'ผู้เยี่ยมชม' ]; header("Location: index.php"); exit; } else { $loginError = "ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง"; } } if (isset($_GET['logout'])) { session_destroy(); header("Location: index.php"); exit; } ?>
| เวลา | ระดับ | Action | ข้อความ | Source IP |
|---|