only check IP ban once per page load
git-svn-id: file:///home/shish/svn/shimmie2/trunk@449 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
b64ac2128e
commit
5e041c1136
@ -34,10 +34,10 @@ class IPBan extends Extension {
|
|||||||
if($config->get_int("ext_ipban_version") < 1) {
|
if($config->get_int("ext_ipban_version") < 1) {
|
||||||
$this->install();
|
$this->install();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->check_ip_ban();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->check_ip_ban();
|
|
||||||
|
|
||||||
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "ip_ban")) {
|
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "ip_ban")) {
|
||||||
global $user;
|
global $user;
|
||||||
if($user->is_admin()) {
|
if($user->is_admin()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user