From e1987b8961bbddac22bccdcdc7b4a76710a5cce5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 7 Feb 2007 00:00:03 +0000 Subject: [PATCH] Unbreak filter logs (dynamic ajax) --- usr/local/www/diag_logs_filter_dynamic.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php index a4477249a1..4343595356 100755 --- a/usr/local/www/diag_logs_filter_dynamic.php +++ b/usr/local/www/diag_logs_filter_dynamic.php @@ -103,7 +103,7 @@ function conv_clog_filter($logfile, $tail = 50) { else if(stristr(strtoupper($logent), "PFSYNC") == true) $flent['proto'] = "PFSYNC"; else - $do_not_display = true; + $flent['proto'] = "TCP"; $flent['time'] = $log_split[1]; $flent['act'] = $log_split[3]; @@ -308,10 +308,13 @@ function fetch_new_rules() { function fetch_new_rules_callback(callback_data) { if(isPaused) return; + var data_split; var new_data_to_add = Array(); var data = callback_data.content; + data_split = data.split("\n"); + for(var x=0; x'; line += ' ' + row_split[5] + ''; line += ''; - lastsawtime = row_split[6]; + lastsawtime = row_split[6]; new_data_to_add[new_data_to_add.length] = line; } update_div_rows(new_data_to_add); @@ -333,6 +336,7 @@ function fetch_new_rules_callback(callback_data) { function update_div_rows(data) { if(isPaused) return; + var isIE = navigator.appName.indexOf('Microsoft') != -1; var isSafari = navigator.userAgent.indexOf('Safari') != -1; var isOpera = navigator.userAgent.indexOf('Opera') != -1; @@ -342,7 +346,8 @@ function update_div_rows(data) { if (isIE) { showanim = 0; } - for(var x=1; x