示例#1
0
 public static function ip_match($allow, $ip)
 {
     if (strpos($allow, '*') === false && strpos($allow, '?') === false) {
         return self::net_match($ip, $allow);
     } else {
         return _string::glob_match($ip, $allow, true);
     }
 }