From e0660de17552d5a859b6215d1b8fa3132119bc8c Mon Sep 17 00:00:00 2001
From: mcrane
Date: Sat, 1 Aug 2009 04:29:33 -0600
Subject: DenyHosts syntax improvements, editarea loaded if not available
---
config/denyhosts/denyhosts_log.tmp | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
(limited to 'config/denyhosts/denyhosts_log.tmp')
diff --git a/config/denyhosts/denyhosts_log.tmp b/config/denyhosts/denyhosts_log.tmp
index 69d16cce..a56e4eab 100644
--- a/config/denyhosts/denyhosts_log.tmp
+++ b/config/denyhosts/denyhosts_log.tmp
@@ -51,9 +51,18 @@ if ($_POST['a'] == "save") {
}
*/
+if(!is_file("/var/log/denyhosts")) {
+ exec ('touch /var/log/denyhosts');
+}
+
$filename = '/var/log/denyhosts';
$fd = fopen($filename, "r");
-$content = fread($fd, filesize($filename));
+if (filesize($filename) > 0) {
+ $content = fread($fd, filesize($filename));
+}
+else {
+ $content = '';
+}
fclose($fd);
include("head.inc");
@@ -83,7 +92,7 @@ function sf() { document.forms[0].savetopath.focus(); }
$v_project_label: Variables
\n";
+echo "
@@ -107,36 +116,38 @@ echo "
$v_project_label: Variables
\n";
+
+ Description
-
|
+
|
+ -->
-
+
--
cgit v1.2.3