diff options
| author | JamesJDillon <J.Dillon@2014.ljmu.ac.uk> | 2016-08-28 23:33:23 +0100 |
|---|---|---|
| committer | JamesJDillon <J.Dillon@2014.ljmu.ac.uk> | 2016-08-28 23:33:23 +0100 |
| commit | 8525aaabfa0dfd2b18cbd531339a5d8f94d54f09 (patch) | |
| tree | 187f034134a7c8b355369d4faad6ec9ab9b27870 /banned.php | |
| parent | 7c27823868018f65b4407a032eaeac5736161282 (diff) | |
Added a better 'not banned' response if a user navigates to banned.php whilst not being banned.
Diffstat (limited to 'banned.php')
| -rw-r--r-- | banned.php | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -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>"; ?> |
