From 2b2bd92b01bc7e4dd49d7715085d26e8dd786a2d Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 2 Aug 2011 17:00:57 +0000 Subject: Give time to GUI to get correct fields --- config/snort/snort.inc | 3 ++- config/snort/snort_interfaces_edit.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 873c5f79..7408557b 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -317,10 +317,10 @@ function Running_Stop($snort_uuid, $if_real, $id) { /* Log Iface stop */ exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule STOP for {$snort_uuid}_{$if_real}...'"); + sleep(2); // Give time so GUI displays correctly } } - function Running_Start($snort_uuid, $if_real, $id) { global $config; @@ -340,6 +340,7 @@ function Running_Start($snort_uuid, $if_real, $id) { /* Log Iface stop */ exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule START for {$id}_{$snort_uuid}_{$if_real}...'"); + sleep(2); // Give time so GUI displays correctly } /* get the real iface name of wan */ diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php index 746145e2..e2b5327a 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -312,7 +312,7 @@ if (isset($_GET['dup'])) { Running_Stop($snort_uuid, $if_real, $id); - + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); -- cgit v1.2.3