diff options
author | jim-p <jimp@pfsense.org> | 2013-03-29 10:31:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-03-29 10:31:21 -0400 |
commit | 9bb239d4732cfd2b3ee6a5ade5839267563a6d0b (patch) | |
tree | 6dd45a9e69281aecf9038c8aa071babc97a7c587 /config/mailreport/status_mail_report_add_log.php | |
parent | e95e1e535d60d7cfbf87a8ee56bd3eb01a24656b (diff) | |
download | pfsense-packages-9bb239d4732cfd2b3ee6a5ade5839267563a6d0b.tar.gz pfsense-packages-9bb239d4732cfd2b3ee6a5ade5839267563a6d0b.tar.bz2 pfsense-packages-9bb239d4732cfd2b3ee6a5ade5839267563a6d0b.zip |
Some more refinements for the mail reports package.
Diffstat (limited to 'config/mailreport/status_mail_report_add_log.php')
-rw-r--r-- | config/mailreport/status_mail_report_add_log.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/config/mailreport/status_mail_report_add_log.php b/config/mailreport/status_mail_report_add_log.php index 5a2261be..75d092b5 100644 --- a/config/mailreport/status_mail_report_add_log.php +++ b/config/mailreport/status_mail_report_add_log.php @@ -72,9 +72,6 @@ if (isset($id) && !($a_logs[$id])) { return; } - - - $logpath = "/var/log/"; chdir($logpath); $logfiles = glob("*.log"); @@ -118,12 +115,11 @@ include("head.inc"); <select name="logfile" class="formselect" style="z-index: -10;"> <?php foreach ($logfiles as $logfile) { - $friendly = str_replace(".log", "", $logfile); echo "<option value=\"{$logfile}\""; if ($pconfig['logfile'] == $logfile) { echo " selected"; } - echo ">" . htmlspecialchars($friendly) . "</option>\n"; + echo ">" . htmlspecialchars(get_friendly_log_name($logfile)) . "</option>\n"; } ?> </select> |