1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

banned.php now shows a pretty page instead of an ugly one. credits to JamesJDillon @ Lainchan

This commit is contained in:
runit 2022-09-27 09:01:54 -04:00 committed by Fredrick Brennan
parent 4e5fecebd2
commit f62acd5c1a
2 changed files with 21 additions and 5 deletions

View File

@ -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
View 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 %}