summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.php')
-rwxr-xr-xwww/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/index.php b/www/index.php
index 25a63e4..b73353b 100755
--- a/www/index.php
+++ b/www/index.php
@@ -6,9 +6,12 @@ require_once("include.php"); // handles all the stuff that needs to be included
$db = new SQLite3("../database/sqlite.db");
+if(!isset($_SESSION["login"])){
+ $_SESSION["login"] = false;
+}
if(empty($_GET)){
- if(!isset($_SESSION["login"])){
+ if(!$_SESSION["login"]){
header("Refresh: 0; /login");
exit;
} else {