mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
issue 2287 modifed spamfilter module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11106 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
612193126c
commit
464bc59681
8 changed files with 26 additions and 32 deletions
|
|
@ -136,11 +136,10 @@
|
|||
* @brief IP registration
|
||||
* The registered IP address is considered as a spammer
|
||||
**/
|
||||
function insertIP($ipaddressList, $description = null) {
|
||||
//리눅스시.. 변환부분 체크하는 것 다시 봐야할 듯.
|
||||
$ipaddressList = str_replace("\r","",$ipaddressList);
|
||||
$ipaddressList = explode("\n",$ipaddressList);
|
||||
foreach($ipaddressList as $ipaddressKey => $ipaddressValue) {
|
||||
function insertIP($ipaddress_list, $description = null) {
|
||||
$ipaddress_list = str_replace("\r","",$ipaddress_list);
|
||||
$ipaddress_list = explode("\n",$ipaddress_list);
|
||||
foreach($ipaddress_list as $ipaddressValue) {
|
||||
preg_match("/(\d{1,3}(?:.(\d{1,3}|\*)){3})\s*(\/\/\s*(.*))?/",$ipaddressValue,$matches);
|
||||
if($ipaddress=trim($matches[1])) {
|
||||
$args->ipaddress = $ipaddress;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue