aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_alerts.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-09-29 22:53:27 +0000
committerErmal <eri@pfsense.org>2011-09-29 22:53:27 +0000
commit4763db0d8ca282fc0e3d0165ba9804fae2e7aefe (patch)
treeaa6618d5a5d6c95c80f66771e28bafe319e5a72d /config/snort/snort_alerts.php
parent18c9901c7c94a52b417c66fde315aa13aa0e7abc (diff)
downloadpfsense-packages-4763db0d8ca282fc0e3d0165ba9804fae2e7aefe.tar.gz
pfsense-packages-4763db0d8ca282fc0e3d0165ba9804fae2e7aefe.tar.bz2
pfsense-packages-4763db0d8ca282fc0e3d0165ba9804fae2e7aefe.zip
Correct clearing the alerts.
Diffstat (limited to 'config/snort/snort_alerts.php')
-rw-r--r--config/snort/snort_alerts.php29
1 files changed, 9 insertions, 20 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index 7bd47934..49bb9bff 100644
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -85,7 +85,7 @@ if ($_POST['save'])
}
-if ($_POST['delete'])
+if ($_GET['clear'])
{
if(file_exists('/var/log/snort/alert'))
{
@@ -96,10 +96,9 @@ if ($_POST['delete'])
mwexec('/bin/chmod 660 /var/log/snort/*', true);
mwexec('/usr/bin/killall -HUP snort', true);
conf_mount_ro();
-
- header("Location: /snort/snort_alerts.php");
- exit;
}
+ header("Location: /snort/snort_alerts.php");
+ exit;
}
if ($_POST['download'])
@@ -304,9 +303,9 @@ if ($pconfig['arefresh'] == 'on')
<td width="78%" class="vtable">
<form action="/snort/snort_alerts.php" method="post"><input
name="download" type="submit" class="formbtn" value="Download"> All
- log files will be saved. <input name="delete" type="submit"
+ log files will be saved. <a href="/snort/snort_alerts.php?action=clear"><input name="delete" type="button"
class="formbtn" value="Clear"
- onclick="return confirm('Do you really want to remove all your logs ? All snort rule interfces may have to be restarted.')">
+ onclick="return confirm('Do you really want to remove all your logs ? All snort rule interfces may have to be restarted.')"></a>
<span class="red"><strong>Warning:</strong></span> all log files
will be deleted.</form>
</td>
@@ -561,21 +560,11 @@ if ($pconfig['arefresh'] == 'on')
</div>
- <?php
-
- include("fend.inc");
-
- echo $snort_custom_rnd_box;
-
- ?>
-
+<?php
+include("fend.inc");
-<script type="text/javascript">
- var myTable = {};
- window.addEvent('domready', function(){
- myTable = new sortableTable('myTable', {overCls: 'over'});
- });
- </script>
+echo $snort_custom_rnd_box;
+?>
</body>
</html>