--- fenglin/lib/client_addr.inc.php 2005/03/23 17:31:14 1.8 +++ fenglin/lib/client_addr.inc.php 2010/01/07 01:28:59 1.9 @@ -15,7 +15,7 @@ function Client_Address($addr=null,$x_ad foreach($proxy_ip as $tmp => $ip) { - if (ereg($ip,$addr)) + if (preg_match("/".$ip."/",$addr)) { if ($x_addr != null) { @@ -25,7 +25,7 @@ function Client_Address($addr=null,$x_ad $proxy = false; foreach($proxy_ip as $tmp => $ip) { - if (ereg($ip,$client_addr[$i])) + if (preg_match("/".$ip."/",$client_addr[$i])) $proxy = true; } if (!$proxy)