summaryrefslogtreecommitdiff
path: root/banned.php
diff options
context:
space:
mode:
Diffstat (limited to 'banned.php')
-rw-r--r--banned.php22
1 files changed, 16 insertions, 6 deletions
diff --git a/banned.php b/banned.php
index 1bee9115..93e8929e 100644
--- a/banned.php
+++ b/banned.php
@@ -1,8 +1,18 @@
<?php
- require_once 'inc/functions.php';
- require_once 'inc/bans.php';
- checkBan();
- print "<!doctype html><html><head><meta charset='utf-8'><title>"._("Banned?")."</title></head><body>";
- print "<h1>"._("You are not banned.")."</h1>";
- print "</body></html>";
+ require_once 'inc/functions.php';
+ require_once 'inc/bans.php';
+ checkBan();
+ print "<!doctype html><html><head><meta charset='utf-8'><title>"._("Banned?")."</title></head><body>";
+
+ //If the user is not banned, show the "not banned" page.
+ die(
+ Element('page.html', array(
+ 'title' => _('Not banned!'),
+ 'config' => $config,
+ 'nojavascript' => true,
+ 'body' => Element('notbanned.html', array()
+ ))
+ ));
+
+ print "</body></html>";
?>