aboutsummaryrefslogtreecommitdiffstats
path: root/config/mailreport/status_mail_report_add_log.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-03-29 10:31:21 -0400
committerjim-p <jimp@pfsense.org>2013-03-29 10:31:21 -0400
commit9bb239d4732cfd2b3ee6a5ade5839267563a6d0b (patch)
tree6dd45a9e69281aecf9038c8aa071babc97a7c587 /config/mailreport/status_mail_report_add_log.php
parente95e1e535d60d7cfbf87a8ee56bd3eb01a24656b (diff)
downloadpfsense-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.php6
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>