diff --git a/www/agc/dbconnect.php b/www/agc/dbconnect.php index 91e572a3..64e3607d 100644 --- a/www/agc/dbconnect.php +++ b/www/agc/dbconnect.php @@ -45,5 +45,7 @@ $ext_context = 'demo'; $recording_exten = '8309'; $WeBRooTWritablE = '1'; $non_latin = '0'; # set to 1 for UTF rules +$flag_channels=0; +$flag_string = 'VICIast20'; ?> diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index ccd81ed1..8558b0d1 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -207,6 +207,11 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $VD_campaign = strtoupper($VD_campaign); $VD_campaign = eregi_replace(" ",'',$VD_campaign); } + if (!isset($flag_channels)) + { + $flag_channels=0; + $flag_string=''; + } ### security strip all non-alphanumeric characters out of the variables ### $DB=ereg_replace("[^0-9a-z]","",$DB); @@ -1823,6 +1828,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var enable_sipsak_messages = ''; var allow_sipsak_messages = ''; var HidEMonitoRSessionS = ''; + var flag_channels = ''; + var flag_string = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -2342,6 +2349,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} {var row_color = '#CCCCFF';} var conv_ct = (loop_ct + conv_start); var channelfieldA = conf_chan_array[conv_ct]; + var regXFcred = new RegExp(flag_string,"g"); + if ( (channelfieldA.match(regXFcred)) && (flag_channels>0) ) + { + var chan_name_color = 'log_text_red'; + } + else + { + var chan_name_color = 'log_text'; + } if ( (HidEMonitoRSessionS==1) && (channelfieldA.match(/68600/)) ) { var hide_channel=1; @@ -2350,11 +2366,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if (volumecontrol_active!=1) { - live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP"; + live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP"; } else { - live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP           "; + live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP           "; } } // var debugspan = document.getElementById("debugbottomspan").innerHTML; @@ -6304,14 +6320,15 @@ else .body_small {font-size: 11px; font-family: sans-serif;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} + .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} .log_title {font-size: 12px; font-family: monospace; font-weight: bold;} .sd_text {font-size: 16px; font-family: sans-serif; font-weight: bold;} .sh_text {font-size: 14px; font-family: sans-serif; font-weight: bold;} .sb_text {font-size: 12px; font-family: sans-serif;} .sk_text {font-size: 11px; font-family: sans-serif;} .skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;} - .ON_conf {font-size: 11px; font-family: monospace; color: black ; background: #FFFF99} - .OFF_conf {font-size: 11px; font-family: monospace; color: black ; background: #FFCC77} + .ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99} + .OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77} .cust_form {font-family: sans-serif; font-size: 10px; overflow: auto} -->