From 662c5e877882e8d8bfcb0c1bd80a463a51be2be2 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 15 Feb 2012 08:23:00 +0000 Subject: [PATCH] More ban explanations, and un-cacheable --- contrib/ipban/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/ipban/main.php b/contrib/ipban/main.php index ceaa0f6a..0e0fa295 100644 --- a/contrib/ipban/main.php +++ b/contrib/ipban/main.php @@ -195,7 +195,9 @@ class IPBan extends Extension { $reason = $row[$prefix.'reason']; $admin = User::by_id($row[$prefix.'banner_id']); $date = date("Y-m-d", $row[$prefix.'end_timestamp']); - print "IP $ip has been banned until $date by {$admin->name} because of $reason"; + header("Cache-control: no-cache, max-age=0"); + print "IP $ip has been banned until $date by {$admin->name} because of $reason\n"; + print "

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 http://whatismyipaddress.com/dynamic-static for more information.\n"; $contact_link = $config->get_string("contact_link"); if(!empty($contact_link)) {