summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
authorHorus32014-03-16 16:36:04 +0100
committerHorus32014-03-16 16:36:04 +0100
commita73cbd964b6d18937468537f04ca63c52c4c8210 (patch)
treeb57bbd9c1f4658a74b98f0c60fa2cc8c3e4477be /www/index.php
parent09d24a3f321476ecdbbf10156fe724343a7d4084 (diff)
downloadfiles.iamfabulous.de-a73cbd964b6d18937468537f04ca63c52c4c8210.tar.gz
Fixed security issues.
Diffstat (limited to 'www/index.php')
-rwxr-xr-xwww/index.php5
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 {