From f62acd5c1a6a9d1eff8a0ab1d6cc7551a9ca1c0e Mon Sep 17 00:00:00 2001 From: runit Date: Tue, 27 Sep 2022 09:01:54 -0400 Subject: [PATCH] banned.php now shows a pretty page instead of an ugly one. credits to JamesJDillon @ Lainchan --- banned.php | 19 ++++++++++++++----- templates/notbanned.html | 7 +++++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 templates/notbanned.html 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 %}