Merge pull request #73 from JamesJDillon/Not-banned-page
Added a better 'not banned' response.
This commit is contained in:
commit
9bb9ee0cbe
12
banned.php
12
banned.php
@ -3,6 +3,16 @@
|
||||
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>";
|
||||
|
||||
//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>";
|
||||
?>
|
||||
|
6
templates/notbanned.html
Normal file
6
templates/notbanned.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% filter remove_whitespace %}
|
||||
{# Automatically removes unnecessary whitespace #}
|
||||
<div class="ban">
|
||||
<h1>You are not banned! Well done on not being terrible!</h1>
|
||||
</div>
|
||||
{% endfilter %}
|
Loading…
Reference in New Issue
Block a user