aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_suppress_edit.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-08-16 16:53:15 -0700
committerrobiscool <robrob2626@yahoo.com>2010-08-16 16:53:15 -0700
commit140efc422969d411e620174501aa292ae1345534 (patch)
treeac61e242634c7dd0dbc3f5ccb9cc46d6e7b498cc /config/snort/snort_interfaces_suppress_edit.php
parentcdb07b3d4b0002b9305e6606de64527cac981f72 (diff)
downloadpfsense-packages-140efc422969d411e620174501aa292ae1345534.tar.gz
pfsense-packages-140efc422969d411e620174501aa292ae1345534.tar.bz2
pfsense-packages-140efc422969d411e620174501aa292ae1345534.zip
snort, major changes, fix pid bug, add jquery lightbox, update gui
Diffstat (limited to 'config/snort/snort_interfaces_suppress_edit.php')
-rw-r--r--config/snort/snort_interfaces_suppress_edit.php72
1 files changed, 44 insertions, 28 deletions
diff --git a/config/snort/snort_interfaces_suppress_edit.php b/config/snort/snort_interfaces_suppress_edit.php
index 13c43b4e..f1339ffe 100644
--- a/config/snort/snort_interfaces_suppress_edit.php
+++ b/config/snort/snort_interfaces_suppress_edit.php
@@ -36,8 +36,8 @@
*/
require_once("guiconfig.inc");
-require_once("/usr/local/pkg/snort/snort.inc");
require_once("/usr/local/pkg/snort/snort_gui.inc");
+require_once("/usr/local/pkg/snort/snort.inc");
if (!is_array($config['installedpackages']['snortglobal']['suppress']['item']))
$config['installedpackages']['snortglobal']['suppress']['item'] = array();
@@ -61,9 +61,7 @@ while ($suppress_uuid > 65535 || $suppress_uuid == 0) {
if ($config['installedpackages']['snortglobal']['suppress']['item'][$id]['uuid'] != '') {
$suppress_uuid = $config['installedpackages']['snortglobal']['suppress']['item'][$id]['uuid'];
-}
-
-$pgtitle = "Services: Snort: Suppression: Edit $suppress_uuid";
+}
$d_snort_suppress_dirty_path = '/var/run/snort_suppress.dirty';
@@ -164,23 +162,30 @@ if ($_POST['submit']) {
}
-include("head.inc");
+$pgtitle = "Services: Snort: Suppression: Edit $suppress_uuid";
+include("/usr/local/pkg/snort/snort_head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC" onload="<?= $jsevents["body"]["onload"] ?>">
-<style type="text/css">
-.formpre {
-font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
-font-size: 1.1em;
-}
-</style>
-
-<?php
- include("./snort_fbegin.inc");
+ <script>
+ jQuery(document).ready(function(){
+
+ //Examples of how to assign the ColorBox event to elements
+ jQuery(".example8").colorbox({width:"820px", height:"700px", iframe:true, overlayClose:false});
+
+ });
+ </script>
+
+<?php
+include("fbegin.inc");
+echo $snort_general_css;
?>
-<p class="pgtitle"><?=$pgtitle?></p>
+
+<div class="body2">
+
+<?if($pfsense_stable == 'yes'){echo '<p class="pgtitle">' . $pgtitle . '</p>';}?>
<?php if ($input_errors) print_input_errors($input_errors); ?>
<div id="inputerrors"></div>
@@ -213,19 +218,26 @@ font-size: 1.1em;
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr><td class="tabnavtbl">
-<?php
- $tab_array = array();
- $tab_array[] = array("Snort Interfaces", false, "/snort/snort_interfaces.php");
- $tab_array[] = array("Global Settings", false, "/snort/snort_interfaces_global.php");
- $tab_array[] = array("Rule Updates", false, "/snort/snort_download_rules.php");
- $tab_array[] = array("Alerts", false, "/snort/snort_alerts.php");
- $tab_array[] = array("Blocked", false, "/snort/snort_blocked.php");
- $tab_array[] = array("Whitelists", false, "/snort/snort_interfaces_whitelist.php");
- $tab_array[] = array("Suppress", true, "/snort/snort_interfaces_suppress.php");
- $tab_array[] = array("Help", false, "/snort/snort_help_info.php");
- display_top_tabs($tab_array);
-?> </td></tr>
+ <tr>
+ <td class="tabnavtbl">
+
+<div class="snorttabs" style="margin:1px 0px; width:775px;">
+<!-- Tabbed bar code-->
+<ul class="snorttabs">
+ <li><a href="/snort/snort_interfaces.php"><span>Snort Interfaces</span></a></li>
+ <li><a href="/snort/snort_interfaces_global.php"><span>Global Settings</span></a></li>
+ <li><a href="/snort/snort_download_updates.php"><span>Updates</span></a></li>
+ <li><a href="/snort/snort_alerts.php"><span>Alerts</span></a></li>
+ <li><a href="/snort/snort_blocked.php"><span>Blocked</span></a></li>
+ <li><a href="/snort/snort_interfaces_whitelist.php"><span>Whitelists</span></a></li>
+ <li class="snorttabs_active"><a href="/snort/snort_interfaces_suppress.php"><span>Suppress</span></a></li>
+ <li><a class="example8" href="/snort/help_and_info.php"><span>Help</span></a></li>
+ </ul>
+</div>
+
+</td>
+</tr>
+
<tr>
<td class="tabcont">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
@@ -307,6 +319,10 @@ font-size: 1.1em;
</tr>
</table>
</form>
+
+</div>
+
<?php include("fend.inc"); ?>
+
</body>
</html> \ No newline at end of file