1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

Merge pull request #2988 from Jimmi08/log_stat

TodaysVisits templated #2987
This commit is contained in:
Cameron
2018-01-24 10:25:57 -08:00
committed by GitHub
2 changed files with 312 additions and 110 deletions

View File

@@ -25,6 +25,7 @@ e107::includeLan(e_PLUGIN.'log/languages/'.e_LANGUAGE.'.php');
$bar = (file_exists(THEME.'images/bar.png') ? THEME_ABS.'images/bar.png' : e_IMAGE_ABS.'generic/bar.png');
$mes = e107::getMessage();
e107::css('inline', "
/* Site Stats */
.b { background-image: url('".$bar."'); border: 1px solid #999; height: 10px; font-size: 0px }
@@ -840,6 +841,9 @@ class siteStats
*/
function renderTodaysVisits($do_errors = FALSE)
{
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'todaysvisits', true, true);
$do_errors = $do_errors && ADMIN && getperms('P'); // Only admins can see page errors
// Now run through and keep either the non-error pages, or the error pages, according to $do_errors
@@ -864,23 +868,29 @@ class siteStats
$totalu += $info['unq'];
}
$text = "<table class='table table-striped fborder' style='width: 100%;'>
<tr>
<th class='fcaption' style='width: 20%;'>".ADSTAT_L19."</th>
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L20."</th>
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$text = $template['start'];
foreach($totalArray as $key => $info)
{
if($info['ttl'])
{
$percentage = round(($info['ttl']/$totalv) * 100, 2);
$text .= "<tr>\n<td class='forumheader3' style='width: 20%;text-align:left'><img src='".e_PLUGIN."log/images/html.png' alt='' style='vertical-align: middle;' /> <a href='".$info['url']."'>".$this->getLabel($key)."</a>
</td>\n<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info['ttl']." [".$info['unq']."]")."</td>\n<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>\n</tr>\n";
$var = array('ITEM_URL' => $info['url'],
'ITEM_KEY' => $this->getLabel($key),
'ITEM_BAR' => $this -> bar($percentage, $info['ttl']." [".$info['unq']."]"),
'ITEM_PERC'=> $percentage,
);
$text .= $tp->simpleParse($template['item'], $var);
}
}
$text .= "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21." [".ADSTAT_L22."]</td><td class='forumheader' style='text-align: center;'>{$totalv} [{$totalu}]</td><td class='forumheader'></td></tr></table>";
$var = array('TOTALV' => $totalv,
'TOTALU' => $totalu,
);
$text .= $tp->simpleParse($template['end'], $var);
return $text;
}
@@ -899,6 +909,7 @@ class siteStats
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'alltimevisits_total', true, true);
$text = '';
$sql->select("logstats", "*", "log_id='pageTotal' ");
@@ -930,18 +941,8 @@ class siteStats
$totalArray = $this -> arraySort($totalArray, "ttlv");
$text .= "<table class='table table-striped fborder' style='width: 100%;'>\n
<colgroup>
<col style='width: 20%;' />
<col style='width: 60%;' />
<col style='width: 10%;' />
<col style='width: 10%;' />
</colgroup>
<tr>
<th class='fcaption' >".ADSTAT_L19."</th>\n
<th class='fcaption' colspan='2'>".ADSTAT_L23."</th>
<th class='fcaption' style='text-align: center;'>%</th>
</tr>\n";
$text .= $template['start'];
foreach($totalArray as $key => $info)
{
@@ -949,19 +950,24 @@ class siteStats
{
if (!$info['url'] && (($key == 'index') || (strpos($key,':index') !== FALSE))) $info['url'] = e_HTTP.'index.php'; // Avoids empty link
$percentage = round(($info['ttlv']/$total) * 100, 2);
$text .= "<tr>
<td class='forumheader3' >
".($can_delete ? "<a href='".e_SELF."?{$action}.rem.".rawurlencode($key)."'><img src='".e_PLUGIN_ABS."log/images/remove.png' alt='".ADSTAT_L39."' title='".ADSTAT_L39."' style='vertical-align: middle;' /></a> " : "")."
<img src='".e_PLUGIN_ABS."log/images/html.png' alt='' style='vertical-align: middle;' /> <a href='".$info['url']."' title=\"".$this->getLabel($key)."\" >".$this->getLabel($key,true)."</a>
";
$text .= "</td>
<td class='forumheader3' >".$this->bar($percentage, $info['ttlv'])."</td>
<td class='forumheader3' style='text-align: center;'>".$percentage."%</td>
</tr>\n";
}
}
$text .= "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td><td class='forumheader' style='text-align: center;'>".number_format($total)."</td><td class='forumheader'></td></tr>\n</table>";
$var = array('ITEM_URL' => $info['url'],
'ITEM_KEY' => $this->getLabel($key,true),
'ITEM_TITLE' => $this->getLabel($key),
'ITEM_BAR' => $this->bar($percentage, $info['ttlv']),
'ITEM_PERC'=> $percentage,
'ITEM_DELETE'=> ($can_delete ? "<a href='".e_SELF."?{$action}.rem.".rawurlencode($key)."'>
<img src='".e_PLUGIN_ABS."log/images/remove.png' alt='".ADSTAT_L39."' title='".ADSTAT_L39."' style='vertical-align: middle;' /></a> " : ""),
);
$text .= $tp->simpleParse($template['item'], $var);
}
}
$var = array('TOTAL' => number_format($total),
);
$text .= $tp->simpleParse($template['end'], $var);
$template = e107::getTemplate('log', 'log', 'alltimevisits_unique', true, true);
$uniqueArray = array();
$totalv = 0;
@@ -976,13 +982,7 @@ class siteStats
}
$uniqueArray = $this -> arraySort($uniqueArray, "unqv");
$text .= "<br />
<table class='table table-striped fborder' style='width: 100%;'>
<tr>
<th class='fcaption' style='width: 20%;'>".ADSTAT_L19."</th>
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L24."</th>
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$text .= $template['start'];
foreach($uniqueArray as $key => $info)
{
@@ -990,14 +990,18 @@ class siteStats
{
if (!$info['url'] && (($key == 'index') || (strpos($key,':index') !== FALSE))) $info['url'] = e_HTTP.'index.php'; // Avoids empty link
$percentage = round(($info['unqv']/$totalv) * 100, 2);
$text .= "<tr>
<td class='forumheader3' style='width: 20%;'><img src='".e_PLUGIN_ABS."log/images/html.png' alt='' style='vertical-align: middle;' /> <a href='".$info['url']."'>".$tp->text_truncate($key, 50)."</a></td>
<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info['unqv'])."</td>
<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>
</tr>\n";
$var = array('ITEM_URL' => $info['url'],
'ITEM_KEY' => $tp->text_truncate($key, 50),
'ITEM_BAR' => $this -> bar($percentage, $info['unqv']),
'ITEM_PERC'=> $percentage,
);
$text .= $tp->simpleParse($template['item'], $var);
}
}
$text .= "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td><td class='forumheader' style='text-align: center;'>".number_format($totalv)."</td><td class='forumheader'></td></tr>\n</table>";
$var = array('TOTAL' => number_format($totalv),
);
$text .= $tp->simpleParse($template['end'], $var);
return $text;
}
@@ -1013,6 +1017,9 @@ class siteStats
function renderBrowsers($selection = FALSE, $show_version=TRUE)
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'browsers', true, true);
if (!$selection) $selection = array(1);
if (!is_array($selection)) $selection = array(1);
@@ -1090,18 +1097,11 @@ class siteStats
$total = array_sum($browserArray);
$text .= "
<table class='table table-striped fborder' style='width: 100%;'>\n
<tr>
<th class='fcaption' colspan='4' style='text-align:center'>".$this->browser_headings[$act].$pars['hdg_extra']."</th>
</tr>\n
<tr>
<th class='fcaption' style='width: 20%;'>
<a title='".($this -> order ? ADSTAT_L48 : ADSTAT_L49)."' href='".e_SELF."?".($show_version ? "3" : "14").($this -> order ? "" : ".1" )."'>".ADSTAT_L26."</a>
</th>
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L21."</th>\n
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$var = array('START_CAPTION' => $this->browser_headings[$act].$pars['hdg_extra'],
'START_TITLE' => ($this -> order ? ADSTAT_L48 : ADSTAT_L49),
'START_URL' => e_SELF."?".($show_version ? "3" : "14").($this -> order ? "" : ".1" ),
);
$text .= $tp->simpleParse($template['start'], $var);
if (count($browserArray))
{
@@ -1121,20 +1121,25 @@ class siteStats
$image = "unknown.png";
}
$percentage = round(($info/$total) * 100, 2);
$text .= "<tr>
<td class='forumheader3' style='width: 20%;'>".($image ? "<img src='".e_PLUGIN_ABS."log/images/{$image}' alt='' style='vertical-align: middle;' /> " : "").$key."</td>".
($entries == 1 ? "<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info)."</td>" : "<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info)."</td>")."
<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>
</tr>\n";
$var = array(
'ITEM_IMAGE' => ($image ? "<img src='".e_PLUGIN_ABS."log/images/{$image}' alt='' style='vertical-align: middle;' /> " : ""),
'ITEM_KEY' => $key,
'ITEM_BAR' => $this -> bar($percentage, $info),
'ITEM_PERC'=> $percentage,
);
$text .= $tp->simpleParse($template['item'], $var);
$text .= "";
}
$text .= "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td><td class='forumheader' style='text-align: center;'>{$total}</td>
<td class='forumheader'></td></tr>\n";
$var = array('TOTAL' => number_format($total),
);
$text .= $tp->simpleParse($template['end'], $var);
}
else
{
$text .= "<tr><td class='fcaption' colspan='4' style='text-align:center'>".ADSTAT_L25."</td></tr>\n";
$text .= $tp->simpleParse($template['nostatistic']);
}
$text .= "</table><br />";
}
return $text;
}
@@ -1153,6 +1158,8 @@ class siteStats
function renderOses($selection = FALSE, $show_version=TRUE)
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'oses', true, true);
if (!$selection) $selection = array(1);
if (!is_array($selection)) $selection = array(1);
$text = '';
@@ -1227,17 +1234,12 @@ class siteStats
}
$total = array_sum($osArray);
$text .= "
<table class='table table-striped fborder' style='width: 100%;'>\n
<tr>
<th class='fcaption' colspan='4' style='text-align:center'>".$this->browser_headings[$act].$pars['hdg_extra']."</th>
</tr>\n
<tr>
<th class='fcaption' style='width: 20%;'>
<a title='".($this -> order ? "sort by total" : "sort alphabetically")."' href='".e_SELF."?".($show_version ? "4" : "15").($this -> order ? "" : ".1" )."'>".ADSTAT_L27."</a></th>\n
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L21."</th>
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$var = array('START_CAPTION' => $this->browser_headings[$act].$pars['hdg_extra'],
'START_TITLE' => ($this -> order ? "sort by total" : "sort alphabetically"),
'START_URL' => e_SELF."?".($show_version ? "4" : "15").($this -> order ? "" : ".1" ),
);
$text .= $tp->simpleParse($template['start'], $var);
if (count($osArray))
{
@@ -1257,19 +1259,22 @@ class siteStats
elseif(stristr($key, "Android")) { $image = "android.png"; }
$percentage = round(($info/$total) * 100, 2);
$text .= "<tr>
<td class='forumheader3' style='width: 20%;'>".($image ? "<img src='".e_PLUGIN_ABS."log/images/{$image}' alt='' style='vertical-align: middle;' /> " : "").$key."</td>".
($entries == 1 ? "<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info)."</td>" : "<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info)."</td>")."
<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>
</tr>\n";
$var = array(
'ITEM_IMAGE' => ($image ? "<img src='".e_PLUGIN_ABS."log/images/{$image}' alt='' style='vertical-align: middle;' /> " : ""),
'ITEM_KEY' => $key,
'ITEM_BAR' => $this -> bar($percentage, $info),
'ITEM_PERC'=> $percentage,
);
$text .= $tp->simpleParse($template['item'], $var);
}
$text .= "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td><td class='forumheader' style='text-align: center;'>{$total}</td><td class='forumheader'>&nbsp;</td></tr>\n";
$var = array('TOTAL' => number_format($total));
$text .= $tp->simpleParse($template['end'], $var);
}
else
{
$text .= "<tr><td class='fcaption' colspan='4' style='text-align:center'>".ADSTAT_L25."</td></tr>\n";
$text .= $tp->simpleParse($template['nostatistic']);
}
$text .= "</table><br />";
}
return $text;
}
@@ -1286,6 +1291,8 @@ class siteStats
function renderDomains($selection = FALSE)
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'domains', true, true);
if (!$selection) $selection = array(1);
if (!is_array($selection)) $selection = array(1);
@@ -1328,11 +1335,11 @@ class siteStats
}
$total = array_sum($domArray);
$text .= " <table class='table table-striped fborder' style='width: 100%;'>\n
<tr><td class='fcaption' colspan='4' style='text-align:center'>".$this->browser_headings[$act].$pars['hdg_extra']."</td></tr>\n
<tr>\n<td class='fcaption' style='width: 20%;'>
<a title='".($this -> order ? "sort by total" : "sort alphabetically")."' href='".e_SELF."?5".($this -> order ? "" : ".1" )."'>".ADSTAT_L28."</a></td>\n
<td class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L21."</td>\n<td class='fcaption' style='width: 10%; text-align: center;'>%</td>\n</tr>\n";
$var = array('START_CAPTION' => $this->browser_headings[$act].$pars['hdg_extra'],
'START_TITLE' => ($this -> order ? "sort by total" : "sort alphabetically"),
'START_URL' => e_SELF."?5".($this -> order ? "" : ".1" ),
);
$text .= $tp->simpleParse($template['start'], $var);
if (count($domArray))
{
@@ -1341,20 +1348,22 @@ class siteStats
if($key = $this -> getcountry($key))
{
$percentage = round(($info/$total) * 100, 2);
$text .= "<tr>
<td class='forumheader3' style='width: 20%;'>".$key."</td>
<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info)."</td>
<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>
</tr>\n";
$var = array(
'ITEM_KEY' => $key,
'ITEM_BAR' => $this -> bar($percentage, $info),
'ITEM_PERC'=> $percentage,
);
$text .= $tp->simpleParse($template['item'], $var);
}
}
$text .= "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td><td class='forumheader' style='text-align: center;'>$total</td><td class='forumheader'></td></tr>\n";
//before: $var = array('TOTAL' => $total,
$var = array('TOTAL' => number_format($total));
$text .= $tp->simpleParse($template['end'], $var);
}
else
{
$text .= "<tr><td class='fcaption' colspan='4' style='text-align:center'>".ADSTAT_L25."</td></tr>\n";
$text .= $tp->simpleParse($template['nostatistic']);
}
$text .= "</table><br />";
}
return $text;
}
@@ -1372,6 +1381,8 @@ class siteStats
function renderScreens($selection = FALSE)
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'screens', true, true);
if (!$selection) $selection = array(1);
if (!is_array($selection)) $selection = array(1);
@@ -1475,6 +1486,8 @@ class siteStats
function renderRefers($selection = FALSE)
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'refers', true, true);
if (!$selection) $selection = array(1);
if (!is_array($selection)) $selection = array(1);
@@ -1568,7 +1581,8 @@ class siteStats
function renderQueries($selection = FALSE)
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'queries', true, true);
if (!$selection) $selection = array(1);
if (!is_array($selection)) $selection = array(1);
@@ -1651,6 +1665,10 @@ class siteStats
*/
function recentVisitors()
{
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'visitors', true, true);
if(!is_array($this -> fileRecent) || !count($this -> fileRecent))
{
return "<div style='text-align: center;'>".ADSTAT_L25.".</div>";
@@ -1702,6 +1720,8 @@ class siteStats
function renderDaily()
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'daily', true, true);
$td = date("Y-m-j", time());
$dayarray[$td] = array();
@@ -1875,6 +1895,8 @@ class siteStats
function renderMonthly()
{
$sql = e107::getDB();
$tp = e107::getParser();
$template = e107::getTemplate('log', 'log', 'monthly', true, true);
// Month format entries have log_id = yyyy-mm
if(!$entries = $sql->select("logstats", "*", "log_id REGEXP('^[[:digit:]]+\-[[:digit:]]+$') ORDER BY CONCAT(LEFT(log_id,4), RIGHT(log_id,2)) DESC"))

View File

@@ -0,0 +1,180 @@
<?php
/**
* Copyright (C) e107 Inc (e107.org), Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* $Id$
*
* News menus templates
*/
if (!defined('e107_INIT')) exit;
$LOG_TEMPLATE['todaysvisits']['start'] =
"<div class='table-responsive' id='log-todaysvisits'>
<table class='table table-striped fborder' style='width: 100%;'>
<tr>
<th class='fcaption' style='width: 20%;'>".ADSTAT_L19."</th>
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L20."</th>
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$LOG_TEMPLATE['todaysvisits']['item'] =
"<tr>\n<td class='forumheader3' style='width: 20%;text-align:left'>
<img src='".e_PLUGIN."log/images/html.png' alt='' style='vertical-align: middle;' />
<a href='{ITEM_URL}'>{ITEM_KEY}</a>
</td>\n<td class='forumheader3' style='width: 70%;'>{ITEM_BAR}</td>
<td class='forumheader3' style='width: 10%; text-align: center;'>{ITEM_PERC}%</td>\n</tr>\n";
$LOG_TEMPLATE['todaysvisits']['end'] =
"<tr><td class='forumheader' colspan='2'>".ADSTAT_L21." [".ADSTAT_L22."]</td><td class='forumheader' style='text-align: center;'>{TOTALV} [{TOTALU}]</td>
<td class='forumheader'></td></tr></table>
</div>";
$LOG_TEMPLATE['alltimevisits_total']['start'] = "
<div class='table-responsive' id='alltimevisits_total'>
<table class='table table-striped fborder' style='width: 100%;'>\n
<colgroup>
<col style='width: 20%;' />
<col style='width: 60%;' />
<col style='width: 10%;' />
<col style='width: 10%;' />
</colgroup>
<tr>
<th class='fcaption' >".ADSTAT_L19."</th>\n
<th class='fcaption' colspan='2'>".ADSTAT_L23."</th>
<th class='fcaption' style='text-align: center;'>%</th>
</tr>\n";
$LOG_TEMPLATE['alltimevisits_total']['item'] = "
<tr>
<td class='forumheader3' >
{ITEM_DELETE}
<img src='".e_PLUGIN_ABS."log/images/html.png' alt='' style='vertical-align: middle;' />
<a href='{ITEM_URL}' title='{ITEM_TITLE}' >{ITEM_KEY}</a>
</td>
<td class='forumheader3' >{ITEM_BAR}</td>
<td class='forumheader3' style='text-align: center;'>{ITEM_PERC}%</td>
</tr>\n
";
$LOG_TEMPLATE['alltimevisits_total']['end'] = "<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td>
<td class='forumheader' style='text-align: center;'>{TOTAL}</td><td class='forumheader'></td></tr>\n</table></div>";
$LOG_TEMPLATE['alltimevisits_unique']['start'] = "<br />
<div class='table-responsive' id='alltimevisits_unique'>
<table class='table table-striped fborder' style='width: 100%;'>
<tr>
<th class='fcaption' style='width: 20%;'>".ADSTAT_L19."</th>
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L24."</th>
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$LOG_TEMPLATE['alltimevisits_unique']['item'] = "<tr>
<td class='forumheader3' style='width: 20%;'><img src='".e_PLUGIN_ABS."log/images/html.png' alt='' style='vertical-align: middle;' />
<a href='{ITEM_URL}'>{ITEM_KEY}</a></td>
<td class='forumheader3' style='width: 70%;'>{ITEM_BAR}</td>
<td class='forumheader3' style='width: 10%; text-align: center;'>{ITEM_PERC}%</td>
</tr>\n";
$LOG_TEMPLATE['alltimevisits_unique']['end'] = "
<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td>
<td class='forumheader' style='text-align: center;'>{TOTAL}</td>
<td class='forumheader'></td></tr>\n</table></div>";
$LOG_TEMPLATE['browsers']['start'] = "
<div class='table-responsive' id='browsers'>
<table class='table table-striped fborder' style='width: 100%;'>\n
<tr>
<th class='fcaption' colspan='4' style='text-align:center'>{START_CAPTION}</th>
</tr>\n
<tr>
<th class='fcaption' style='width: 20%;'>
<a title='{START_TITLE}' href='{START_URL}'>".ADSTAT_L26."</a>
</th>
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L21."</th>\n
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>\n";
$LOG_TEMPLATE['browsers']['item'] = "
<tr>
<td class='forumheader3' style='width: 20%;'>{ITEM_IMAGE}{ITEM_KEY}</td>
<td class='forumheader3' style='width: 70%;'>{ITEM_BAR}</td>
<td class='forumheader3' style='width: 10%; text-align: center;'>{ITEM_PERC}%</td>
</tr>\n";
$LOG_TEMPLATE['browsers']['end'] = "
<tr><td class='forumheader' colspan='2'>".ADSTAT_L21."</td><td class='forumheader' style='text-align: center;'>{TOTAL}</td>
<td class='forumheader'></td></tr>
</table><br /></div>";
$LOG_TEMPLATE['browsers']['nostatistic'] =
"<tr><td class='fcaption' colspan='4' style='text-align:center'>".ADSTAT_L25."</td></tr></table><br /></div>";
$LOG_TEMPLATE['oses']['start'] = "
<div class='table-responsive' id='oses'>
<table class='table table-striped fborder' style='width: 100%;'>\n
<tr>
<th class='fcaption' colspan='4' style='text-align:center'>{START_CAPTION}</th>
</tr>\n
<tr>
<th class='fcaption' style='width: 20%;'>
<a title='{START_TITLE}' href='{START_URL}'>".ADSTAT_L27."</a></th>\n
<th class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L21."</th>
<th class='fcaption' style='width: 10%; text-align: center;'>%</th>
</tr>";
$LOG_TEMPLATE['oses']['item'] = $LOG_TEMPLATE['browsers']['item'];
$LOG_TEMPLATE['oses']['end'] = "
<tr>
<td class='forumheader' colspan='2'>".ADSTAT_L21."</td>
<td class='forumheader' style='text-align: center;'>{TOTAL}</td>
<td class='forumheader'>&nbsp;</td>
</tr>
</table><br /></div>";
$LOG_TEMPLATE['oses']['nostatistic'] = $LOG_TEMPLATE['browsers']['nostatistic'];
$LOG_TEMPLATE['domains']['start'] = "
<div class='table-responsive' id='oses'>
<table class='table table-striped fborder' style='width: 100%;'>
<tr><td class='fcaption' colspan='4' style='text-align:center'>{START_CAPTION}</td></tr>
<tr><td class='fcaption' style='width: 20%;'>
<a title='{START_TITLE}' href='{START_URL}'>".ADSTAT_L28."</a></td>\n
<td class='fcaption' style='width: 70%;' colspan='2'>".ADSTAT_L21."</td>
<td class='fcaption' style='width: 10%; text-align: center;'>%</td>\n</tr>";
$LOG_TEMPLATE['domains']['item'] = "
<tr>
<td class='forumheader3' style='width: 20%;'>{ITEM_KEY}</td>
<td class='forumheader3' style='width: 70%;'>{ITEM_BAR}</td>
<td class='forumheader3' style='width: 10%; text-align: center;'>{ITEM_PERC}%</td>
</tr>";
$LOG_TEMPLATE['domains']['end'] = "
<tr>
<td class='forumheader' colspan='2'>".ADSTAT_L21."</td>
<td class='forumheader' style='text-align: center;'>{TOTAL}</td>
<td class='forumheader'>&nbsp;</td>
</tr>
</table><br /></div>";
$LOG_TEMPLATE['domains']['nostatistic'] = $LOG_TEMPLATE['browsers']['nostatistic'];
$LOG_TEMPLATE['screens']['start'] = "";
$LOG_TEMPLATE['screens']['item'] = "";
$LOG_TEMPLATE['screens']['end'] = "";
$LOG_TEMPLATE['refers']['start'] = "";
$LOG_TEMPLATE['refers']['item'] = "";
$LOG_TEMPLATE['refers']['end'] = "";
$LOG_TEMPLATE['queries']['start'] = "";
$LOG_TEMPLATE['queries']['item'] = "";
$LOG_TEMPLATE['queries']['end'] = "";
$LOG_TEMPLATE['visitors']['start'] = "";
$LOG_TEMPLATE['visitors']['item'] = "";
$LOG_TEMPLATE['visitors']['end'] = "";
$LOG_TEMPLATE['daily']['start'] = "";
$LOG_TEMPLATE['daily']['item'] = "";
$LOG_TEMPLATE['daily']['end'] = "";
$LOG_TEMPLATE['monthly']['start'] = "";
$LOG_TEMPLATE['monthly']['item'] = "";
$LOG_TEMPLATE['monthly']['end'] = "";