From 58b80f5a72e60a0498f15d203bac33d498f1bfca Mon Sep 17 00:00:00 2001 From: shish Date: Sat, 18 Oct 2008 06:05:26 +0000 Subject: [PATCH] denied. git-svn-id: file:///home/shish/svn/shimmie2/trunk@1086 7f39781d-f577-437e-ae19-be835c7a54ca --- contrib/ipban/main.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/ipban/main.php b/contrib/ipban/main.php index 904bcc3c..0f3b8629 100644 --- a/contrib/ipban/main.php +++ b/contrib/ipban/main.php @@ -69,6 +69,10 @@ class IPBan implements Extension { $this->theme->display_bans($event->page, $this->get_bans()); } } + else { + header("HTTP/1.0 403 Access Denied"); + $this->theme->display_error($event->page, "Permission Denied", "This page is for admins only"); + } } if($event instanceof UserBlockBuildingEvent) {