本帖最后由 1789098885 于 2018-10-25 17:35 编辑
./source/class/class_member.php
行636左右:
if($_G['cache']['ipctrl']['ipregctrl']) {
/* Restricted registration location */
require_once libfile('function/misc');
$ipLoc=convertip($_G['clientip']);
foreach(explode("\n", $_G['cache']['ipctrl']['ipregctrl']) as $ctrlip) {
//if(preg_match("/^(".preg_quote(($ctrlip = trim($ctrlip)), '/').")/", $_G['clientip'])) {
if(strstr($ipLoc,$ctrlip)){
$this->setting['regctrl'] = $this->setting['ipregctrltime'];
file_put_contents('/tmp/register_ban.log',date("Y-m-d H:i:s")."\t{$_G['clientip']}\t{$ipLoc}\n",FILE_APPEND);
showmessage('register_ctrl', NULL, array('regctrl' => $this->setting['regctrl']));
exit;
}
if(preg_match("/^(".preg_quote(($ctrlip = trim($ctrlip)), '/').")/", $_G['clientip'])) {
$ctrlip = $ctrlip.'%';
$this->setting['regctrl'] = $this->setting['ipregctrltime'];
break;
} else {
$ctrlip = $_G['clientip'];
}
}
} else {
$ctrlip = $_G['clientip'];
}
|