diff options
author | Ermal <eri@pfsense.org> | 2011-08-02 15:59:36 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-02 16:00:57 +0000 |
commit | 165f7370b89857b4db89eb2d873fa120791bd8cf (patch) | |
tree | 863f612d48b3725bab8160f70db625b1c1dc244b /config/snort/snort_interfaces_suppress_edit.php | |
parent | a17dd016725b63dad1cd1032ed8afa3c15540fff (diff) | |
download | pfsense-packages-165f7370b89857b4db89eb2d873fa120791bd8cf.tar.gz pfsense-packages-165f7370b89857b4db89eb2d873fa120791bd8cf.tar.bz2 pfsense-packages-165f7370b89857b4db89eb2d873fa120791bd8cf.zip |
Polishing of the snort pacakge, part 2:
* Get rid of snort_head.inc
* No more apply settings button since it does not make sense
* Other cleanups in many parts of the code
Tested only on 2.0
Diffstat (limited to 'config/snort/snort_interfaces_suppress_edit.php')
-rw-r--r-- | config/snort/snort_interfaces_suppress_edit.php | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/config/snort/snort_interfaces_suppress_edit.php b/config/snort/snort_interfaces_suppress_edit.php index eb406ac5..bf916500 100644 --- a/config/snort/snort_interfaces_suppress_edit.php +++ b/config/snort/snort_interfaces_suppress_edit.php @@ -90,16 +90,6 @@ if (isset($id) && $a_suppress[$id]) { $pconfig['suppresspassthru'] = base64_decode($a_suppress[$id]['suppresspassthru']); } -/* this will exec when alert says apply */ -if ($_POST['apply']) { - - if (file_exists("$d_snort_suppress_dirty_path")) { - sync_snort_package_config(); - sync_snort_package(); - unlink("$d_snort_suppress_dirty_path"); - } -} - if ($_POST['submit']) { unset($input_errors); @@ -143,10 +133,10 @@ if ($_POST['submit']) { else $a_suppress[] = $s_list; - touch($d_snort_suppress_dirty_path); - write_config(); + sync_snort_package_config(); + header("Location: /snort/snort_interfaces_suppress_edit.php?id=$id"); exit; } @@ -154,32 +144,17 @@ if ($_POST['submit']) { } $pgtitle = "Services: Snort: Suppression: Edit $suppress_uuid"; -include("/usr/local/pkg/snort/snort_head.inc"); +include_once("head.inc"); ?> -<body - link="#0000CC" vlink="#0000CC" alink="#0000CC" - onload="<?= $jsevents["body"]["onload"] ?>"> - -<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> +<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); echo $snort_general_css; ?> -<!-- 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> - <div class="body2"><?if($pfsense_stable == 'yes'){echo '<p class="pgtitle">' . $pgtitle . '</p>';}?> <?php if ($input_errors) print_input_errors($input_errors); ?> |