Lines Matching refs:this

14  * need to inherit from this class
81 $this->hlp = plugin_load('helper', 'statistics');
84 foreach($this->pages as $key => $val) {
86 $this->allowedpages = array_merge($this->allowedpages, $val);
88 $this->allowedpages[] = $key;
111 $this->opt = preg_replace('/[^a-z]+/', '', $_REQUEST['opt']);
112 if(!in_array($this->opt, $this->allowedpages)) $this->opt = 'dashboard';
114 $this->start = (int) $_REQUEST['s'];
115 $this->setTimeframe($_REQUEST['f'], $_REQUEST['t']);
125 $this->tlimit = $this->hlp->Query()->mktlimit($from, $to);
126 $this->from = $from;
127 $this->to = $to;
135 echo '<h1>' . $this->getLang('menu') . '</h1>';
136 $this->html_timeselect();
139 $method = 'html_' . $this->opt;
140 if(method_exists($this, $method)) {
141 echo '<div class="plg_stats_' . $this->opt . '">';
142 echo '<h2>' . $this->getLang($this->opt) . '</h2>';
143 $this->$method();
156 foreach($this->pages as $key => $info) {
161 $this->getLang($key),
168 '?do=admin&amp;page=statistics&amp;opt=' . $page . '&amp;f=' . $this->from . '&amp;t=' . $this->to,
169 $this->getLang($page),
176 '?do=admin&amp;page=statistics&amp;opt=' . $key . '&amp;f=' . $this->from . '&amp;t=' . $this->to,
177 $this->getLang($key),
188 '&amp;f=' . $this->from . '&amp;t=' . $this->to;
201 if($this->start > 0) {
202 $go = max($this->start - $limit, 0);
203 echo '<a href="?do=admin&amp;page=statistics&amp;opt=' . $this->opt . '&amp;f=' . $this->from . '&amp;t=' . $this->to . '&amp;s=' . $go . '" class="prev button">' . $this->getLang('prev') . '</a>';
207 $go = $this->start + $limit;
208 echo '<a href="?do=admin&amp;page=statistics&amp;opt=' . $this->opt . '&amp;f=' . $this->from . '&amp;t=' . $this->to . '&amp;s=' . $go . '" class="next button">' . $this->getLang('next') . '</a>';
223 echo '<span>' . $this->getLang('time_select') . '</span> ';
228 echo '<input type="hidden" name="opt" value="' . $this->opt . '" />';
229 echo '<input type="text" name="f" value="' . $this->from . '" class="edit datepicker" />';
230 echo '<input type="text" name="t" value="' . $this->to . '" class="edit datepicker" />';
237 echo '<a href="?do=admin&amp;page=statistics&amp;opt=' . $this->opt . '&amp;f=' . $$time . '&amp;t=' . $today . '">';
238 echo $this->getLang('time_' . $time);
251 echo '<p>' . $this->getLang('intro_dashboard') . '</p>';
255 $result = $this->hlp->Query()->aggregate($this->tlimit);
259 echo '<li><div class="li">' . sprintf($this->getLang('dash_' . $name), $result[$name]) . '</div></li>';
265 echo '<li><div class="li">' . sprintf($this->getLang('dash_' . $name), $result[$name]) . '</div></li>';
271 $this->html_graph('dashboardviews', 700, 280);
272 $this->html_graph('dashboardwiki', 700, 280);
277 echo '<h2>' . $this->getLang('dash_mostpopular') . '</h2>';
278 $result = $this->hlp->Query()->pages($this->tlimit, $this->start, 15);
279 $this->html_resulttable($result);
280 echo '<a href="?do=admin&amp;page=statistics&amp;opt=page&amp;f=' . $this->from . '&amp;t=' . $this->to . '" class="more button">' . $this->getLang('more') . '</a>';
285 echo '<h2>' . $this->getLang('dash_newincoming') . '</h2>';
286 $result = $this->hlp->Query()->newreferer($this->tlimit, $this->start, 15);
287 $this->html_resulttable($result);
288 echo '<a href="?do=admin&amp;page=statistics&amp;opt=newreferer&amp;f=' . $this->from . '&amp;t=' . $this->to . '" class="more button">' . $this->getLang('more') . '</a>';
293 echo '<h2>' . $this->getLang('dash_topsearch') . '</h2>';
294 $result = $this->hlp->Query()->searchphrases(true, $this->tlimit, $this->start, 15);
295 $this->html_resulttable($result);
296 echo '<a href="?do=admin&amp;page=statistics&amp;opt=searchphrases&amp;f=' . $this->from . '&amp;t=' . $this->to . '" class="more button">' . $this->getLang('more') . '</a>';
301 echo '<p>' . $this->getLang('intro_history') . '</p>';
302 $this->html_graph('history_page_count', 600, 200);
303 $this->html_graph('history_page_size', 600, 200);
304 $this->html_graph('history_media_count', 600, 200);
305 $this->html_graph('history_media_size', 600, 200);
309 echo '<p>' . $this->getLang('intro_countries') . '</p>';
310 $this->html_graph('countries', 400, 200);
311 $result = $this->hlp->Query()->countries($this->tlimit, $this->start, 150);
312 $this->html_resulttable($result, '', 150);
316 echo '<p>' . $this->getLang('intro_page') . '</p>';
317 $result = $this->hlp->Query()->pages($this->tlimit, $this->start, 150);
318 $this->html_resulttable($result, '', 150);
322 echo '<p>' . $this->getLang('intro_edits') . '</p>';
323 $result = $this->hlp->Query()->edits($this->tlimit, $this->start, 150);
324 $this->html_resulttable($result, '', 150);
328 echo '<p>' . $this->getLang('intro_images') . '</p>';
330 $result = $this->hlp->Query()->imagessum($this->tlimit);
332 echo sprintf($this->getLang('trafficsum'), $result[0]['cnt'], filesize_h($result[0]['filesize']));
335 $result = $this->hlp->Query()->images($this->tlimit, $this->start, 150);
336 $this->html_resulttable($result, '', 150);
340 echo '<p>' . $this->getLang('intro_downloads') . '</p>';
342 $result = $this->hlp->Query()->downloadssum($this->tlimit);
344 echo sprintf($this->getLang('trafficsum'), $result[0]['cnt'], filesize_h($result[0]['filesize']));
347 $result = $this->hlp->Query()->downloads($this->tlimit, $this->start, 150);
348 $this->html_resulttable($result, '', 150);
352 echo '<p>' . $this->getLang('intro_browsers') . '</p>';
353 $this->html_graph('browsers', 400, 200);
354 $result = $this->hlp->Query()->browsers($this->tlimit, $this->start, 150, true);
355 $this->html_resulttable($result, '', 150);
359 echo '<p>' . $this->getLang('intro_topuser') . '</p>';
360 $this->html_graph('topuser', 400, 200);
361 $result = $this->hlp->Query()->topuser($this->tlimit, $this->start, 150, true);
362 $this->html_resulttable($result, '', 150);
366 echo '<p>' . $this->getLang('intro_topeditor') . '</p>';
367 $this->html_graph('topeditor', 400, 200);
368 $result = $this->hlp->Query()->topeditor($this->tlimit, $this->start, 150, true);
369 $this->html_resulttable($result, '', 150);
373 echo '<p>' . $this->getLang('intro_topgroup') . '</p>';
374 $this->html_graph('topgroup', 400, 200);
375 $result = $this->hlp->Query()->topgroup($this->tlimit, $this->start, 150, true);
376 $this->html_resulttable($result, '', 150);
380 echo '<p>' . $this->getLang('intro_topgroupedit') . '</p>';
381 $this->html_graph('topgroupedit', 400, 200);
382 $result = $this->hlp->Query()->topgroupedit($this->tlimit, $this->start, 150, true);
383 $this->html_resulttable($result, '', 150);
387 echo '<p>' . $this->getLang('intro_os') . '</p>';
388 $this->html_graph('os', 400, 200);
389 $result = $this->hlp->Query()->os($this->tlimit, $this->start, 150, true);
390 $this->html_resulttable($result, '', 150);
394 $result = $this->hlp->Query()->aggregate($this->tlimit);
400 '<p>' . $this->getLang('intro_referer') . '</p>',
407 $result = $this->hlp->Query()->referer($this->tlimit, $this->start, 150);
408 $this->html_resulttable($result, '', 150);
412 echo '<p>' . $this->getLang('intro_newreferer') . '</p>';
414 $result = $this->hlp->Query()->newreferer($this->tlimit, $this->start, 150);
415 $this->html_resulttable($result, '', 150);
419 echo '<p>' . $this->getLang('intro_outlinks') . '</p>';
420 $result = $this->hlp->Query()->outlinks($this->tlimit, $this->start, 150);
421 $this->html_resulttable($result, '', 150);
425 echo '<p>' . $this->getLang('intro_searchphrases') . '</p>';
426 $result = $this->hlp->Query()->searchphrases(true, $this->tlimit, $this->start, 150);
427 $this->html_resulttable($result, '', 150);
431 echo '<p>' . $this->getLang('intro_searchwords') . '</p>';
432 $result = $this->hlp->Query()->searchwords(true, $this->tlimit, $this->start, 150);
433 $this->html_resulttable($result, '', 150);
437 echo '<p>' . $this->getLang('intro_internalsearchphrases') . '</p>';
438 $result = $this->hlp->Query()->searchphrases(false, $this->tlimit, $this->start, 150);
439 $this->html_resulttable($result, '', 150);
443 echo '<p>' . $this->getLang('intro_internalsearchwords') . '</p>';
444 $result = $this->hlp->Query()->searchwords(false, $this->tlimit, $this->start, 150);
445 $this->html_resulttable($result, '', 150);
449 echo '<p>' . $this->getLang('intro_searchengines') . '</p>';
450 $this->html_graph('searchengines', 400, 200);
451 $result = $this->hlp->Query()->searchengines($this->tlimit, $this->start, 150);
452 $this->html_resulttable($result, '', 150);
456 echo '<p>' . $this->getLang('intro_resolution') . '</p>';
457 $this->html_graph('resolution', 650, 490);
458 $result = $this->hlp->Query()->resolution($this->tlimit, $this->start, 150);
459 $this->html_resulttable($result, '', 150);
463 echo '<p>' . $this->getLang('intro_viewport') . '</p>';
464 $this->html_graph('viewport', 650, 490);
465 $result = $this->hlp->Query()->viewport($this->tlimit, $this->start, 150);
466 $this->html_resulttable($result, '', 150);
470 echo '<p>' . $this->getLang('intro_seenusers') . '</p>';
471 $result = $this->hlp->Query()->seenusers($this->tlimit, $this->start, 150);
472 $this->html_resulttable($result, '', 150);
538 $this->html_icon('search', $v);
540 $this->html_icon('browser', $v);
542 $this->html_icon('os', $v);
544 $this->html_icon('flags', $v);
559 if($pager) $this->html_pager($pager, count($result) > $pager);