summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.php')
-rw-r--r--www/index.php7
1 files changed, 4 insertions, 3 deletions
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 {