aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_blocked.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2011-05-06 13:08:28 -0700
committerrobiscool <robrob2626@yahoo.com>2011-05-06 13:08:28 -0700
commitc0076cc80d8c3689ffacff0a61f6d5a76c30b70c (patch)
tree56617399385ca9868de39e822f289291390173f6 /config/snort-dev/snort_blocked.php
parent007a2e17c59e36d5f59457d1df50f722d8fb9d64 (diff)
downloadpfsense-packages-c0076cc80d8c3689ffacff0a61f6d5a76c30b70c.tar.gz
pfsense-packages-c0076cc80d8c3689ffacff0a61f6d5a76c30b70c.tar.bz2
pfsense-packages-c0076cc80d8c3689ffacff0a61f6d5a76c30b70c.zip
snort-dev, add neww files
Diffstat (limited to 'config/snort-dev/snort_blocked.php')
-rw-r--r--config/snort-dev/snort_blocked.php31
1 files changed, 5 insertions, 26 deletions
diff --git a/config/snort-dev/snort_blocked.php b/config/snort-dev/snort_blocked.php
index 06d0c5f2..eafadb71 100644
--- a/config/snort-dev/snort_blocked.php
+++ b/config/snort-dev/snort_blocked.php
@@ -35,7 +35,7 @@ require_once("/usr/local/pkg/snort/snort_new.inc");
require_once("/usr/local/pkg/snort/snort_gui.inc");
-$generalSettings = snortSql_fetchAllSettings('SnortSettings', 'id', '1');
+$generalSettings = snortSql_fetchAllSettings('snortDB', 'SnortSettings', 'id', '1');
$blertnumber = $generalSettings['blertnumber'];
@@ -49,23 +49,6 @@ $brefresh_on = ($generalSettings['brefresh'] == 'on' ? 'checked' : '');
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
-<script type="text/javascript">
-
- // set the page resets watchThis
- function resetSnortDefaults(data) {
-
- jQuery("#blertnumber").val(data.blertnumber);
-
- if (data.brefresh == 'on') {
- jQuery("#brefresh").attr("checked", "checked");
- }else{
- jQuery("#brefresh").removeAttr('checked');
- }
-
- }
-
-</script>
-
<div id="loadingWaiting">
<p class="loadingWaitingMessage"><img src="./images/loading.gif" /> <br>Please Wait...</p>
</div>
@@ -81,10 +64,6 @@ $brefresh_on = ($generalSettings['brefresh'] == 'on' ? 'checked' : '');
<div class="body2"><!-- hack to fix the hardcoed fbegin link in header -->
<div id="header-left2"><a href="../index.php" id="status-link2"><img src="./images/transparent.gif" border="0"></img></a></div>
-<? //if($pfsense_stable == 'yes'){echo '<p class="pgtitle">' . $pgtitle . '</p>';}
-echo '<p class="pgtitle">' . $pgtitle . '</p>';
-?>
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
@@ -121,14 +100,14 @@ echo '<p class="pgtitle">' . $pgtitle . '</p>';
<tr>
<td class="vncell2" valign="center" width="22%"><span class="vexpl">Save or Remove Hosts</span></td>
<td width="40%" class="vtable">
- <form id="iform" action="./snort_json_post.php" method="post">
+ <form id="iform" >
<input name="snortblockedlogsdownload" type="submit" class="formbtn" value="Download" >
<input type="hidden" name="snortblockedlogsdownload" value="1" />
<span class="vexpl">Save All Blocked Hosts</span>
</form>
</td>
<td class="vtable">
- <form id="iform2" action="./snort_json_post.php" method="post">
+ <form id="iform2" >
<input name="remove" type="submit" class="formbtn" value="Clear" onclick="return confirm('Do you really want to remove all blocked hosts ? All Blocked Hosts will be removed !')" >
<input type="hidden" name="snortflushpftable" value="1" />
<span class="vexpl red"><strong>Warning:</strong></span><span class="vexpl"> all hosts will be removed.</span>
@@ -139,7 +118,7 @@ echo '<p class="pgtitle">' . $pgtitle . '</p>';
<tr>
<td class="vncell2" valign="center"><span class="vexpl">Auto Refresh and Log View</span></td>
<td class="vtable">
- <form id="iform3" action="./snort_json_post.php" method="post">
+ <form id="iform3" >
<input name="save" type="submit" class="formbtn" value="Save">
<input id="cancel" type="button" class="formbtn" value="Cancel">
<span class="vexpl">Auto Refresh</span>
@@ -147,7 +126,7 @@ echo '<p class="pgtitle">' . $pgtitle . '</p>';
<span class="vexpl"><strong>Default ON</strong>.</span>
</td>
<td class="vtable">
- <input name="blertnumber" type="text" class="formfld" id="blertnumber" size="5" value="<?=$blertnumber;?>" >
+ <input name="blertnumber" type="text" class="formfld2" id="blertnumber" size="5" value="<?=$blertnumber;?>" >
<span class="vexpl">Limit entries to view. <strong>Default 500</strong>.</span>
<input type="hidden" name="snortSaveSettings" value="1" /> <!-- what to do, save -->