1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Log Plugin - Remove Page Entries : UI cleanup.

This commit is contained in:
Cameron 2016-01-21 14:50:43 -08:00
parent 23ea03f73d
commit d98d46f337
2 changed files with 16 additions and 8 deletions

View File

@ -645,9 +645,9 @@ e107::css('inline', 'td.last.options { padding-right:20px } ');
function rempagePage()
{
$sql = e107::getDb();
$ns = e107::getRender();
$frm = e107::getForm();
$pageInfo = array();
$tp = e107::getParser();
$logfile = e_LOG."logp_".date("z.Y", time()).".php";
// $logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
@ -660,6 +660,8 @@ e107::css('inline', 'td.last.options { padding-right:20px } ');
$row = $sql ->fetch();
$pageTotal = unserialize($row['log_data']);
foreach($pageInfo as $url => $tmpcon)
{
$pageTotal[$url]['url'] = $tmpcon['url'];
@ -674,19 +676,25 @@ e107::css('inline', 'td.last.options { padding-right:20px } ');
<table class='table adminlist'>
<tr>
<td style='width:30%' class='forumheader'>".ADSTAT_LAN_29."</td>
<td style='width:50%' class='forumheader'>URL</td>
<td style='width:30%; text-align: center;'>".ADSTAT_LAN_30." ...</td>
<th style='width:100px; text-align: center;'>".ADSTAT_LAN_30." ...</th>
<th style='width:100px' class='forumheader'>".ADSTAT_LAN_86."</th>
<th style='width:30%' class='forumheader'>".ADSTAT_LAN_29."</th>
<th style='width:auto' class='forumheader'>URL</th>
</tr>
";
foreach($pageTotal as $key => $page)
{
list($name,$lang) = explode("|",$key);
$text .= "
<tr>
<td style='width:30%'>{$key}</td>
<td style='width:50%'>".$page['url']."</td>
<td style='width:30%; text-align: center;'><input type='checkbox' name='remcb[]' value='{$key}' /></td>
<td style='width:100px; text-align: center;'><input type='checkbox' name='remcb[]' value='{$key}' /></td>
<td style='width:100px'>".$page['ttlv']."</td>
<td style='width:30%'>{$name}</td>
<td style='width:auto'>".$tp->text_truncate($page['url'],100)."</td>
</tr>
";
}

View File

@ -95,7 +95,7 @@ define ('ADSTAT_LAN_82', 'Following values now set:');
define ('ADSTAT_LAN_83', 'Following log ID entries removed:');
define ('ADSTAT_LAN_84', 'This proceedure will overwrite the log statistic summaries in your database. (raw log files are left unchanged) Once replaced, the data cannot be recovered. Please backup or export your database first');
define ('ADSTAT_LAN_85', '[x] log files have been found. Click the button below to process these files.');
define ('ADSTAT_LAN_86', 'Total Hits');
?>