diff options
| author | Horus3 | 2014-03-10 23:09:12 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-10 23:09:12 +0100 |
| commit | d225afbdc4633b9a836decb717166f19f2c3440f (patch) | |
| tree | 1b16785ced935cd8b24b670b3abeaf225a95623f /www/index.php | |
| parent | ca511853d6fb9b9a0e1b3a0388c706c2ee0b6499 (diff) | |
| download | files.iamfabulous.de-d225afbdc4633b9a836decb717166f19f2c3440f.tar.gz | |
instructions 4 oli
Diffstat (limited to 'www/index.php')
| -rw-r--r-- | www/index.php | 7 |
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 { |
