/[LeafOK_CVS]/fenglin/lib/client_addr.inc.php
ViewVC logotype

Diff of /fenglin/lib/client_addr.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 by sysadm, Wed Mar 23 17:31:14 2005 UTC Revision 1.9 by sysadm, Thu Jan 7 01:28:59 2010 UTC
# Line 15  function Client_Address($addr=null,$x_ad Line 15  function Client_Address($addr=null,$x_ad
15    
16          foreach($proxy_ip as $tmp => $ip)          foreach($proxy_ip as $tmp => $ip)
17          {          {
18                  if (ereg($ip,$addr))                  if (preg_match("/".$ip."/",$addr))
19                  {                  {
20                          if ($x_addr != null)                          if ($x_addr != null)
21                          {                          {
# Line 25  function Client_Address($addr=null,$x_ad Line 25  function Client_Address($addr=null,$x_ad
25                                          $proxy = false;                                          $proxy = false;
26                                          foreach($proxy_ip as $tmp => $ip)                                          foreach($proxy_ip as $tmp => $ip)
27                                          {                                          {
28                                                  if (ereg($ip,$client_addr[$i]))                                                  if (preg_match("/".$ip."/",$client_addr[$i]))
29                                                          $proxy = true;                                                          $proxy = true;
30                                          }                                          }
31                                          if (!$proxy)                                          if (!$proxy)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1