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