From a5ae8ebed0d63f93bfb426ff11715c78846e6616 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 5 Sep 2011 20:29:20 +0000 Subject: Sleep 4 seconds when toggle the status of the snort (start/stop) so the GUI reports correctly --- config/snort/snort_interfaces.php | 1 + 1 file changed, 1 insertion(+) (limited to 'config/snort') diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php index 1d91eda8..39f8eddc 100644 --- a/config/snort/snort_interfaces.php +++ b/config/snort/snort_interfaces.php @@ -168,6 +168,7 @@ if ($_GET['act'] == 'toggle' && is_numeric($id)) { header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); } + sleep(4); // So the GUI reports correctly header("Location: /snort/snort_interfaces.php"); exit; } -- cgit v1.2.3