diff --git a/html/admin.php b/html/admin.php index 4887f5ae..f6ab649c 100644 --- a/html/admin.php +++ b/html/admin.php @@ -3,6 +3,7 @@ require "../include/variables.php"; require "../include/functions.php"; if(isset($_SESSION['userid']) == false) { + header("Location: login.php"); http_response_code(404); die(); } diff --git a/html/upload.php b/html/upload.php index 2347a75b..46ef0921 100644 --- a/html/upload.php +++ b/html/upload.php @@ -3,6 +3,7 @@ require "../include/variables.php"; require "../include/functions.php"; if(isset($_SESSION['userid']) == false) { + header("Location: login.php"); http_response_code(404); die(); }