mirror of
https://github.com/Supernova3339/anonupload.git
synced 2026-05-05 14:47:13 +02:00
Apply fixes from StyleCI
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
<?php
|
||||
|
||||
// (A) START SESSION
|
||||
session_start();
|
||||
|
||||
|
||||
// (B) LOGOUT REQUEST
|
||||
if (isset($_POST["logout"])) { unset($_SESSION["user"]); }
|
||||
|
||||
if (isset($_POST['logout'])) {
|
||||
unset($_SESSION['user']);
|
||||
}
|
||||
|
||||
// (C) REDIRECT TO LOGIN PAGE IF NOT LOGGED IN
|
||||
if (!isset($_SESSION["user"])) {
|
||||
header("Location: ../");
|
||||
exit();
|
||||
}
|
||||
if (!isset($_SESSION['user'])) {
|
||||
header('Location: ../');
|
||||
exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user