hajime/public/banned.php

27 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2023-08-11 22:16:32 +00:00
<?php
// Require core components
require_once __DIR__ . '/../startup.php';
// Get data
$banData = $flashii->processBans();
// Print header
print desHeader('You are '. (!empty($banData) ? '' : 'not ') .'Banned'. (!empty($banData) ? ' ;_;' : '!'));
?>
<div class="content standalone" style="padding: 20px;">
<h1><?='You are '. (!empty($banData) ? '' : 'not ') .'Banned'. (!empty($banData) ? ' ;_;' : '!');?></h1>
<?php
if(empty($banData)) {
print '<p>Why are you even viewing this page, silly person.</p>';
} else {
print '<p>You have been '. ($banData[3] ? '<b>permanently</b> ' : '') .'banned on <b>'. date($fwSettings['dateFormat'], $banData[1]) .'</b>'. ($banData[3] ? '' : ' until <b>'. date($fwSettings['dateFormat'], $banData[0]) .'</b>') .'.</p>';
print '<p>Reason: <i>'. $banData[2] .'</i></p>';
print '<p>The ban was issued on your '. ($banData[4] == 2 ? 'Username and IP Address' : ($banData[4] ? 'IP Address' : 'Username')) .'.</p>';
print '<p>If you feel like the ban was unjustful or you want to appeal the ban please send it to <a class="default" href="mailto:staff@flashii.net">staff@flashii.net</a>.</p>';
}
?>
</div>
<?php
// Print footer
print desFooter();