mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
banned.php now shows a pretty page instead of an ugly one. credits to JamesJDillon @ Lainchan
This commit is contained in:
parent
4e5fecebd2
commit
f62acd5c1a
19
banned.php
19
banned.php
@ -1,7 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'inc/bootstrap.php';
|
require_once 'inc/functions.php';
|
||||||
checkBan();
|
require_once 'inc/bans.php';
|
||||||
print "<!doctype html><html><head><meta charset='utf-8'><title>"._("Banned?")."</title></head><body>";
|
require_once 'inc/bootstrap.php';
|
||||||
print "<h1>"._("You are not banned.")."</h1>";
|
checkBan();
|
||||||
print "</body></html>";
|
|
||||||
|
//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()
|
||||||
|
))
|
||||||
|
));
|
||||||
?>
|
?>
|
||||||
|
7
templates/notbanned.html
Normal file
7
templates/notbanned.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{% filter remove_whitespace %}
|
||||||
|
{# Automatically removes unnecessary whitespace #}
|
||||||
|
<div class="ban">
|
||||||
|
<h2>You are not banned!</h2>
|
||||||
|
<p class="reason">Well done on not being terrible!</p>
|
||||||
|
</div>
|
||||||
|
{% endfilter %}
|
Loading…
Reference in New Issue
Block a user