From 2a6d66b3cd8bf6c2e018134287b93420fa7b92c0 Mon Sep 17 00:00:00 2001 From: Ryan Wagoner Date: Sat, 10 Feb 2007 03:57:42 +0000 Subject: fixup imspector log colors to match pfSense --- packages/imspector/services_imspector_logs.php | 63 ++++++++++++++++---------- 1 file changed, 39 insertions(+), 24 deletions(-) (limited to 'packages/imspector') diff --git a/packages/imspector/services_imspector_logs.php b/packages/imspector/services_imspector_logs.php index 816c43dc..2c57ef18 100644 --- a/packages/imspector/services_imspector_logs.php +++ b/packages/imspector/services_imspector_logs.php @@ -35,15 +35,26 @@ require("guiconfig.inc"); /* variables */ $log_dir = '/var/log/imspector'; -$protocol_color = '#06264d'; -$local_color = '#1d398b'; -$remote_color = '#2149c1'; -$conversation_color = '#335ebe'; +$border_color = '#c0c0c0'; +$default_bgcolor = '#eeeeee'; -$local_user_color = 'blue'; -$local_user_bgcolor = '#e5e5f3'; -$remote_user_color = 'green'; -$remote_user_bgcolor = '#efeffa'; +$list_protocol_color = '#000000'; +$list_local_color = '#000000'; +$list_remote_color = '#000000'; +$list_convo_color = '#000000'; + +$list_protocol_bgcolor = '#cccccc'; +$list_local_bgcolor = '#dddddd'; +$list_remote_bgcolor = '#eeeeee'; +$list_end_bgcolor = '#bbbbbb'; + +$convo_title_color = 'black'; +$convo_local_color = 'blue'; +$convo_remote_color = 'red'; + +$convo_title_bgcolor = '#cccccc'; +$convo_local_bgcolor = '#dddddd'; +$convo_remote_bgcolor = '#eeeeee'; /* functions */ function convert_dir_list ($topdir) { @@ -95,11 +106,14 @@ if ($_POST['mode'] == "render") { $type = $matches[3]; $data = $matches[4]; - if($type == '1') $user = "<$remoteuser>"; - if($type == '2') $user = "<$localuser>"; - - if($type == '1') $bgcolor = $remote_user_bgcolor; - if($type == '2') $bgcolor = $local_user_bgcolor; + if($type == '1') { + $bgcolor = $convo_remote_bgcolor; + $user = "<$remoteuser>"; + } + if($type == '2') { + $bgcolor = $convo_local_bgcolor; + $user = "<$localuser>"; + } $time = strftime("%H:%M:%S", $timestamp); @@ -182,33 +196,33 @@ function updatepage(str) /* create titling information if needed */ if (!document.getElementById(a[1])) { document.getElementById('im_convos').innerHTML += - "
" + a[1] + "
" + - "
"; + "
" + a[1] + "
" + + "
"; } if (!document.getElementById(a[1] + "_" + a[2])) { var imageref = ""; if (a[0]) imageref = "" + a[1] + ""; document.getElementById(a[1]).innerHTML += - "
" + imageref + a[2] + "
" + - "
"; + "
" + imageref + a[2] + "
" + + "
"; } if (!document.getElementById(a[1] + "_" + a[2] + "_" + a[3])) { document.getElementById(a[1] + "_" + a[2]).innerHTML += - "
" + a[3] + "
" + + "
" + a[3] + "
" + "
"; } if (!document.getElementById(a[1] + "_" + a[2] + "_" + a[3] + "_" + a[4])) { document.getElementById(a[1] + "_" + a[2] + "_" + a[3]).innerHTML += "
»" + a[4] + "
"; } } /* determine the title of this conversation */ var details = parts[1].split(","); - var title = details[0] + " conversation between " + details[ 1 ] + - " and " + details[2] + ""; + var title = details[0] + " conversation between " + details[ 1 ] + + " and " + details[2] + ""; if (!details[1]) title = " "; if (!parts[2]) parts[2] = " "; @@ -249,11 +263,12 @@ print($zz);
 
- - -- cgit v1.2.3
+
-
+
+