mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +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
|
||||
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>";
|
||||
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()
|
||||
))
|
||||
));
|
||||
?>
|
||||
|
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