diff --git a/agc_2-X/trunk/www/agc/phone_only.php b/agc_2-X/trunk/www/agc/phone_only.php index 2b18c57f..81991d7c 100644 --- a/agc_2-X/trunk/www/agc/phone_only.php +++ b/agc_2-X/trunk/www/agc/phone_only.php @@ -946,7 +946,7 @@ if ($webphone_location == 'bar') else { echo "
  - Web Phone:  
$webphone_content
\n"; + "._QXZ("Web Phone").":   $webphone_content\n"; } ?> diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index df86319c..cc1bb97e 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -482,13 +482,14 @@ # 191013-0934 - Fixes for PHP7 issues # 191017-2205 - Added code for filtered inbound max calls # 191030-1536 - Added code to gather VM Message Group entries +# 191104-1800 - Fixes for translations # -$version = '2.14-375'; -$build = '191030-1536'; +$version = '2.14-376'; +$build = '191104-1800'; $php_script = 'vdc_db_query.php'; $mel=1; # Mysql Error Log enabled = 1 -$mysql_log_count=817; +$mysql_log_count=824; $one_mysql_log=0; $DB=0; $VD_login=0; @@ -8815,7 +8816,7 @@ if ($ACTION == 'VDADcheckINCOMING') $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_campaign_script_two';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00819',$user,$server_ip,$session_name,$one_mysql_log);} $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); if ($VDIG_scrptcolor_ct > 0) { @@ -9151,7 +9152,7 @@ if ($ACTION == 'VDADcheckINCOMING') $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script_two';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00820',$user,$server_ip,$session_name,$one_mysql_log);} $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); if ($VDIG_scrptcolor_ct > 0) { @@ -9865,6 +9866,8 @@ if ($ACTION == 'VDADcheckINCOMINGother') $chat_group_str=""; $VLA_inOUT='NONE'; $queue_seconds=0; + if (!isset($inbound_email_groups)) {$inbound_email_groups=array();} + if (!isset($inbound_chat_groups)) {$inbound_chat_groups=array();} $email_group_ct=count($inbound_email_groups); # This should always be greater than zero for the script to reach this point, but just in case... for ($i=0; $i<$email_group_ct; $i++) @@ -10493,7 +10496,7 @@ if ($ACTION == 'VDADcheckINCOMINGother') $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script_two';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00821',$user,$server_ip,$session_name,$one_mysql_log);} $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); if ($VDIG_scrptcolor_ct > 0) { @@ -11593,7 +11596,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script_two';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00822',$user,$server_ip,$session_name,$one_mysql_log);} $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); if ($VDIG_scrptcolor_ct > 0) { @@ -15662,7 +15665,7 @@ if ($ACTION == 'VMMG_list_build') ### Grab Server GMT value from the database $stmt="SELECT audio_filename,audio_name,rank,time_start,time_end FROM leave_vm_message_groups_entries where leave_vm_message_group_id='$stage' order by rank limit 1000;"; $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00823',$user,$server_ip,$session_name,$one_mysql_log);} $vmmg_recs = mysqli_num_rows($rslt); $v=0; while ($vmmg_recs > $v) @@ -15727,7 +15730,7 @@ if ($ACTION == 'VMMG_selected') $stmtL="INSERT INTO vicidial_agent_vmm_overrides set call_date=NOW(),caller_code='$MDnextCID',lead_id='$lead_id',user='$user',vm_message='$stage';"; if ($DB) {echo "|$stmtL|\n";} $rslt=mysql_to_mysqli($stmtL, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00824',$user,$server_ip,$session_name,$one_mysql_log);} $VAVOaffected_rows = mysqli_affected_rows($link); echo "SUCCESS: $VAVOaffected_rows $MDnextCID $stage\n"; } @@ -16438,9 +16441,9 @@ if ($ACTION == 'CALLLOGview') echo " $ALLphone_code[$i] $phone_number_display \n"; echo " $Allfirst_name[$i] $Alllast_name[$i] \n"; echo " $ALLcampaign_id[$i] \n"; - echo " $ALLin_out[$i] \n"; - echo " $ALLalt_dial[$i] \n"; - echo " $ALLhangup_reason[$i] \n"; + echo " "._QXZ("$ALLin_out[$i]")." \n"; + echo " "._QXZ("$ALLalt_dial[$i]")." \n"; + echo " "._QXZ("$ALLhangup_reason[$i]")." \n"; echo " "._QXZ("INFO")." \n"; if ($manual_dial_filter > 0) {echo " "._QXZ("DIAL")." \n";} @@ -17990,9 +17993,9 @@ if ($ACTION == 'LEADINFOview') $NOTESout .= " $ALLstatus[$i]\n"; $NOTESout .= " $ALLphone_code[$i] $phone_number_display \n"; $NOTESout .= " $ALLcampaign_id[$i] \n"; - $NOTESout .= " $ALLin_out[$i] \n"; - $NOTESout .= " $ALLalt_dial[$i] \n"; - $NOTESout .= " $ALLhangup_reason[$i] \n"; + $NOTESout .= " "._QXZ("$ALLin_out[$i]")." \n"; + $NOTESout .= " "._QXZ("$ALLalt_dial[$i]")." \n"; + $NOTESout .= " "._QXZ("$ALLhangup_reason[$i]")." \n"; $NOTESout .= ""; $NOTESout .= ""; $NOTESout .= " $Allcall_notes[$i] "; diff --git a/agc_2-X/trunk/www/agc/vdc_script_display.php b/agc_2-X/trunk/www/agc/vdc_script_display.php index bfcb303a..e4129bf6 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_display.php +++ b/agc_2-X/trunk/www/agc/vdc_script_display.php @@ -907,9 +907,9 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text)) $NOTESout .= " $ALLstatus[$i]\n"; $NOTESout .= " $ALLphone_code[$i] $phone_number_display \n"; $NOTESout .= " $ALLcampaign_id[$i] \n"; - $NOTESout .= " $ALLin_out[$i] \n"; - $NOTESout .= " $ALLalt_dial[$i] \n"; - $NOTESout .= " $ALLhangup_reason[$i] \n"; + $NOTESout .= " "._QXZ("$ALLin_out[$i]")." \n"; + $NOTESout .= " "._QXZ("$ALLalt_dial[$i]")." \n"; + $NOTESout .= " "._QXZ("$ALLhangup_reason[$i]")." \n"; $NOTESout .= ""; $NOTESout .= ""; $NOTESout .= " $Allcall_notes[$i] "; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 6e22b3ea..65f6ac2b 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -621,12 +621,13 @@ # 190925-1346 - Changes for more SIP Event Action features # 191018-0904 - Added User Inbound Filtered features # 191101-1150 - Added VM Message Groups features, second script tab +# 191104-1759 - Fixes for translations # -$version = '2.14-590c'; -$build = '191101-1150'; +$version = '2.14-591c'; +$build = '191104-1759'; $mel=1; # Mysql Error Log enabled = 1 -$mysql_log_count=87; +$mysql_log_count=91; $one_mysql_log=0; $DB=0; @@ -894,7 +895,7 @@ if ($agent_screen_colors != 'default') { $stmt = "SELECT menu_background,frame_background,std_row1_background,std_row2_background,std_row3_background,std_row4_background,std_row5_background,alt_row1_background,alt_row2_background,alt_row3_background,web_logo FROM vicidial_screen_colors where colors_id='$agent_screen_colors';"; $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01088',$VD_login,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); if ($qm_conf_ct > 0) @@ -1171,7 +1172,7 @@ if ($LogiNAJAX > 0) // alert(logincampaign_query); // alert(xmlhttp.responseText); document.getElementById("LogiNCamPaigns").innerHTML = Nactiveext; - document.getElementById("LogiNReseT").innerHTML = ""; + document.getElementById("LogiNReseT").innerHTML = "\" onclick=\"login_allowable_campaigns()\" />"; document.getElementById("VD_campaign").focus(); } } @@ -2153,7 +2154,7 @@ else $leave_vm_message_group_exists=0; $stmt="SELECT count(*) from leave_vm_message_groups where leave_vm_message_group_id='$leave_vm_message_group_id' and active='Y';"; $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01089',$VD_login,$server_ip,$session_name,$one_mysql_log);} $vmmg_count = mysqli_num_rows($rslt); if ($vmmg_count > 0) { @@ -2164,7 +2165,7 @@ else { $stmt="SELECT count(*) from leave_vm_message_groups_entries where leave_vm_message_group_id='$leave_vm_message_group_id';"; $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01090',$VD_login,$server_ip,$session_name,$one_mysql_log);} $vmmge_count = mysqli_num_rows($rslt); if ($vmmge_count > 0) { @@ -2235,7 +2236,7 @@ else $stmt = "SELECT count(*) from vicidial_callbacks where recipient='USERONLY' and user='$VD_login' $campaignCBsql $campaignCBhoursSQL $campaignCBdisplaydaysSQL and status IN('LIVE');"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); - if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$user,$server_ip,$session_name,$one_mysql_log);} + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01091',$user,$server_ip,$session_name,$one_mysql_log);} $row=mysqli_fetch_row($rslt); $launch_scb_force_dial=$row[0]; } @@ -4056,7 +4057,7 @@ while ($CINC < 12) $CCAL_OUT .= ""; $CCAL_OUT .= ""; $CCAL_OUT .= "
"; - $CCAL_OUT .= $Cmonths[$CfirstdayARY['mon']]." $CfirstdayARY[year]"; + $CCAL_OUT .= _QXZ($Cmonths[$CfirstdayARY['mon']])." $CfirstdayARY[year]"; $CCAL_OUT .= "
"; $CCAL_OUT .= ""; $CCAL_OUT .= ""; @@ -4066,7 +4067,7 @@ while ($CINC < 12) $CDCLR="#ffffff"; $CCAL_OUT .= ""; $CCAL_OUT .= "
"; - $CCAL_OUT .= "$Cday"; + $CCAL_OUT .= _QXZ("$Cday", 3); $CCAL_OUT .= "
"; $CCAL_OUT .= ""; } @@ -20582,7 +20583,7 @@ if ($webphone_location == 'bar') else { echo "
  - Web Phone:  
$webphone_content
\n"; + "._QXZ("Web Phone").":  
$webphone_content\n"; } ?>