Lines Matching refs:ip

53          $ip = $_SERVER['REMOTE_ADDR'];         
54 //$ip = "2001:982:acd6:1:4899:d135:226b:2e79";
55 //$ip = "2602:304:cec0:9b00:e96b:9c78:eb14:9fb";
56 // $ip = "76.24.190.253";
57 if($this->is_excluded($ip, true)){
61 $ipv6 = isValidIPv6($ip);
66 else $this->ipaddr = $ip;
73 $this->ip_file = metaFN($ns . 'ip' , '.ser');
114 $ip ="2001:982:acd6:1:4899:d135:226b:2e79";
115 $record = $reader->city($ip);
333 function is_excluded($ip,$abort=false) {
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) {
540 if(!$ip) return null;
541 // $ip = '138.201.137.132';
548 $record = $reader->city($ip);
557 $country_data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' .$ip));
562 $ip = $this->ipv6;
579 return (array('code'=>geoip_country_code_by_addr_v6($giCity, $ip),'name'=>geoip_country_name_by_addr_v6($giCity, $ip) ));
581 else $record = GeoIP_record_by_addr($giCity, $ip);