More ban explanations, and un-cacheable
This commit is contained in:
parent
e79d26ae8c
commit
662c5e8778
@ -195,7 +195,9 @@ class IPBan extends Extension {
|
|||||||
$reason = $row[$prefix.'reason'];
|
$reason = $row[$prefix.'reason'];
|
||||||
$admin = User::by_id($row[$prefix.'banner_id']);
|
$admin = User::by_id($row[$prefix.'banner_id']);
|
||||||
$date = date("Y-m-d", $row[$prefix.'end_timestamp']);
|
$date = date("Y-m-d", $row[$prefix.'end_timestamp']);
|
||||||
print "IP <b>$ip</b> has been banned until <b>$date</b> by <b>{$admin->name}</b> because of <b>$reason</b>";
|
header("Cache-control: no-cache, max-age=0");
|
||||||
|
print "IP <b>$ip</b> has been banned until <b>$date</b> by <b>{$admin->name}</b> because of <b>$reason</b>\n";
|
||||||
|
print "<p>If you couldn't possibly be guilty of what you're banned for, the person we banned probably had a dynamic IP address and so do you. See <a href='http://whatismyipaddress.com/dynamic-static'>http://whatismyipaddress.com/dynamic-static</a> for more information.\n";
|
||||||
|
|
||||||
$contact_link = $config->get_string("contact_link");
|
$contact_link = $config->get_string("contact_link");
|
||||||
if(!empty($contact_link)) {
|
if(!empty($contact_link)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user