From a73cbd964b6d18937468537f04ca63c52c4c8210 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Sun, 16 Mar 2014 16:36:04 +0100 Subject: Fixed security issues. --- www/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/index.php') 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 { -- cgit v1.2.3