summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
authorHorus32014-03-10 23:09:12 +0100
committerHorus32014-03-10 23:09:12 +0100
commitd225afbdc4633b9a836decb717166f19f2c3440f (patch)
tree1b16785ced935cd8b24b670b3abeaf225a95623f /www/index.php
parentca511853d6fb9b9a0e1b3a0388c706c2ee0b6499 (diff)
downloadfiles.iamfabulous.de-d225afbdc4633b9a836decb717166f19f2c3440f.tar.gz
instructions 4 oli
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 {