Lines Matching refs:this

39         $this->long_names = $this->getConf('long_names');
40 if(!isset($this->long_names) || $this->long_names <= 0) $this->long_names = false;
41 $this->show_date=$this->getConf('show_date');
43 $this->SEP='\\';
45 $this->helper = & plugin_load('helper', 'quickstats');
46 $this->cc_arrays = $this->helper->get_cc_arrays();
53 $pname = $this->getPluginName();
314 $this->page_file = metaFN($ns . 'pages' ,'.ser');
315 $this->ip_file = metaFN($ns . 'ip' , '.ser');
316 $this->misc_data_file = metaFN($ns . 'misc_data' , '.ser');
317 $this->ua_file = metaFN($ns . 'ua' , '.ser');
320 $this->pages = unserialize(io_readFile($this->page_file,false));
321 if(!$this->pages) $this->pages = array();
324 $this->ips = unserialize(io_readFile($this->ip_file,false));
325 if(!$this->ips) $this->ips = array();
328 $this->misc_data = unserialize(io_readFile($this->misc_data_file,false));
329 if(!$this->misc_data) $this->misc_data = array();
332 $this->ua_data = unserialize(io_readFile($this->ua_file,false));
333 if(!$this->ua_data) $this->ua_data = array();
335 $this->ips = unserialize(io_readFile($this->ip_file,false));
336 if(!$this->ips) $this->ips = array();
339 $uasort_ip = unserialize(io_readFile($this->ip_file,false));
348 if($this->getConf('geoplugin')) {
352 …if($this->getConf('geoip_local') && file_exists(QUICK_STATS. 'GEOIP/GeoLiteCity.dat')) { …
353 … $this->giCity = geoip_open(QUICK_STATS. 'GEOIP/GeoLiteCity.dat',GEOIP_STANDARD);
356 $gcity_dir = $this->getConf('geoip_dir');
357 …$gcity_dat=rtrim($gcity_dir, "\040,/\\") . $this->SEP . 'GeoLiteCity.dat'; …
359 $this->giCity = geoip_open($gcity_dat,GEOIP_STANDARD);
369 if($ip_array) $this->geoipcity_ini();
372 $depth = $this->row_depth();
376 $this->theader($renderer, 'IP');
379 $this->theader($renderer, 'Page');
388 $renderer->doc .= $this->row($item,$count,$num,$date_str, $ip_array);
395 if($accesses=='Accesses') $accesses=$this->getLang('accesses');
410 $uniq = $this->ips['uniq'];
411 unset($this->ips['uniq']);
412 $this->sort($this->ips);
415 $renderer->doc .= '<span class="title">' .$this->getLang('uniq_ip') .'</span>';
416 $total_accesses = $this->table($this->ips,$renderer,true,true,true);
417 …$renderer->doc .= "<span class='total'>" .$this->getLang('ttl_accesses') . "$total_accesses</span>…
418 … $renderer->doc .= "<span class='total'>" .$this->getLang('ttl_uniq_ip') ."$uniq</span></br>\n";
424 if(!$this->pages) return array();
426 $this->sort($this->pages['page']);
434 … $renderer->doc .= '<span class="title">'. $this->getLang('label_page_access') .'</span>';
436 … $date =($this->show_date && isset($this->pages['date'] )) ? $this->pages['date'] : false;
437 $page_count = $this->table($this->pages['page'],$renderer,true,$date);
438 …$renderer->doc .= "<span class='total'>" . $this->getLang('pages_accessed') . count($this->pages…
439 …$renderer->doc .= "<span class='total'>". $this->getLang('ttl_accesses') . $this->pages['site_to…
449 $browsers = $this->misc_data['browser'];
450 $platform = $this->misc_data['platform'];
451 $version = $this->misc_data['version'];
452 $this->sort($browsers);
453 $this->sort($platform);
454 $this->sort($version);
465 … $renderer->doc .= '<br /><span class="title">' . $this->getLang('browsers') .'</span>';
471 $renderer->doc .= $this->row($browser, $val,$num);
473 $v = $this->get_subversions($browser,$version);
474 $this->table($v,$renderer, false,false);
481 $this->table($platform,$renderer);
487 $countries = $this->misc_data['country'];
488 $this->sort($countries);
498 $this->theader($renderer, $this->getLang('country') );
501 $depth = $this->row_depth();
508 $cntry=$this->cc_arrays->get_country_name($cc) ;
510 $renderer->doc .= $this->row($cntry,$count,$num);
513 $renderer->doc .= $this->row($cntry,$count,$num);
517 …$renderer->doc .= "<span class='total'>" .$this->getLang('ttl_countries') . count($this->misc_data…
519 … $renderer->doc .= "<span class='total'>" . $this->getLang('ttl_accesses') ."$total</span></br>";
528 $meta_path = $this->helper->metaFilePath(true) ;
548 $this->sort($tmp);
580 $depth = $this->row_depth();
582 $asize = count($this->ua_data);
584 $this->ua_sort($this->ua_data);
591 $total_accesses = $this->ua_data['counts'] ;
592 unset($this->ua_data['counts']);
595 …$renderer->doc .= '<br /><span class="title">'. $this->getLang('browsers_and_ua') . $header .'</…
597 …$this->theader($renderer,'IP', $this->getLang('country'),"&nbsp;" . $this->getLang('accesses'). "&…
598 foreach($this->ua_data as $ip=>$data) {
602 $country=$this->cc_arrays->get_country_name($cc) ;
604 …$renderer->doc .= $this->extended_row($uasort_ip[$ip], array($ip, "&nbsp;&nbsp;$country",$uas), $…
609 …$renderer->doc .= '<br /><span class="title">' . $this->getLang('ttl_accesses_ua') .'</span><br />…
611 … $this->theader($renderer,"&nbsp;&nbsp;&nbsp;&nbsp;Agents&nbsp;&nbsp;&nbsp;&nbsp;");