Minahito
minah****@users*****
2006年 6月 22日 (木) 14:56:34 JST
Index: xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php diff -u xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php:1.1.2.3 xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php:removed --- xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php:1.1.2.3 Tue Mar 28 22:30:25 2006 +++ xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php Thu Jun 22 14:56:34 2006 @@ -1,20 +0,0 @@ -<?php - -if (!defined('XOOPS_ROOT_PATH')) exit(); - -class IPbanning_Filter extends XCube_ActionFilter -{ - function preBlockFilter() - { - if ($this->mController->mConfig['enable_badips']) { - if(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR']) { - foreach ($this->mController->mConfig['bad_ips'] as $bi) { - if(strstr($_SERVER['REMOTE_ADDR'],$bi)!==false) - die(); - } - } - } - } -} - -?> \ No newline at end of file