Browse Source

Added a better 'not banned' response if a user navigates to banned.php whilst not being banned.

main
JamesJDillon 8 years ago
committed by -
parent
commit
5678499e3f
  1. 17
      banned.php
  2. 6
      templates/not_banned.html

17
banned.php

@ -1,7 +1,16 @@
<?php
require_once 'inc/bootstrap.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>";
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('not_banned.html', array()
))
));
print "</body></html>";
?>

6
templates/not_banned.html

@ -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…
Cancel
Save