Lines Matching refs:ua
72 $this->ua_file = metaFN($ns . 'ua' , '.ser');
456 $this->ua = unserialize(io_readFile($this->ua_file,false));
457 if(!$this->ua) $this->ua = array();
458 if(!isset($this->ua['counts'])) {
459 $this->ua['counts'] = array();
462 if(!isset($this->ua['counts'][$browser])) {
463 $this->ua['counts'][$browser]=1;
465 else $this->ua['counts'][$browser]++;
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;
473 io_saveFile($this->ua_file,serialize($this->ua));
474 $this->ua = array();