diff --git a/banned.php b/banned.php index dc079cf0..a31b5620 100644 --- a/banned.php +++ b/banned.php @@ -1,7 +1,16 @@ "._("Banned?").""; - print "

"._("You are not banned.")."

"; - print ""; + require_once 'inc/functions.php'; + require_once 'inc/bans.php'; + require_once 'inc/bootstrap.php'; + checkBan(); + + //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() + )) + )); ?> diff --git a/templates/notbanned.html b/templates/notbanned.html new file mode 100644 index 00000000..6654b6d6 --- /dev/null +++ b/templates/notbanned.html @@ -0,0 +1,7 @@ +{% filter remove_whitespace %} +{# Automatically removes unnecessary whitespace #} +
+

You are not banned!

+

Well done on not being terrible!

+
+{% endfilter %}