[geeklog-hg] geeklog: made the Log Viewer default to error.log
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon May 20 12:38:04 EDT 2013
changeset 9080:9172587db5dd
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/9172587db5dd
user: Dirk Haun <dirk at haun-online.de>
date: Mon May 20 17:22:30 2013 +0200
description:
made the Log Viewer default to error.log
diffstat:
public_html/admin/logviewer.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r b1384cc3af52 -r 9172587db5dd public_html/admin/logviewer.php
--- a/public_html/admin/logviewer.php Mon May 20 17:21:51 2013 +0200
+++ b/public_html/admin/logviewer.php Mon May 20 17:22:30 2013 +0200
@@ -47,15 +47,18 @@
exit;
}
-if ( isset($_GET['log']) ) {
+if (isset($_GET['log'])) {
$log = COM_applyFilter($_GET['log']);
-} else if ( isset( $_POST['log']) ) {
+} else if (isset($_POST['log'])) {
$log = COM_applyFilter($_POST['log']);
} else {
$log = '';
}
$log = preg_replace('/[^a-z0-9\.\-_]/', '', $log);
+if (empty($log)) {
+ $log = 'error.log';
+}
$display = '';
@@ -82,9 +85,6 @@
closedir($dir);
}
$display .= '<select name="log">';
-if (empty($log)) {
- $log = $files[0];
-}
for ($i = 0; $i < count($files); $i++) {
$display .= '<option value="' . $files[$i] . '"';
More information about the geeklog-cvs
mailing list