27 require_once(
"../class/config.php");
28 include_once(
"head.php");
30 $list=$log->list_logs_directory_all($log->get_logs_directory());
32 <h3><?php
__(
"Logs Listing"); ?></h3>
36 echo
$msg->msg_html_all();
39 $msg->raise(
"INFO",
"logs", _(
"You have no web logs to list at the moment."));
40 echo
$msg->msg_html_all();
41 include_once(
'foot.php');
46 <?php
__(
"Here are web logs of your account.<br/>You can download them to do specific extract and statistics.");?>
50 <tr><th><?php
__(
"Name");?></th><th align=center><?php
__(
"Creation Date"); ?></th><th><?php
__(
"Size"); ?></th><th><?php
__(
"Download link");?></th></tr>
56 foreach(
$val as $k => $v){
59 <td><?php echo $v[
'name']; ?></td>
60 <td><?php echo $v[
'creation_date']; ?></td>
62 <td><?php echo
"<a href=\"logs_download.php?file=".$v[
'downlink'].
"\">"._(
"Download").
"</a>";
63 if ((time()-14400)<$v[
'mtime']) {
64 echo
" <a href=\"logs_tail.php?file=".$v[
'downlink'].
"\">"._(
"Follow").
"</a>";
format_size($size, $html=0)
$list
Show a list of all found log files for an account and allow to see / tail / download them.
if(empty($_POST['key'])||empty($_POST['val'])) $key