aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. V. Serg <dvserg@pfsense.org>2008-01-15 08:03:05 +0000
committerD. V. Serg <dvserg@pfsense.org>2008-01-15 08:03:05 +0000
commita0a3fbe2cfa209bf2f66dcfa1e8fa300f4a2541f (patch)
tree977210c0a754cecc608b6089f111ddc6c321269f
parent72428dec2a942cc30ec77970370e39ed48049ca6 (diff)
downloadpfsense-packages-a0a3fbe2cfa209bf2f66dcfa1e8fa300f4a2541f.tar.gz
pfsense-packages-a0a3fbe2cfa209bf2f66dcfa1e8fa300f4a2541f.tar.bz2
pfsense-packages-a0a3fbe2cfa209bf2f66dcfa1e8fa300f4a2541f.zip
Log page updated
-rw-r--r--packages/squidGuard/squidguard.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/squidGuard/squidguard.inc b/packages/squidGuard/squidguard.inc
index e3918042..cb7d4938 100644
--- a/packages/squidGuard/squidguard.inc
+++ b/packages/squidGuard/squidguard.inc
@@ -696,7 +696,7 @@ function squidguard_before_form_log($pkg) {
$i=0;
$move_pos = 0;
$move_step = 50;
-return;
+
foreach($pkg['fields']['field'] as $field) {
if ($field['fieldname'] == 'logtype') {
$slog = '';
@@ -705,11 +705,15 @@ return;
$filename = '';
$fld = &$pkg['fields']['field'][$i];
if (empty($move_pos)) $move_pos = 0;
+
if ($mlog['logtype'] == 'block_log') {
+ $slog .= 'block_log report disabled';
+/*
$filename = SQUIDGUARD_LOGDIR . "/" . SQUIDGUARD_ACCESSBLOCK_FILE;
if (file_exists($filename)) {
$s = file_get_contents($filename);
$s = explode("\n", $s);
+# while (count($s) > 500) array_shift($s);
$move_pos = count ($s) - $move_step;
if ($move_pos < 0) $move_pos = 0;
$s = array_slice($s, $move_pos, $move_step);
@@ -740,7 +744,9 @@ return;
}
# $slog .= "</table>";
}
+*/
} else
+
if ($mlog['logtype'] == 'configurator_log') {
$filename = SQUIDGUARD_LOGDIR . SQUIDGUARDCONF_LOGFILE;
$slog .= "<b>$filename</b><br>";
@@ -750,7 +756,10 @@ return;
$slog = "<tr><td>$slog</td></tr>";
}
} else
+
if ($mlog['logtype'] == 'squidguard_log') {
+$slog .= 'squidguard_log report disabled';
+/*
$filename = SQUIDGUARD_LOGDIR . '/squidGuard.log';
$slog .= "<b>$filename</b><br>";
if (file_exists($filename)) {
@@ -761,7 +770,9 @@ return;
$slog = str_replace("\n", "<br>", $slog);
$slog = "<tr><td>$slog</td></tr>";
}
+*/
} else
+
if ($mlog['logtype'] == 'squid_config') {
$filename = SQUID_CONFIGFILE;
$slog .= "<b>$filename</b><br>";