diff options
| author | Horus3 | 2014-03-16 16:36:04 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-16 16:36:04 +0100 |
| commit | a73cbd964b6d18937468537f04ca63c52c4c8210 (patch) | |
| tree | b57bbd9c1f4658a74b98f0c60fa2cc8c3e4477be /www/index.php | |
| parent | 09d24a3f321476ecdbbf10156fe724343a7d4084 (diff) | |
| download | files.iamfabulous.de-a73cbd964b6d18937468537f04ca63c52c4c8210.tar.gz | |
Fixed security issues.
Diffstat (limited to 'www/index.php')
| -rwxr-xr-x | www/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |
