[185] | 1 | <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="post"> |
---|
[1] | 2 | <?php App::printHiddenSession(false); ?> |
---|
| 3 | |
---|
| 4 | <div id="commandbox"> |
---|
| 5 | <?php if (is_array($logs) && !empty($logs)) { ?> |
---|
| 6 | <table> |
---|
| 7 | <?php |
---|
| 8 | foreach ($logs as $l) { |
---|
| 9 | ?> |
---|
| 10 | <tr class="commandtext"> |
---|
| 11 | <td> |
---|
| 12 | <?php if ($l['filename'] == Prefs::getValue('log_file', 'logs_module')) { ?> |
---|
| 13 | <span class="commanditem"><strong><?php echo sprintf(_("%s"), $l['filename']); ?></strong></span> |
---|
| 14 | <?php } else { ?> |
---|
| 15 | <span class="commanditem"><a href="<?php echo App::oHREF('/admin/logs.php?log=' . $l['filename']); ?>"><strong><?php echo sprintf(_("%s"), $l['filename']); ?></strong></a></span> |
---|
| 16 | <?php } ?> |
---|
| 17 | </td> |
---|
| 18 | <td> |
---|
| 19 | <span class="commanditem"><em><?php echo sprintf(_("%01.1f KB, last modified %s"), ($l['filesize']/1024), date(App::getParam('date_format'), $l['modified'])); ?></em></span> |
---|
| 20 | </td> |
---|
| 21 | <td> |
---|
| 22 | <?php if (!preg_match($no_download_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo App::oHREF('/admin/logs.php?op=download&log=' . $l['filename']); ?>"><?php echo _("Download"); ?></a></span><?php } ?> |
---|
| 23 | <?php if (!preg_match($no_archive_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo App::oHREF('/admin/logs.php?op=archive&log=' . $l['filename']); ?>"><?php echo _("Archive"); ?></a></span><?php } ?> |
---|
| 24 | <?php if (!preg_match($no_clear_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo App::oHREF('/admin/logs.php?op=clear&log=' . $l['filename']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to clear the log file %s? This will empty this file of its contents. This action is not reversible."), $l['filename'])?>')"><?php echo _("Clear"); ?></a></span><?php } ?> |
---|
| 25 | <?php if (!preg_match($no_delete_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo App::oHREF('/admin/logs.php?op=delete&log=' . $l['filename']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the log file %s? This will remove this log file permanently. This action is not reversible."), $l['filename'])?>')"><?php echo _("Delete"); ?></a></span><?php } ?> |
---|
| 26 | </td> |
---|
| 27 | </tr><?php |
---|
| 28 | } |
---|
| 29 | ?> |
---|
| 30 | </table> |
---|
| 31 | <?php } ?> |
---|
[20] | 32 | <input type="text" class="small" size="20" name="search_query" value="<?php echo oTxt(getFormData('search_query')); ?>" title="<?php echo _("All lines in currently viewed log file are searched."); ?>" /> |
---|
[1] | 33 | <input type="checkbox" name="search_grep"<?php frmChecked(getFormData('search_grep')) ?> /><span class="commandtext"><?php echo _("Use Grep"); ?></span> |
---|
[28] | 34 | <input type="submit" name="list" value="<?php echo _("Search"); ?>" /> |
---|
[1] | 35 | </div> |
---|
| 36 | |
---|
| 37 | <?php include 'list_info.ihtml'; ?> |
---|
| 38 | |
---|
| 39 | <pre style="font: 9px monaco;"> |
---|
| 40 | <?php |
---|
| 41 | for ($i = $page->first_item; $i <= $page->last_item && $page->total_items; $i++) { |
---|
| 42 | echo $list[$i]; |
---|
| 43 | } |
---|
| 44 | ?> |
---|
| 45 | </pre> |
---|
| 46 | |
---|
| 47 | <?php if ($page->total_pages > 1) { ?> |
---|
| 48 | <div class="nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> |
---|
| 49 | <?php } ?> |
---|
| 50 | </form> |
---|