summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
authormoehm2014-03-27 19:21:11 +0100
committermoehm2014-03-27 19:21:11 +0100
commit2310c2e3cb4cf9b724ef065fcb8543a60d0ff280 (patch)
treef0a661de715a080093d021d038d29b8630dc21cd /www/index.php
parentcb74ce9e9702677225102fc06b5adda8ce692cdc (diff)
downloadfiles.iamfabulous.de-2310c2e3cb4cf9b724ef065fcb8543a60d0ff280.tar.gz
Merge in comming. Added new function to generate a donwload id.
Diffstat (limited to 'www/index.php')
-rwxr-xr-xwww/index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/index.php b/www/index.php
index 5866411..5775b86 100755
--- a/www/index.php
+++ b/www/index.php
@@ -9,6 +9,15 @@ if(!isset($_SESSION["login"])){
$_SESSION["login"] = false;
}
+if(!isset($_SESSION["banned"])){
+ $_SESSION["banned"] = false;
+}
+
+if($_SESSION["banned"]){
+ echo "You are banned.";
+ exit;
+}
+
if(empty($_GET)){
if(!$_SESSION["login"]){
print_login(constant("EMPTY"));