aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_interfaces.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2012-07-04 13:47:24 -0700
committerrobiscool <robrob2626@yahoo.com>2012-07-04 13:47:24 -0700
commit7f7f469b9db5290a7357aebcbcaf76a8b8615119 (patch)
tree22f1e0c0c4ff0024ebe2adcfb436c9b14f012f56 /config/snort-dev/snort_interfaces.php
parent0ab68c4441054a94cc0e53bc7cdc57eb6dfee7b4 (diff)
downloadpfsense-packages-7f7f469b9db5290a7357aebcbcaf76a8b8615119.tar.gz
pfsense-packages-7f7f469b9db5290a7357aebcbcaf76a8b8615119.tar.bz2
pfsense-packages-7f7f469b9db5290a7357aebcbcaf76a8b8615119.zip
snort-dev, redo all code related to snort startup/stop, add snort-dev/snort_startstop.php
Diffstat (limited to 'config/snort-dev/snort_interfaces.php')
-rw-r--r--config/snort-dev/snort_interfaces.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/snort-dev/snort_interfaces.php b/config/snort-dev/snort_interfaces.php
index c5fc59c1..5ee7a176 100644
--- a/config/snort-dev/snort_interfaces.php
+++ b/config/snort-dev/snort_interfaces.php
@@ -30,8 +30,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-$nocsrf = true;
-require_once("/usr/local/www/guiconfig.inc");
+//$nocsrf = true;
+require_once("guiconfig.inc");
require_once("/usr/local/pkg/snort/snort_gui.inc");
require_once("/usr/local/pkg/snort/snort.inc");
@@ -110,9 +110,9 @@ if ($_GET['act'] == 'toggle' && is_numeric($id)) {
sync_snort_package_config();
- $tester2 = Running_Ck($snort_uuid, $if_real, $id);
+ $snort_pgrep_chk_toggle = snortRunningChk('snort', $snort_uuid, $if_real);
- if ($tester2 == 'yes') {
+ if (!empty($snort_pgrep_chk_toggle)) {
Running_Stop($snort_uuid, $if_real, $id);
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
@@ -231,9 +231,9 @@ enable JavaScript to view this content
$if_real = snort_get_real_interface($natent['interface']);
$snort_uuid = $natent['uuid'];
- $tester2 = Running_Ck($snort_uuid, $if_real, $id);
+ $snort_pgrep_chk = snortRunningChk('snort', $snort_uuid, $if_real);
- if ($tester2 == 'no') {
+ if (empty($snort_pgrep_chk)) {
$iconfn = 'pass';
$class_color_up = 'listbg';
}else{
@@ -292,9 +292,9 @@ enable JavaScript to view this content
?> <?=strtoupper($check_blockoffenders);?></td>
<?php
- $color2_upb = Running_Ck_b($snort_uuid, $if_real, $id);
+ $snort_pgrep_chkb = snortRunningChk('barnyard2', $snort_uuid, $if_real);
- if ($color2_upb == 'yes') {
+ if (!empty($snort_pgrep_chkb)) {
$class_color_upb = 'listbg2';
}else{
$class_color_upb = 'listbg';