From d225afbdc4633b9a836decb717166f19f2c3440f Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 10 Mar 2014 23:09:12 +0100 Subject: instructions 4 oli --- www/index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'www/index.php') diff --git a/www/index.php b/www/index.php index 77a29e6..3cc5377 100644 --- a/www/index.php +++ b/www/index.php @@ -7,12 +7,13 @@ require_once("interface_functions.php"); $db = new SQLite3("../database/sqlite.db"); + if(empty($_GET)){ - if($_SESSION["login"]){ - header("Refresh: 0; /$_SESSION[username]"); + if(!$_SESSION["login"]){ + header("Refresh: 0; /login"); exit; } else { - header("Refresh: 0; /login"); + header("Refresh: 0; /" . $_SESSION[username]); exit; } } else { -- cgit v1.2.3