12 lines
No EOL
266 B
PHP
Executable file
12 lines
No EOL
266 B
PHP
Executable file
<?php
|
|
session_start();
|
|
if(isset($_SESSION["ts_points"]) && isset($_SESSION["ts_user"])){
|
|
unset($_SESSION["ts_user"]);
|
|
unset($_SESSION["ts_points"]);
|
|
session_destroy();
|
|
header("Location: index.php");
|
|
} else {
|
|
// Already logged out.
|
|
header("Location: index.php");
|
|
}
|
|
?>
|