Lines Matching refs:ip
53 $ip = $_SERVER['REMOTE_ADDR'];
57 if($this->is_excluded($ip, true)){
61 $ipv6 = isValidIPv6($ip);
66 else $this->ipaddr = $ip;
114 $ip ="2001:982:acd6:1:4899:d135:226b:2e79";
115 $record = $reader->city($ip);
333 function is_excluded($ip,$abort=false) { argument
345 if(preg_match($regex,$ip)){
354 $ip = $_SERVER['REMOTE_ADDR'];
401 $ip = $_SERVER['REMOTE_ADDR'];
403 if($this->is_excluded($ip)){
408 $ip = $this->ipv6;
414 $country = $this->get_country($ip);
442 if(!array_key_exists($ip, $this->ips)) {
443 $this->ips[$ip] = 0;
447 $this->ips[$ip] += 1;
467 if(!isset($this->ua[$ip])) {
468 $this->ua[$ip] = array($country['code']);
470 if(isset($browser) && !in_array($browser, $this->ua[$ip])) {
471 $this->ua[$ip][]=$browser;
482 if(!isset($this->pusers[$ip])) {
483 $this->pusers[$ip] = array();
486 if(!in_array($ip,$this->pusers[$page_md5])) {
488 array_push($this->pusers[$page_md5],$ip);
490 if(!in_array($ID,$this->pusers[$ip],$ID)) {
492 array_push($this->pusers[$ip],$ID);
538 function get_country($ip=null) { argument
540 if(!$ip) return null;
548 $record = $reader->city($ip);