From c638f7aa86451d96ee8a9f4e556afade2b150023 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 12 Aug 2014 00:35:04 +0000 Subject: [PATCH] Changed agent code to use new QXZ function in functions.php. This will facilitate easier other language builds and easier dynamic text and image replacement. git-svn-id: svn://192.168.202.10@2161 3d104415-ff17-0410-8863-d5cf3c621b8a --- docs/ALTERNATE_NUMBER_DIALING.txt | 4 +- www/agc/active_list_refresh.php | 23 +- www/agc/api.php | 659 +++++------ www/agc/astguiclient.php | 233 ++-- www/agc/call_log_display.php | 15 +- www/agc/conf_exten_check.php | 21 +- www/agc/deactivate_lead.php | 15 +- www/agc/dispo_move_list.php | 17 +- www/agc/functions.php | 84 +- www/agc/inbound_popup.php | 29 +- www/agc/launch.php | 9 +- www/agc/live_exten_check.php | 55 +- www/agc/manager_send.php | 279 ++--- www/agc/park_calls_display.php | 15 +- www/agc/phone_only.php | 87 +- www/agc/timeclock.php | 89 +- www/agc/vdc_db_query.php | 425 +++---- www/agc/vdc_email_display.php | 31 +- www/agc/vdc_form_display.php | 19 +- www/agc/vdc_script_display.php | 35 +- www/agc/vdc_script_dispo_example.php | 77 +- www/agc/vdc_script_notes.php | 59 +- www/agc/vicidial.php | 1527 +++++++++++++------------- www/agc/vicidial_redirect.php | 8 +- www/agc/voicemail_check.php | 15 +- 25 files changed, 1934 insertions(+), 1896 deletions(-) diff --git a/docs/ALTERNATE_NUMBER_DIALING.txt b/docs/ALTERNATE_NUMBER_DIALING.txt index 88eb06b8..ac8a8e01 100644 --- a/docs/ALTERNATE_NUMBER_DIALING.txt +++ b/docs/ALTERNATE_NUMBER_DIALING.txt @@ -1,4 +1,4 @@ -ALTERNATE NUMBER DIALING Redesign Started: 2008-08-20 Updated: 2011-08-02 +ALTERNATE NUMBER DIALING Redesign Started: 2008-08-20 Updated: 2014-07-15 *** THIS SECTION OUTLINES PROPOSED CHANGES TO ALT-NUMBER-DIALING in the 2.0.5 version *** *** FOR INFORMATION ON THE 2.0.3 AND 2.0.4 VERSION OF ALT NUMBER DIALING LOOK BELOW THIS SECTION *** @@ -45,6 +45,8 @@ Using MULTI_LEAD is different from the other standard Auto-Alt-Dial functions, i The Auto-Alt-Statuses are still in used for MULTI_LEAD so you may want to make sure that statuses like DROP, PDROP and others to your campaign's auto-alt-dial statuses so that the other leads tied by vendor_lead_code in the campaign's lists are not deactivated. +There is a feature in the hopper section of the modify campaign page that it is recommended you activate if you are using MULTI_LEAD auto-alt dialing: Hopper VLC Dup Check. This feature will prevent multiple numbers from the same account from getting inserted into the hopper at the same time. + diff --git a/www/agc/active_list_refresh.php b/www/agc/active_list_refresh.php index 3d9be2c0..cb586335 100644 --- a/www/agc/active_list_refresh.php +++ b/www/agc/active_list_refresh.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to serve updates of the live data to the display scripts # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -42,6 +42,7 @@ # 130328-0029 - Converted ereg to preg functions # 130603-2222 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-0957 - Changed to PHP mysqli functions +# 140811-0850 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -131,14 +132,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password").": |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip").": |$server_ip| or Invalid session_name: |$session_name|\n"; #underscore exit; } else @@ -150,7 +151,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name").": |$session_name|$server_ip|\n"; #underscore exit; } else @@ -166,12 +167,12 @@ if ($format=='table') echo "\n"; echo "\n"; echo "List Display: "; - if ($ADD==1) {echo "Live Extensions";} - if ($ADD==2) {echo "Busy Extensions";} - if ($ADD==3) {echo "Outside Lines";} - if ($ADD==4) {echo "Local Extensions";} - if ($ADD==5) {echo "Conferences";} - if ($ADD==99999) {echo "HELP";} + if ($ADD==1) {echo _QXZ("Live Extensions");} + if ($ADD==2) {echo _QXZ("Busy Extensions");} + if ($ADD==3) {echo _QXZ("Outside Lines");} + if ($ADD==4) {echo _QXZ("Local Extensions");} + if ($ADD==5) {echo _QXZ("Conferences");} + if ($ADD==99999) {echo _QXZ( "HELP");} echo "\n"; echo "\n"; echo "\n"; diff --git a/www/agc/api.php b/www/agc/api.php index f2e4cedb..39700a2e 100644 --- a/www/agc/api.php +++ b/www/agc/api.php @@ -75,10 +75,11 @@ # 140403-1738 - Added option to append filename on recording start # 140428-1656 - Added pause_type logging to queue_log pause/unpause entries for ra_call_control function # 140619-1006 - Added basic audio_playback function +# 140811-1243 - Changed to use QXZ function for echoing text # -$version = '2.10-41'; -$build = '140619-1006'; +$version = '2.10-42'; +$build = '140811-1243'; $startMS = microtime(); @@ -312,8 +313,8 @@ if ($consultative != 'YES') {$consultative='NO';} ################################################################################ if ($function == 'version') { - $data = "VERSION: $version|BUILD: $build|DATE: $NOW_TIME|EPOCH: $StarTtime"; - $result = 'SUCCESS'; + $data = _QXZ("VERSION:")." $version|"._QXZ("BUILD:")." $build|"._QXZ("DATE:")." $NOW_TIME|"._QXZ("EPOCH:")." $StarTtime"; + $result = _QXZ("SUCCESS"); echo "$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -338,8 +339,8 @@ else { if(strlen($source)<2) { - $result = 'ERROR'; - $result_reason = "Invalid Source"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("Invalid Source"); echo "$result: $result_reason - $source\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -360,8 +361,8 @@ else if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ($auth_api==0)) { - $result = 'ERROR'; - $result_reason = "Invalid Username/Password"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("Invalid Username/Password"); echo "$result: $result_reason: |$user|$pass|$auth|$auth_api|$auth_message|\n"; $data = "$user|$pass|$auth"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -376,8 +377,8 @@ else $SNauth=$row[0]; if($SNauth==0) { - $result = 'ERROR'; - $result_reason = "System API NOT ACTIVE"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("System API NOT ACTIVE"); echo "$result: $result_reason\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -396,7 +397,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "external_hangup function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("external_hangup function set"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -531,8 +532,8 @@ if ($function == 'external_status') { if ( (strlen($value)<1) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "external_status not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("external_status not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -554,8 +555,8 @@ if ($function == 'external_status') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -612,15 +613,15 @@ if ($function == 'external_status') $stmt="UPDATE vicidial_live_agents set external_status='$value' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "external_status function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("external_status function set"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -641,8 +642,8 @@ if ($function == 'external_pause') { if ( (strlen($value)<1) or ( (strlen($agent_user)<1) and (strlen($alt_user)<1) ) or (!preg_match("/PAUSE|RESUME/",$value)) ) { - $result = 'ERROR'; - $result_reason = "external_pause not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("external_pause not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -664,8 +665,8 @@ if ($function == 'external_pause') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -684,8 +685,8 @@ if ($function == 'external_pause') $row=mysqli_fetch_row($rslt); if ($row[0] > 0) { - $result = 'ERROR'; - $result_reason = "external_pause agent is not paused"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("external_pause agent is not paused"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -694,16 +695,16 @@ if ($function == 'external_pause') $stmt="UPDATE vicidial_live_agents set external_pause='$value!$epoch' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "external_pause function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("external_pause function set"); echo "$result: $result_reason - $value|$epoch|$agent_user\n"; $data = "$epoch"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -724,8 +725,8 @@ if ($function == 'logout') { if ( (strlen($value)<1) or ( (strlen($agent_user)<1) and (strlen($alt_user)<1) ) or (!preg_match("/LOGOUT/",$value)) ) { - $result = 'ERROR'; - $result_reason = "logout not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("logout not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -747,8 +748,8 @@ if ($function == 'logout') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -762,16 +763,16 @@ if ($function == 'logout') $stmt="UPDATE vicidial_live_agents set external_pause='$value' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "logout function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("logout function set"); echo "$result: $result_reason - $value|$epoch|$agent_user\n"; $data = "$epoch"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -793,8 +794,8 @@ if ($function == 'recording') { if ( ( (!preg_match("/START/",$value)) and (!preg_match("/STOP/",$value)) and (!preg_match("/STATUS/",$value)) ) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "recording not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("recording not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -816,8 +817,8 @@ if ($function == 'recording') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -855,15 +856,15 @@ if ($function == 'recording') $RECstart_time = $row[2]; } - $result = 'NOTICE'; - $result_reason = "recording active"; + $result = _QXZ("NOTICE"); + $result_reason = _QXZ("recording active"); echo "$result: $result_reason - $agent_user|$recording_id|$RECfilename|$RECserver_ip|$RECstart_time|$AGENTserver_ip|$AGENTconf_exten|$AGENTstatus\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'NOTICE'; - $result_reason = "not recording"; + $result = _QXZ("NOTICE"); + $result_reason = _QXZ("not recording"); echo "$result: $result_reason - $agent_user|||||$AGENTserver_ip|$AGENTconf_exten|$AGENTstatus\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -872,8 +873,8 @@ if ($function == 'recording') { if ( (preg_match("/STOP/",$value)) and ( ($recording_id=='STOP') or ($recording_id < 1) ) ) { - $result = 'ERROR'; - $result_reason = "stop recording error"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("stop recording error"); echo "$result: $result_reason - $agent_user|$recording_id||||$AGENTserver_ip|$AGENTconf_exten|$AGENTstatus\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -887,16 +888,16 @@ if ($function == 'recording') $stmt="UPDATE vicidial_live_agents set external_recording='$value' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "recording function sent"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("recording function sent"); echo "$result: $result_reason - $agent_user|$value||||$AGENTserver_ip|$AGENTconf_exten|$AGENTstatus\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -918,8 +919,8 @@ if ($function == 'webphone_url') { if ( ( ($value!='DISPLAY') and ($value!='LAUNCH') ) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "webphone_url not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("webphone_url not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -941,8 +942,8 @@ if ($function == 'webphone_url') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -966,43 +967,43 @@ if ($function == 'webphone_url') { if ($value=='DISPLAY') { - $result = 'NOTICE'; - $result_reason = "webphone_url active and displayed"; + $result = _QXZ("NOTICE"); + $result_reason = _QXZ("webphone_url active and displayed"); echo "$webphone_url"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'NOTICE'; - $result_reason = "webphone_url active and launched"; + $result = _QXZ("NOTICE"); + $result_reason = _QXZ("webphone_url active and launched"); api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); echo"\n"; echo"\n"; echo"\n"; - echo"click here to continue. . .\n"; + echo""._QXZ("click here to continue. . .")."\n"; echo"\n"; } } else { - $result = 'ERROR'; - $result_reason = "webphone_url error - webphone url is empty"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("webphone_url error - webphone url is empty"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "webphone_url error - no session data"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("webphone_url error - no session data"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1023,8 +1024,8 @@ if ($function == 'call_agent') { if ( ($value!='CALL') or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "call_agent not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("call_agent not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1046,8 +1047,8 @@ if ($function == 'call_agent') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1073,32 +1074,32 @@ if ($function == 'call_agent') $stmt="INSERT INTO vicidial_manager values('$call_agent_string');"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "call_agent function sent"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("call_agent function sent"); echo "$result: $result_reason - $agent_user\n"; $data = "$epoch"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "call_agent error - entry is empty"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("call_agent error - entry is empty"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "call_agent error - no session data"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("call_agent error - no session data"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1119,8 +1120,8 @@ if ($function == 'audio_playback') { if ( ( (strlen($value)<1) and ($stage=='PLAY') ) or (strlen($stage)<4) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "audio_playback not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("audio_playback not valid"); $data = "$stage"; echo "$result: $result_reason - $value|$data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1143,8 +1144,8 @@ if ($function == 'audio_playback') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); $data = "$stage|$alt_user"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1193,9 +1194,9 @@ if ($function == 'audio_playback') $stmtX="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$VLAserver_ip','','Hangup','PLAYHU$ENTRYdate','Channel: $VLAchannel','','','','','','','','','');"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmtX, $link); - $result = 'NOTICE'; + $result = _QXZ("NOTICE"); $data = "$stage|$dial_override"; - $result_reason = "audio_playback previous playback stopped"; + $result_reason = _QXZ("audio_playback previous playback stopped"); echo "$result: $result_reason - $data|$agent_user\n"; $data = "$epoch"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1204,9 +1205,9 @@ if ($function == 'audio_playback') } else { - $result = 'ERROR'; + $result = _QXZ("ERROR"); $data = "$VLAconf_exten|$VLAserver_ip|$stage|$dial_override"; - $result_reason = "audio_playback error - audio already playing in agent session"; + $result_reason = _QXZ("audio_playback error - audio already playing in agent session"); echo "$result: $result_reason - $data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -1241,9 +1242,9 @@ if ($function == 'audio_playback') } else { - $result = 'ERROR'; + $result = _QXZ("ERROR"); $data = "$VLAconf_exten|$VLAserver_ip|$stage"; - $result_reason = "audio_playback error - no audio playing in agent session"; + $result_reason = _QXZ("audio_playback error - no audio playing in agent session"); echo "$result: $result_reason - $data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -1251,36 +1252,36 @@ if ($function == 'audio_playback') } if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmtX, $link); - $result = 'SUCCESS'; + $result = _QXZ("SUCCESS"); $data = "$value|$stage"; - $result_reason = "audio_playback function sent"; + $result_reason = _QXZ("audio_playback function sent"); echo "$result: $result_reason - $data|$agent_user\n"; $data = "$epoch"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; + $result = _QXZ("ERROR"); $data = "$stage"; - $result_reason = "audio_playback error - entry is empty"; + $result_reason = _QXZ("audio_playback error - entry is empty"); echo "$result: $result_reason - $data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; + $result = _QXZ("ERROR"); $data = "$stage"; - $result_reason = "audio_playback error - no session data"; + $result_reason = _QXZ("audio_playback error - no session data"); echo "$result: $result_reason - $data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; + $result = _QXZ("ERROR"); $data = "$stage"; - $result_reason = "agent_user is not logged in"; + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1306,8 +1307,8 @@ if ($function == 'external_dial') if ( ( (strlen($value)<2) and (strlen($lead_id)<1) ) or ( (strlen($agent_user)<2) and (strlen($alt_user)<2) ) or (strlen($search)<2) or (strlen($preview)<2) or (strlen($focus)<2) ) { - $result = 'ERROR'; - $result_reason = "external_dial not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("external_dial not valid"); $data = "$phone_code|$search|$preview|$focus|$lead_id"; echo "$result: $result_reason - $value|$data|$agent_user|$alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1330,8 +1331,8 @@ if ($function == 'external_dial') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1391,8 +1392,8 @@ if ($function == 'external_dial') $caller_id_number = $row[0]; if ($caller_id_number < 4) { - $result = 'ERROR'; - $result_reason = "caller_id_number from group_alias is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("caller_id_number from group_alias is not valid"); $data = "$group_alias|$caller_id_number"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1401,8 +1402,8 @@ if ($function == 'external_dial') } else { - $result = 'ERROR'; - $result_reason = "group_alias is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("group_alias is not valid"); $data = "$group_alias"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1456,7 +1457,7 @@ if ($function == 'external_dial') ### connect to your vtiger database $linkV=mysqli_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass"); - if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysqli_error($linkV));} + if (!$linkV) {die(_QXZ("Could not connect: ")."$vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysqli_error($linkV));} mysqli_select_db($linkV, "$vtiger_dbname"); # make sure the ID is present in Vtiger database as an account @@ -1496,8 +1497,8 @@ if ($function == 'external_dial') } else { - $result = 'ERROR'; - $result_reason = "vtiger callback activity does not exist in vtiger system"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("vtiger callback activity does not exist in vtiger system"); echo "$result: $result_reason - $value\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; @@ -1533,8 +1534,8 @@ if ($function == 'external_dial') {$alt_dial='MAIN';} if ($alt_dial=='') { - $result = 'ERROR'; - $result_reason = "phone number lead_id search not found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("phone number lead_id search not found"); $data = "$value|$lead_id|$alt_dial"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1559,8 +1560,8 @@ if ($function == 'external_dial') $value = preg_replace("/[^0-9]/","",$value); if (strlen($value)<2) { - $result = 'ERROR'; - $result_reason = "phone number is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("phone number is not valid"); $data = "$value|$lead_id|$alt_dial"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1569,8 +1570,8 @@ if ($function == 'external_dial') } else { - $result = 'ERROR'; - $result_reason = "lead_id is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("lead_id is not valid"); $data = "$lead_id"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1598,8 +1599,8 @@ if ($function == 'external_dial') } else { - $result = 'ERROR'; - $result_reason = "phone_number is already in this agents manual dial queue"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("phone_number is already in this agents manual dial queue"); echo "$result: $result_reason - $agent_user|$value\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1608,8 +1609,8 @@ if ($function == 'external_dial') { if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "external_dial function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("external_dial function set"); $data = "$phone_code|$search|$preview|$focus|$vendor_id|$epoch|$dial_prefix|$group_alias|$caller_id_number|$alt_dial"; echo "$result: $result_reason - $value|$agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1617,24 +1618,24 @@ if ($function == 'external_dial') } else { - $result = 'ERROR'; - $result_reason = "agent_user is not allowed to place manual dial calls"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not allowed to place manual dial calls"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not paused"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not paused"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1657,8 +1658,8 @@ if ($function == 'preview_dial_action') if ( (strlen($value)<4) or ( (strlen($agent_user)<2) and (strlen($alt_user)<2) ) or ( ($value != 'SKIP') and ($value != 'DIALONLY') and ($value != 'ALTDIAL') and ($value != 'ADR3DIAL') and ($value != 'FINISH') ) ) { - $result = 'ERROR'; - $result_reason = "preview_dial_action not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("preview_dial_action not valid"); $data = ""; echo "$result: $result_reason - $value|$data|$agent_user|$alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1681,8 +1682,8 @@ if ($function == 'preview_dial_action') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1713,8 +1714,8 @@ if ($function == 'preview_dial_action') } if ($manual_preview_dial == 'DISABLED') { - $result = 'ERROR'; - $result_reason = "preview dialing not allowed on this campaign"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("preview dialing not allowed on this campaign"); $data = "$vac_campaign_id|$manual_preview_dial"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1722,8 +1723,8 @@ if ($function == 'preview_dial_action') } if ( ($manual_preview_dial == 'PREVIEW_ONLY') and ($value == 'SKIP') ) { - $result = 'ERROR'; - $result_reason = "preview dial skipping not allowed on this campaign"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("preview dial skipping not allowed on this campaign"); $data = "$vac_campaign_id|$manual_preview_dial"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1731,8 +1732,8 @@ if ($function == 'preview_dial_action') } if ( ($alt_number_dialing == 'N') and ( ($value == 'ALTDIAL') or ($value == 'ADR3DIAL') or ($value == 'FINISH') ) ) { - $result = 'ERROR'; - $result_reason = "alt number dialing not allowed on this campaign"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("alt number dialing not allowed on this campaign"); $data = "$vac_campaign_id|$alt_number_dialing"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1759,32 +1760,32 @@ if ($function == 'preview_dial_action') if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "preview_dial_action function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("preview_dial_action function set"); $data = "$value"; echo "$result: $result_reason - $value|$agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user is not allowed to place manual dial calls"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not allowed to place manual dial calls"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not paused"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not paused"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1807,8 +1808,8 @@ if ($function == 'external_add_lead') {$value = $phone_number;} if ( ( (strlen($agent_user)<2) and (strlen($alt_user)<2) ) or (strlen($phone_code)<1) or (strlen($value)<2) ) { - $result = 'ERROR'; - $result_reason = "external_add_lead not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("external_add_lead not valid"); $data = "$value|$phone_code"; echo "$result: $result_reason - $data|$agent_user|$alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1836,8 +1837,8 @@ if ($function == 'external_add_lead') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1903,16 +1904,16 @@ if ($function == 'external_add_lead') if ($affected_rows > 0) { $lead_id = mysqli_insert_id($link); - $result = 'SUCCESS'; - $result_reason = "lead added"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("lead added"); echo "$result: $result_reason - $value|$campaign_id|$list_id|$lead_id|$agent_user\n"; $data = "$value|$list_id|$lead_id"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "lead insertion failed"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("lead insertion failed"); echo "$result: $result_reason - $value|$campaign_id|$list_id|$agent_user\n"; $data = "$value|$list_id|$stmt"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1922,16 +1923,16 @@ if ($function == 'external_add_lead') { if ($dnc_found>0) { - $result = 'ERROR'; - $result_reason = "add_lead PHONE NUMBER IN DNC"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("add_lead PHONE NUMBER IN DNC"); echo "$result: $result_reason - $value|$agent_user\n"; $data = "$value"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } if ($camp_dnc_found>0) { - $result = 'ERROR'; - $result_reason = "add_lead PHONE NUMBER IN CAMPAIGN DNC"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("add_lead PHONE NUMBER IN CAMPAIGN DNC"); echo "$result: $result_reason - $value|$campaign_id|$agent_user\n"; $data = "$value|$campaign_id"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -1940,16 +1941,16 @@ if ($function == 'external_add_lead') } else { - $result = 'ERROR'; - $result_reason = "campaign manual dial list undefined"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("campaign manual dial list undefined"); echo "$result: $result_reason - $value|$campaign_id|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -1971,8 +1972,8 @@ if ($function == 'change_ingroups') if ( (strlen($blended)<2) or (strlen($agent_user)<2) or (strlen($value)<3) ) { - $result = 'ERROR'; - $result_reason = "change_ingroups not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("change_ingroups not valid"); $data = "$value|$blended|$ingroup_choices"; echo "$result: $result_reason - $data|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2005,8 +2006,8 @@ if ($function == 'change_ingroups') $row=mysqli_fetch_row($rslt); if ($row[0] > 0) { - $result = 'ERROR'; - $result_reason = "campaign dial_method does not allow outbound autodial"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("campaign dial_method does not allow outbound autodial"); $data = "$blended"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2029,8 +2030,8 @@ if ($function == 'change_ingroups') $row=mysqli_fetch_row($rslt); if ($row[0] < 1) { - $result = 'ERROR'; - $result_reason = "ingroup does not exist"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ingroup does not exist"); $data = "$in_groups[$k]|$ingroup_choices"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2042,8 +2043,8 @@ if ($function == 'change_ingroups') } if ( (strlen($ingroup_choices) < 1) and ( ($value == 'ADD') or ($value == 'REMOVE') ) ) { - $result = 'ERROR'; - $result_reason = "ingroup_choices are required for ADD and REMOVE values"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ingroup_choices are required for ADD and REMOVE values"); $data = "$value|$ingroup_choices"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2193,7 +2194,7 @@ if ($function == 'change_ingroups') $stmt="UPDATE vicidial_users set closer_campaigns='$ingroup_choices',closer_default_blended='$external_blended' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $default_data = "User settings set as default"; + $default_data = _QXZ("User settings set as default"); ### LOG INSERTION Admin Log Table ### $ip = getenv("REMOTE_ADDR"); @@ -2205,32 +2206,32 @@ if ($function == 'change_ingroups') $rslt=mysql_to_mysqli($stmt, $link); } - $result = 'SUCCESS'; - $result_reason = "change_ingroups function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("change_ingroups function set"); $data = "$ingroup_choices|$blended|$default_data"; echo "$result: $result_reason - $user|$agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "user is not allowed to change agent in-groups"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("user is not allowed to change agent in-groups"); echo "$result: $result_reason - $user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "campaign does not allow inbound calls"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("campaign does not allow inbound calls"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2251,8 +2252,8 @@ if ($function == 'update_fields') { if (strlen($agent_user)<1) { - $result = 'ERROR'; - $result_reason = "st_login_log not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("st_login_log not valid"); $data = "$agent_user"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2283,175 +2284,175 @@ if ($function == 'update_fields') $field_set=0; if (preg_match('/phone_code/',$query_string)) { - if ($DB) {echo "phone_code set to $phone_code\n";} + if ($DB) {echo _QXZ("phone_code set to $phone_code\n");} $fieldsSQL .= "phone_code='$phone_code',"; $fieldsLIST .= "phone_code,"; $field_set++; } if (preg_match('/address1/',$query_string)) { - if ($DB) {echo "address1 set to $address1\n";} + if ($DB) {echo _QXZ("address1 set to $address1\n");} $fieldsSQL .= "address1='$address1',"; $fieldsLIST .= "address1,"; $field_set++; } if (preg_match('/address2/',$query_string)) { - if ($DB) {echo "address2 set to $address2\n";} + if ($DB) {echo _QXZ("address2 set to $address2\n");} $fieldsSQL .= "address2='$address2',"; $fieldsLIST .= "address2,"; $field_set++; } if (preg_match('/address3/',$query_string)) { - if ($DB) {echo "address3 set to $address3\n";} + if ($DB) {echo _QXZ("address3 set to $address3\n");} $fieldsSQL .= "address3='$address3',"; $fieldsLIST .= "address3,"; $field_set++; } if (preg_match('/alt_phone/',$query_string)) { - if ($DB) {echo "alt_phone set to $alt_phone\n";} + if ($DB) {echo _QXZ("alt_phone set to $alt_phone\n");} $fieldsSQL .= "alt_phone='$alt_phone',"; $fieldsLIST .= "alt_phone,"; $field_set++; } if (preg_match('/city/',$query_string)) { - if ($DB) {echo "city set to $city\n";} + if ($DB) {echo _QXZ("city set to $city\n");} $fieldsSQL .= "city='$city',"; $fieldsLIST .= "city,"; $field_set++; } if (preg_match('/comments/',$query_string)) { - if ($DB) {echo "comments set to $comments\n";} + if ($DB) {echo _QXZ("comments set to $comments\n");} $fieldsSQL .= "comments='$comments',"; $fieldsLIST .= "comments,"; $field_set++; } if (preg_match('/country_code/',$query_string)) { - if ($DB) {echo "country_code set to $country_code\n";} + if ($DB) {echo _QXZ("country_code set to $country_code\n");} $fieldsSQL .= "country_code='$country_code',"; $fieldsLIST .= "country_code,"; $field_set++; } if (preg_match('/date_of_birth/',$query_string)) { - if ($DB) {echo "date_of_birth set to $date_of_birth\n";} + if ($DB) {echo _QXZ("date_of_birth set to $date_of_birth\n");} $fieldsSQL .= "date_of_birth='$date_of_birth',"; $fieldsLIST .= "date_of_birth,"; $field_set++; } if (preg_match('/email/',$query_string)) { - if ($DB) {echo "email set to $email\n";} + if ($DB) {echo _QXZ("email set to $email\n");} $fieldsSQL .= "email='$email',"; $fieldsLIST .= "email,"; $field_set++; } if (preg_match('/first_name/',$query_string)) { - if ($DB) {echo "first_name set to $first_name\n";} + if ($DB) {echo _QXZ("first_name set to $first_name\n");} $fieldsSQL .= "first_name='$first_name',"; $fieldsLIST .= "first_name,"; $field_set++; } if (preg_match('/gender/',$query_string)) { - if ($DB) {echo "gender set to $gender\n";} + if ($DB) {echo _QXZ("gender set to $gender\n");} $fieldsSQL .= "gender='$gender',"; $fieldsLIST .= "gender,"; $field_set++; } if (preg_match('/gmt_offset_now/',$query_string)) { - if ($DB) {echo "gmt_offset_now set to $gmt_offset_now\n";} + if ($DB) {echo _QXZ("gmt_offset_now set to $gmt_offset_now\n");} $fieldsSQL .= "gmt_offset_now='$gmt_offset_now',"; $fieldsLIST .= "gmt_offset_now,"; $field_set++; } if (preg_match('/last_name/',$query_string)) { - if ($DB) {echo "last_name set to $last_name\n";} + if ($DB) {echo _QXZ("last_name set to $last_name\n");} $fieldsSQL .= "last_name='$last_name',"; $fieldsLIST .= "last_name,"; $field_set++; } if (preg_match('/middle_initial/',$query_string)) { - if ($DB) {echo "middle_initial set to $middle_initial\n";} + if ($DB) {echo _QXZ("middle_initial set to $middle_initial\n");} $fieldsSQL .= "middle_initial='$middle_initial',"; $fieldsLIST .= "middle_initial,"; $field_set++; } if (preg_match('/phone_number/',$query_string)) { - if ($DB) {echo "phone_number set to $phone_number\n";} + if ($DB) {echo _QXZ("phone_number set to $phone_number\n");} $fieldsSQL .= "phone_number='$phone_number',"; $fieldsLIST .= "phone_number,"; $field_set++; } if (preg_match('/postal_code/i',$query_string)) { - if ($DB) {echo "postal_code set to $postal_code\n";} + if ($DB) {echo _QXZ("postal_code set to $postal_code\n");} $fieldsSQL .= "postal_code='$postal_code',"; $fieldsLIST .= "postal_code,"; $field_set++; } if (preg_match('/province/i',$query_string)) { - if ($DB) {echo "province set to $province\n";} + if ($DB) {echo _QXZ("province set to $province\n");} $fieldsSQL .= "province='$province',"; $fieldsLIST .= "province,"; $field_set++; } if (preg_match('/security_phrase/i',$query_string)) { - if ($DB) {echo "security_phrase set to $security_phrase\n";} + if ($DB) {echo _QXZ("security_phrase set to $security_phrase\n");} $fieldsSQL .= "security_phrase='$security_phrase',"; $fieldsLIST .= "security_phrase,"; $field_set++; } if (preg_match('/source_id/i',$query_string)) { - if ($DB) {echo "source_id set to $source_id\n";} + if ($DB) {echo _QXZ("source_id set to $source_id\n");} $fieldsSQL .= "source_id='$source_id',"; $fieldsLIST .= "source_id,"; $field_set++; } if (preg_match('/state/i',$query_string)) { - if ($DB) {echo "state set to $state\n";} + if ($DB) {echo _QXZ("state set to $state\n");} $fieldsSQL .= "state='$state',"; $fieldsLIST .= "state,"; $field_set++; } if (preg_match('/title/i',$query_string)) { - if ($DB) {echo "title set to $title\n";} + if ($DB) {echo _QXZ("title set to $title\n");} $fieldsSQL .= "title='$title',"; $fieldsLIST .= "title,"; $field_set++; } if (preg_match('/vendor_lead_code/i',$query_string)) { - if ($DB) {echo "vendor_lead_code set to $vendor_lead_code\n";} + if ($DB) {echo _QXZ("vendor_lead_code set to $vendor_lead_code\n");} $fieldsSQL .= "vendor_lead_code='$vendor_lead_code',"; $fieldsLIST .= "vendor_lead_code,"; $field_set++; } if (preg_match('/rank/i',$query_string)) { - if ($DB) {echo "rank set to $rank\n";} + if ($DB) {echo _QXZ("rank set to $rank\n");} $fieldsSQL .= "rank='$rank',"; $fieldsLIST .= "rank,"; $field_set++; } if (preg_match('/owner/i',$query_string)) { - if ($DB) {echo "owner set to $owner\n";} + if ($DB) {echo _QXZ("owner set to $owner\n");} $fieldsSQL .= "owner='$owner',"; $fieldsLIST .= "owner,"; $field_set++; @@ -2469,40 +2470,40 @@ if ($function == 'update_fields') if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "update_fields lead updated"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("update_fields lead updated"); $data = "$user|$agent_user|$lead_id|$fieldsSQL"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "no fields have been defined"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no fields have been defined"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user does not have a lead on their screen"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user does not have a lead on their screen"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "user is not allowed to modify lead information"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("user is not allowed to modify lead information"); echo "$result: $result_reason - $agent_user|$user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2523,8 +2524,8 @@ if ($function == 'set_timer_action') { if ( (strlen($agent_user)<1) or (strlen($value)<2) ) { - $result = 'ERROR'; - $result_reason = "set_timer_action not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("set_timer_action not valid"); $data = "$agent_user|$value"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2547,24 +2548,24 @@ if ($function == 'set_timer_action') if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "set_timer_action lead updated"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("set_timer_action lead updated"); $data = "$user|$agent_user|$value|$notes|$rank"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "user is not allowed to modify campaign settings"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("user is not allowed to modify campaign settings"); echo "$result: $result_reason - $agent_user|$user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2585,8 +2586,8 @@ if ($function == 'st_login_log') { if ( (strlen($value)<1) or (strlen($vendor_id)<1) ) { - $result = 'ERROR'; - $result_reason = "st_login_log not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("st_login_log not valid"); $data = "$value|$vendor_id"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2608,8 +2609,8 @@ if ($function == 'st_login_log') if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "st_login_log user found"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("st_login_log user found"); $data = "$row[0]"; echo "$result: $result_reason - $row[0]\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2617,8 +2618,8 @@ if ($function == 'st_login_log') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $value\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2638,8 +2639,8 @@ if ($function == 'st_get_agent_active_lead') { if ( (strlen($value)<1) or (strlen($vendor_id)<1) ) { - $result = 'ERROR'; - $result_reason = "st_get_agent_active_lead not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("st_get_agent_active_lead not valid"); $data = "$value|$vendor_id"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -2682,32 +2683,32 @@ if ($function == 'st_get_agent_active_lead') $security_phrase = $row[3]; $source_id = $row[4]; - $result = 'SUCCESS'; - $result_reason = "st_get_agent_active_lead lead found"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("st_get_agent_active_lead lead found"); $data = "$VC_user|$phone_number|$lead_id|$vendor_lead_code|$province|$security_phrase|$source_id"; echo "$result: $result_reason - $data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "no active lead found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no active lead found"); echo "$result: $result_reason - $VC_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "user not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("user not logged in"); echo "$result: $result_reason - $VC_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $value\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2727,8 +2728,8 @@ if ($function == 'ra_call_control') { if ( (strlen($value)<1) or (strlen($agent_user)<1) or (strlen($stage)<1) ) { - $result = 'ERROR'; - $result_reason = "ra_call_control not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ra_call_control not valid"); echo "$result: $result_reason - $value|$agent_user|$stage\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2778,8 +2779,8 @@ if ($function == 'ra_call_control') $stmtX="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Hangup','$HANGUPcid','Channel: $channel','','','','','','','','','');"; # if ($format=='debug') {echo "\n";} # $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "ra_call_control hungup"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("ra_call_control hungup"); echo "$result: $result_reason - $agent_user|$value|HANGUP\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2788,8 +2789,8 @@ if ($function == 'ra_call_control') $processed++; if (strlen($phone_number) < 2) { - $result = 'ERROR'; - $result_reason = "phone_number is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("phone_number is not valid"); echo "$result: $result_reason - $phone_number\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2807,8 +2808,8 @@ if ($function == 'ra_call_control') $stmtX="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Redirect','$TRANSFERcid','Channel: $channel','Context: $ext_context','Exten: $phone_number','Priority: 1','CallerID: $TRANSFERcid','','','','','');"; # if ($format=='debug') {echo "\n";} # $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "ra_call_control transfer"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("ra_call_control transfer"); echo "$result: $result_reason - $agent_user|$value|$phone_number\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2818,8 +2819,8 @@ if ($function == 'ra_call_control') $processed++; if (strlen($ingroup_choices) < 2) { - $result = 'ERROR'; - $result_reason = "ingroup is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ingroup is not valid"); echo "$result: $result_reason - $ingroup_choices\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2855,8 +2856,8 @@ if ($function == 'ra_call_control') if ($ingroupactive < 1) { - $result = 'ERROR'; - $result_reason = "ingroup is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ingroup is not valid"); echo "$result: $result_reason - $ingroup_choices\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2870,8 +2871,8 @@ if ($function == 'ra_call_control') $stmtX="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Redirect','$TRANSFERcid','Channel: $channel','Context: $ext_context','Exten: $TRANSFERexten','Priority: 1','CallerID: $TRANSFERcid','','','','','');"; # if ($format=='debug') {echo "\n";} # $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "ra_call_control transfer"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("ra_call_control transfer"); echo "$result: $result_reason - $agent_user|$value|$phone_number\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -2879,8 +2880,8 @@ if ($function == 'ra_call_control') } if ($processed < 1) { - $result = 'ERROR'; - $result_reason = "stage is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("stage is not valid"); echo "$result: $result_reason - $stage\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3054,16 +3055,16 @@ if ($function == 'ra_call_control') } else { - $result = 'ERROR'; - $result_reason = "no active call found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no active call found"); echo "$result: $result_reason - $value\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3085,8 +3086,8 @@ if ($function == 'send_dtmf') { if ( (strlen($value)<1) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "send_dtmf not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("send_dtmf not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3108,8 +3109,8 @@ if ($function == 'send_dtmf') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3123,15 +3124,15 @@ if ($function == 'send_dtmf') $stmt="UPDATE vicidial_live_agents set external_dtmf='$value' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; + $result = _QXZ("SUCCESS"); $result_reason = "send_dtmf function set"; echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3152,8 +3153,8 @@ if ($function == 'park_call') { if ( (strlen($value)<10) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "park_call not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("park_call not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3175,8 +3176,8 @@ if ($function == 'park_call') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3197,23 +3198,23 @@ if ($function == 'park_call') $stmt="UPDATE vicidial_live_agents set external_park='$value' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "park_call function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("park_call function set"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "agent_user does not have a lead on their screen"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user does not have a lead on their screen"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3234,8 +3235,8 @@ if ($function == 'transfer_conference') { if ( (strlen($value)<8) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "transfer_conference not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("transfer_conference not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3259,8 +3260,8 @@ if ($function == 'transfer_conference') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3285,8 +3286,8 @@ if ($function == 'transfer_conference') $processed++; if (strlen($ingroup_choices) < 2) { - $result = 'ERROR'; - $result_reason = "ingroup is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ingroup is not valid"); echo "$result: $result_reason - $ingroup_choices\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3323,8 +3324,8 @@ if ($function == 'transfer_conference') if ($ingroupactive < 1) { - $result = 'ERROR'; - $result_reason = "ingroup is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("ingroup is not valid"); echo "$result: $result_reason - $ingroup_choices\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3345,8 +3346,8 @@ if ($function == 'transfer_conference') $caller_id_number = $row[0]; if ($caller_id_number < 4) { - $result = 'ERROR'; - $result_reason = "caller_id_number from group_alias is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("caller_id_number from group_alias is not valid"); $data = "$group_alias|$caller_id_number"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -3355,8 +3356,8 @@ if ($function == 'transfer_conference') } else { - $result = 'ERROR'; - $result_reason = "group_alias is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("group_alias is not valid"); $data = "$group_alias"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -3386,8 +3387,8 @@ if ($function == 'transfer_conference') $caller_id_number = $row[0]; if ($caller_id_number < 4) { - $result = 'ERROR'; - $result_reason = "caller_id_number from group_alias is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("caller_id_number from group_alias is not valid"); $data = "$group_alias|$caller_id_number"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -3396,8 +3397,8 @@ if ($function == 'transfer_conference') } else { - $result = 'ERROR'; - $result_reason = "group_alias is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("group_alias is not valid"); $data = "$group_alias"; echo "$result: $result_reason - $agent_user|$data\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -3428,8 +3429,8 @@ if ($function == 'transfer_conference') if ($processed < 1) { - $result = 'ERROR'; - $result_reason = "value is not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("value is not valid"); echo "$result: $result_reason - $value|$user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3440,8 +3441,8 @@ if ($function == 'transfer_conference') $stmt="UPDATE vicidial_live_agents set external_transferconf='$external_transferconf' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "transfer_conference function set"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("transfer_conference function set"); $data = "$callerid"; echo "$result: $result_reason - $value|$ingroup_choices|$phone_number|$consultative|$agent_user|$data|\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); @@ -3450,16 +3451,16 @@ if ($function == 'transfer_conference') } else { - $result = 'ERROR'; - $result_reason = "agent_user does not have a live call"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user does not have a live call"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3481,8 +3482,8 @@ if ($function == 'pause_code') { if ( (strlen($value)<1) or (strlen($value)>6) or ( (strlen($agent_user)<1) and (strlen($alt_user)<2) ) ) { - $result = 'ERROR'; - $result_reason = "pause_code not valid"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("pause_code not valid"); echo "$result: $result_reason - $value|$agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3504,8 +3505,8 @@ if ($function == 'pause_code') } else { - $result = 'ERROR'; - $result_reason = "no user found"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("no user found"); echo "$result: $result_reason - $alt_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } @@ -3526,24 +3527,24 @@ if ($function == 'pause_code') $stmt="UPDATE vicidial_live_agents SET external_pause_code='$value' where user='$agent_user';"; if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); - $result = 'SUCCESS'; - $result_reason = "pause_code function sent"; + $result = _QXZ("SUCCESS"); + $result_reason = _QXZ("pause_code function sent"); echo "$result: $result_reason - $agent_user\n"; $data = "$epoch"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } else { - $result = 'ERROR'; - $result_reason = "pause_code error - agent is not paused"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("pause_code error - agent is not paused"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } } else { - $result = 'ERROR'; - $result_reason = "agent_user is not logged in"; + $result = _QXZ("ERROR"); + $result_reason = _QXZ("agent_user is not logged in"); echo "$result: $result_reason - $agent_user\n"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); } diff --git a/www/agc/astguiclient.php b/www/agc/astguiclient.php index ad01017e..c4c88285 100644 --- a/www/agc/astguiclient.php +++ b/www/agc/astguiclient.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # make sure you have added a user to the vicidial_users MySQL table with at least # user_level 1 or greater to access this page. Also you need to have the login @@ -62,6 +62,7 @@ # 130328-0017 - Converted ereg to preg functions # 130603-2220 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1002 - Changed to PHP mysqli functions +# 140811-0848 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -112,7 +113,7 @@ if ($force_logout) Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\""); Header("HTTP/1.0 401 Unauthorized"); } - echo "You have now logged out. Thank you\n"; + echo _QXZ("You have now logged out. Thank you\n"); exit; } @@ -149,7 +150,7 @@ if( (strlen($user)<2) or (strlen($pass)<2) or (!$auth) or ($relogin == 'YES') ) { header ("Content-type: text/html; charset=utf-8"); - echo "astGUIclient web client: Login\n"; + echo ""._QXZ("astGUIclient web client: Login")."\n"; echo "\n"; echo "\n"; echo "\n"; @@ -158,20 +159,20 @@ if( (strlen($user)<2) or (strlen($pass)<2) or (!$auth) or ($relogin == 'YES') ) echo "\n"; echo "\n"; echo "


"; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
Login "._QXZ("Login")."
 
User Login:
"._QXZ("User Login:")."
User Password:
"._QXZ("User Password:")."
Phone Login:
"._QXZ("Phone Login:")."
Phone Password:
"._QXZ("Phone Password:")."

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -211,7 +212,7 @@ echo "\n"; if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) ) { -echo "astGUIclient web client: Phone Login\n"; +echo ""._QXZ("astGUIclient web client: Phone Login")."\n"; echo "\n"; echo "\n"; echo "\n"; @@ -222,16 +223,16 @@ echo "\n"; echo "\n"; echo "\n"; echo "


"; -echo ""; -echo ""; +echo ""; +echo ""; echo "\n"; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo "\n"; -echo "\n"; +echo "\n"; +echo "\n"; echo "
Phone Login "._QXZ("Phone Login")."
 
Phone Login:
"._QXZ("Phone Login:")."
Phone Password:
"._QXZ("Phone Password:")."

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -248,7 +249,7 @@ $row=mysqli_fetch_row($rslt); $authphone=$row[0]; if (!$authphone) { - echo "astGUIclient web client: Phone Login\n"; + echo ""._QXZ("astGUIclient web client: Phone Login")."\n"; echo "\n"; echo "\n"; echo "\n"; @@ -259,16 +260,16 @@ if (!$authphone) echo "\n"; echo "\n"; echo "


"; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; - echo "\n"; - echo ""; + echo "\n"; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
Phone Login "._QXZ("Phone Login")."
 
Sorry, your phone login and password are not active in this system, please try again:
 
Phone Login:
 
"._QXZ("Sorry, your phone login and password are not active in this system, please try again:")."
 
"._QXZ("Phone Login:")."
Phone Password:
"._QXZ("Phone Password:")."

VERSION: $version       BUILD: $build

"._QXZ("VERSION: $version       BUILD: $build:")."
\n"; echo "\n\n"; echo "\n\n"; @@ -277,7 +278,7 @@ if (!$authphone) } else { - echo "astGUIclient web client\n"; + echo ""._QXZ("astGUIclient web client")."\n"; $stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret from phones where login='$phone_login' and pass='$phone_pass' and active = 'Y';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); @@ -493,15 +494,15 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var phone_pass = ''; var session_name = ''; var image_livecall_OFF = new Image(); - image_livecall_OFF.src="./images/agc_live_call_OFF.gif"; + image_livecall_OFF.src="./images/"; var image_livecall_ON = new Image(); - image_livecall_ON.src="./images/agc_live_call_ON.gif"; + image_livecall_ON.src="./images/"; var image_voicemail_OFF = new Image(); - image_voicemail_OFF.src="./images/agc_check_voicemail_OFF.gif"; + image_voicemail_OFF.src="./images/"; var image_voicemail_ON = new Image(); - image_voicemail_ON.src="./images/agc_check_voicemail_ON.gif"; + image_voicemail_ON.src="./images/"; var image_voicemail_BLINK = new Image(); - image_voicemail_BLINK.src="./images/agc_check_voicemail_BLINK.gif"; + image_voicemail_BLINK.src="./images/"; var favorites = new Array(); var favorites_names = new Array(); var favorites_busy = new Array(); @@ -888,7 +889,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} else { bsr_continue=0; - alert("You can only monitor Zap channels:\n" + listenvalue); + alert(":\n" + listenvalue); } } if (bsr_continue == '1') @@ -1386,7 +1387,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var conv_start=3; if (live_calls > 0) { - var live_calls_HTML = "LIVE CALLS ON THIS PHONE:
"; + var live_calls_HTML = ":
#CLIENT CHANNELREMOTE CHANNELRECORDHANGUPXFERPARK
"; if ( (LCAcount > live_calls) || (LCAcount < live_calls) ) { LCAe[0]=''; LCAe[1]=''; LCAe[2]=''; LCAe[3]=''; LCAe[4]=''; LCAe[5]=''; @@ -1416,7 +1417,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} else {live_calls_HTML = live_calls_HTML + "Record";} - live_calls_HTML = live_calls_HTML + ""; + live_calls_HTML = live_calls_HTML + ""; if (LCAe[ARY_ct].length < 1) {LCAe[ARY_ct] = channelfieldA_array[1]; LCAcontent_change++; LCAalter++;} @@ -1533,7 +1534,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var conv_start=0; if (out_calls > 0) { - var out_log_HTML = "
#
HANGUPXFERPARK
PARK
" + var out_log_HTML = "
# CALL DATE/TIMENUMBERLENGTH (M:SS)
" while (loop_ct < out_calls) { loop_ct++; @@ -1561,7 +1562,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var conv_start=0; if (in_calls > 0) { - var in_log_HTML = "
# (M:SS)
" + var in_log_HTML = "
# CALL DATE/TIMEIN-NUMBERCALLERIDLENGTH
" while (loop_ct < in_calls) { loop_ct++; @@ -1636,7 +1637,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var conv_start=-1; if (parked_count > 0) { - var park_HTML = "
#
" + var park_HTML = "
#CHANNEL
  CALL ID
PARKED BY
  PARKED TIME
HANGUPXFERPICKUP
" while (loop_ct < parked_count) { loop_ct++; @@ -1652,7 +1653,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var park_call_id = park_array[1]; var parked_by = park_array[3]; var parked_time = park_array[4]; - park_HTML = park_HTML + ""; + park_HTML = park_HTML + ""; } park_HTML = park_HTML + "
#
 

 
" + loop_ct + "" + park_channel + "
  " + park_call_id + "
" + parked_by + "
  " + parked_time + "
HANGUPXFERPICKUP
" + loop_ct + "" + park_channel + "
  " + park_call_id + "
" + parked_by + "
  " + parked_time + "
"; @@ -1760,11 +1761,11 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var reglink=''; if (taskreg.length<1) { - head_reg = 'NO ONE'; + head_reg = ; show_reglink=1; reglink = "Register"; } - var conf_head_HTML = "CONFERENCE " + head_conf + "    Registered to: " + head_reg + "   " + reglink + "         Enter Conference
Refresh     Record         Send DTMF         Dial From Conf
"; + var conf_head_HTML = " " + head_conf + "    : " + head_reg + "   " + reglink + "        
                   
"; document.getElementById("ConfereNceHeaderContent").innerHTML = conf_head_HTML; check_for_conf_calls(head_conf,taskrefresh); @@ -1825,7 +1826,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var LMAcontent_change=0; var LMAcontent_match=0; var conv_start=-1; - var live_conf_HTML = "LIVE CALLS IN THIS CONFERENCE:
"; + var live_conf_HTML = ":
#REMOTE CHANNELHANGUPXFER
"; if ( (LMAcount > live_conf_calls) || (LMAcount < live_conf_calls) || (LMAforce > 0)) { LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; @@ -1841,7 +1842,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} {var row_color = '#CCCCFF';} var conv_ct = (loop_ct + conv_start); var channelfieldA = conf_chan_array[conv_ct]; - live_conf_HTML = live_conf_HTML + ""; + live_conf_HTML = live_conf_HTML + ""; if (!LMAe[ARY_ct]) {LMAe[ARY_ct] = channelfieldA; LMAcontent_change++; LMAalter++;} @@ -2290,7 +2291,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} var VD_favlist_ct_half = parseInt(favlistCT / 2); if (VD_favlist_ct_half < 30) {VD_favlist_ct_half = 30;} var favlist_sec_col = 0; - var favedit_HTML = "
#XFER
" + loop_ct + "" + channelfieldA + "HANGUPXFER
" + loop_ct + "" + channelfieldA + "
AVAILABLE EXTENSIONS FAVORITES
"; + var favedit_HTML = "
- - - - - + + + + +
"; loop_ct = 0; while (loop_ct < favlistCT) { @@ -2325,7 +2326,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} { if (loop_ct > 0) { - favedit_HTML = favedit_HTML + " " + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "  
"; + favedit_HTML = favedit_HTML + "\" BORDER=0> \" BORDER=0> " + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "   \" BORDER=0>
"; } loop_ct++; } @@ -2387,7 +2388,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} hideDiv('MainPanel'); showDiv('LogouTBox'); - document.getElementById("LogouTBoxLink").innerHTML = "CLICK HERE TO LOG IN AGAIN\n"; + document.getElementById("LogouTBoxLink").innerHTML = "\n"; logout_stop_timeouts = 1; @@ -2468,7 +2469,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} start_all_refresh(); } function pause() // Pauses the refreshing of the lists - {active_display=2; display_message=" - ACTIVE DISPLAY PAUSED -";} + {active_display=2; display_message="";} function start() // resumes the refreshing of the lists {active_display=1; display_message='';} function faster() // lowers by 1000 milliseconds the time until the next refresh @@ -2489,13 +2490,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} function activeext_order_asc() // changes order of activeext list to ascending { activeext_order="asc"; getactiveext(); - desc_order_HTML ='ORDER'; + desc_order_HTML =''; document.getElementById("activeext_order").innerHTML = desc_order_HTML; } function activeext_order_desc() // changes order of activeext list to descending { activeext_order="desc"; getactiveext(); - asc_order_HTML ='ORDER'; + asc_order_HTML =''; document.getElementById("activeext_order").innerHTML = asc_order_HTML; } @@ -2505,13 +2506,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} function busytrunk_order_asc() // changes order of busytrunk list to ascending { busytrunk_order="asc"; getbusytrunk(); - desc_order_HTML ='ORDER'; + desc_order_HTML =''; document.getElementById("busytrunk_order").innerHTML = desc_order_HTML; } function busytrunk_order_desc() // changes order of busytrunk list to descending { busytrunk_order="desc"; getbusytrunk(); - asc_order_HTML ='ORDER'; + asc_order_HTML =''; document.getElementById("busytrunk_order").innerHTML = asc_order_HTML; } function busytrunkhangup_force_refresh() // forces immediate refresh of list content @@ -2523,13 +2524,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} function busyext_order_asc() // changes order of busyext list to ascending { busyext_order="asc"; getbusyext(); - desc_order_HTML ='ORDER'; + desc_order_HTML =''; document.getElementById("busyext_order").innerHTML = desc_order_HTML; } function busyext_order_desc() // changes order of busyext list to descending { busyext_order="desc"; getbusyext(); - asc_order_HTML ='ORDER'; + asc_order_HTML =''; document.getElementById("busyext_order").innerHTML = asc_order_HTML; } function busylocalhangup_force_refresh() // forces immediate refresh of list content @@ -2718,75 +2719,75 @@ echo "\n";
-LOGOUT
\n"; ?> +"._QXZ("LOGOUT")."
\n"; ?>
Main PanelActive Lines PanelConferences PanelCheck VoicemailLive Call" ALT="Main Panel" WIDTH=83 HEIGHT=30 BORDER=0>" ALT="Active Lines Panel" WIDTH=139 HEIGHT=30 BORDER=0>" ALT="Conferences Panel" WIDTH=139 HEIGHT=30 BORDER=0>" NAME=voicemail ALT="Check Voicemail" WIDTH=170 HEIGHT=30 BORDER=0>" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0>
-

Logout
+

-
TRUNK HANGUP

- Active Trunks Menu
- Hangup Trunk   |   - Hijack Trunk   |   - Listen Trunk   |   - Refresh   |   - Back to Main Window +


+
+   |   +   |   +   |   +   |   +
-
LOCAL HANGUP

- Active Local Menu
- Hangup Local   |   - Hijack Local   |   - Listen Local   |   - Refresh   |   - Back to Main Window +


+
+   |   +   |   +   |   +   |   +
- - +
LIVE CALL TRANSFER
Channel to be transferred: Channel
Extensions:
Extensions Menu
+ -




- Send to selected extension

- Send to selected vmail box

- Send to this number:


- Refresh


- Back to Main Window

+

+

+ :


+


+

Conferences:
(click on a number below to send to a conference)
Send my channel too
Conferences Menu
+


- - +
LOCAL Extensions Dial
Phone calling from: Channel
Extensions:
Extensions Menu
+




- Call selected extension

- Call selected vmail box

- Refresh


- Back to Main Window

+

+

+


+

- - + - + - + - + - +
PARKED CALLS:
- Back to Main Window

+
+

@@ -2796,26 +2797,26 @@ echo "\n";
VOICEMAIL     NEW:     OLD:             MANUAL DIAL       DIAL
                         
PARKED CALLS: 0                LOCAL DIAL EXTENSIONS
: 0                
OUTBOUND CALLS:
INBOUND CALLS:
astGUIclient web-client VERSION: BUILD:
- +
FAVORITES       edit
$h) { if (strlen($favorites[$h])>1) { - echo "\n"; + echo "\n"; } $h++; } @@ -2826,10 +2827,10 @@ echo "\n"; -
     
$favorites[$h] - $favorites_names[$h]
"._QXZ("$favorites[$h] - $favorites_names[$h]")."
+
FAVORITES
- - + +

 
SUBMIT FAVORITES CHANGES - requires logout
BACK TO MAIN WINDOW - ignore changes made
@@ -2839,30 +2840,30 @@ echo "\n"; - - -
-STOP | START     Refresh rate: 1000 ms Faster | Slower

-
Initializing..
+ |     1000 ms |

+
Active Extensions
-REFRESH | -ORDER | +

+ | + |
Outside Lines
-REFRESH | -ORDER | +

+ | + |
Local Extensions
-REFRESH | -ORDER | +

+ | + |
- Data Goes Here

+

- Data Goes Here

Trunk Action +

- Data Goes Here

Local Action +

@@ -2874,12 +2875,12 @@ echo "\n";
-Conferences List +
-Click on a conference room number on the left for info on that conference +
diff --git a/www/agc/call_log_display.php b/www/agc/call_log_display.php index bde03ff8..edb75458 100644 --- a/www/agc/call_log_display.php +++ b/www/agc/call_log_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send the inbound and outbound calls for a specific phone # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -33,6 +33,7 @@ # 130603-2219 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130705-1524 - Added optional encrypted passwords compatibility # 130802-1005 - Changed to PHP mysqli functions +# 140811-0847 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -80,14 +81,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -99,7 +100,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -114,7 +115,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "Call Log Display"; + echo "<title>".QXZ("Call Log Display"); echo "\n"; echo "\n"; echo "\n"; @@ -126,7 +127,7 @@ if ($format=='debug') if ( (strlen($exten)<1) or (strlen($protocol)<3) ) { $channel_live=0; - echo "Exten $exten is not valid or protocol $protocol is not valid\n"; + echo _QXZ("Exten $exten is not valid or protocol $protocol is not valid\n"); exit; } else diff --git a/www/agc/conf_exten_check.php b/www/agc/conf_exten_check.php index 31f6eb07..eafba113 100644 --- a/www/agc/conf_exten_check.php +++ b/www/agc/conf_exten_check.php @@ -1,5 +1,5 @@ LICENSE: AGPLv2 # @@ -62,10 +62,11 @@ # 130705-1524 - Added optional encrypted passwords compatibility # 130802-1015 - Changed to use PHP mysqli functions # 140126-0659 - Added external_pause_code function +# 140810-2136 - Changed to use QXZ function for echoing text # -$version = '2.8-37'; -$build = '140126-0659'; +$version = '2.10-38'; +$build = '140810-2136'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=39; $one_mysql_log=0; @@ -165,14 +166,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -185,7 +186,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -200,7 +201,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "Conf Extension Check"; + echo "<title>"._QXZ("Conf Extension Check"); echo "\n"; echo "\n"; echo "\n"; @@ -214,7 +215,7 @@ if ($ACTION == 'refresh') if (strlen($conf_exten)<1) { $channel_live=0; - echo "Conf Exten $conf_exten is not valid\n"; + echo _QXZ("Conf Exten $conf_exten is not valid\n"); exit; } else @@ -754,7 +755,7 @@ if ($ACTION == 'register') if ( (strlen($conf_exten)<1) || (strlen($exten)<1) ) { $channel_live=0; - echo "Conf Exten $conf_exten is not valid or Exten $exten is not valid\n"; + echo _QXZ("Conf Exten $conf_exten is not valid or Exten $exten is not valid\n"); exit; } else @@ -764,7 +765,7 @@ if ($ACTION == 'register') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03013',$user,$server_ip,$session_name,$one_mysql_log);} } - echo "Conference $conf_exten has been registered to $exten\n"; + echo _QXZ("Conference $conf_exten has been registered to $exten\n"); } diff --git a/www/agc/deactivate_lead.php b/www/agc/deactivate_lead.php index 667d239f..5d662310 100644 --- a/www/agc/deactivate_lead.php +++ b/www/agc/deactivate_lead.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed to be used in the "Dispo URL" field of a campaign # or in-group. It should take in the campaign_id to check for the same source_id @@ -27,6 +27,7 @@ # 130328-0016 - Converted ereg to preg functions # 130603-2217 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1006 - Changed to PHP mysqli functions +# 140811-0845 - Changed to use QXZ function for echoing text # $api_script = 'deactivate'; @@ -110,7 +111,7 @@ if (preg_match("/$TD$dispo$TD/",$sale_status)) if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } @@ -168,30 +169,30 @@ if (preg_match("/$TD$dispo$TD/",$sale_status)) $stmt="INSERT INTO vicidial_api_log set user='$user',agent_user='$user',function='deactivate_lead',value='$lead_id',result='$affected_rows',result_reason='$search_field',source='vdc',data='$SQL_log',api_date='$NOW_TIME',api_script='$api_script';"; $rslt=mysql_to_mysqli($stmt, $link); - $MESSAGE = "DONE: $search_count duplicates found, $affected_rows updated to $new_status from $dispo"; + $MESSAGE = _QXZ("DONE: $search_count duplicates found,")." $affected_rows updated to $new_status from $dispo"; echo "$MESSAGE\n"; } else { - $MESSAGE = "DONE: no duplicates found within $campaign_check |$duplicate_lists|"; + $MESSAGE = _QXZ("DONE: no duplicates found within")." $campaign_check |$duplicate_lists|"; echo "$MESSAGE\n"; } } else { - $MESSAGE = "DONE: no lists in campaign_check $campaign_check"; + $MESSAGE = _QXZ("DONE: no lists in campaign_check")." $campaign_check"; echo "$MESSAGE\n"; } } else { - $MESSAGE = "DONE: $search_field is empty for lead $lead_id"; + $MESSAGE = _QXZ("DONE: $search_field is empty for lead")." $lead_id"); echo "$MESSAGE\n"; } } else { - $MESSAGE = "DONE: dispo is not a sale status: $dispo"; + $MESSAGE = _QXZ("DONE: dispo is not a sale status:")." $dispo"); echo "$MESSAGE\n"; } diff --git a/www/agc/dispo_move_list.php b/www/agc/dispo_move_list.php index 13743ef7..3f1f9701 100644 --- a/www/agc/dispo_move_list.php +++ b/www/agc/dispo_move_list.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed to be used in the "Dispo URL" field of a campaign # or in-group. It should take in the lead_id to check for the same lead_id @@ -34,6 +34,7 @@ # 130328-0015 - Converted ereg to preg functions # 130603-2216 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1007 - Changed to PHP mysqli functions +# 140811-0844 - Changed to use QXZ function for echoing text # $api_script = 'deactivate'; @@ -99,7 +100,7 @@ else elseif (isset($_POST["$statusfield"])) {$sale_status=$_POST["$statusfield"];} $sale_status = "$TD$sale_status$TD"; - if ($DB) {echo "MULTI_MATCH CHECK: $k|$sale_status|$statusfield|\n";} + if ($DB) {echo _QXZ("MULTI_MATCH CHECK:")." $k|$sale_status|$statusfield|\n";} if (strlen($sale_status)>0) { @@ -112,7 +113,7 @@ else elseif (isset($_POST["$newlistfield"])) {$new_list_id=$_POST["$newlistfield"];} if (isset($_GET["$resetfield"])) {$reset_dialed=$_GET["$resetfield"];} elseif (isset($_POST["$resetfield"])) {$reset_dialed=$_POST["$resetfield"];} - if ($DB) {echo "MULTI_MATCH: $k|$sale_status|$new_list_id|$reset_dialed\n";} + if ($DB) {echo _QXZ("MULTI_MATCH:")." $k|$sale_status|$new_list_id|$reset_dialed\n";} } } } @@ -160,7 +161,7 @@ if ($match_found > 0) if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ($authlive==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth|$authlive|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth|$authlive|$auth_message|\n"; exit; } @@ -208,24 +209,24 @@ if ($match_found > 0) $stmt="INSERT INTO vicidial_api_log set user='$user',agent_user='$user',function='deactivate_lead',value='$lead_id',result='$affected_rows',result_reason='$lead_id',source='vdc',data='$SQL_log',api_date='$NOW_TIME',api_script='$api_script';"; $rslt=mysql_to_mysqli($stmt, $link); - $MESSAGE = "DONE: $search_count match found, $affected_rows updated to $new_list_id with $dispo status"; + $MESSAGE = _QXZ("DONE: $search_count match found, $affected_rows updated to $new_list_id with $dispo status"); echo "$MESSAGE\n"; } else { - $MESSAGE = "DONE: no match found within $lead_id |$new_list_id|"; + $MESSAGE = _QXZ("DONE: no match found within $lead_id |$new_list_id|"); echo "$MESSAGE\n"; } } else { - $MESSAGE = "DONE: $search_field is empty for lead $lead_id"; + $MESSAGE = _QXZ("DONE: $search_field is empty for lead $lead_id"); echo "$MESSAGE\n"; } } else { - $MESSAGE = "DONE: dispo is not a sale status: $dispo"; + $MESSAGE = _QXZ("DONE: dispo is not a sale status: $dispo"); echo "$MESSAGE\n"; } diff --git a/www/agc/functions.php b/www/agc/functions.php index 1969cc0a..fd0ebd66 100644 --- a/www/agc/functions.php +++ b/www/agc/functions.php @@ -1,6 +1,6 @@ \n"; $CFoutput .= "
\n"; if ($fields_to_print < 1) - {$CFoutput .= "";} + {$CFoutput .= "";} $o=0; $last_field_rank=0; @@ -341,7 +342,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) { $helpHTML=''; if (strlen($A_field_help[$o])>0) - {$helpHTML="  help+";} + {$helpHTML="  "._QXZ("help")."+";} if ($last_field_rank=="$A_field_rank[$o]") {$CFoutput .= "         ";} else @@ -397,7 +398,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) { if ($A_field_default[$o] == "$field_options_value_array[0]") {$field_selected = 'SELECTED';} } - $field_HTML .= "\n"; + $field_HTML .= "\n"; } if ( ($A_field_type[$o]=='RADIO') or ($A_field_type[$o]=='CHECKBOX') ) { @@ -412,7 +413,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) { if ($A_field_default[$o] == "$field_options_value_array[0]") {$field_selected = 'CHECKED';} } - $field_HTML .= " $field_options_value_array[1]\n"; + $field_HTML .= " "._QXZ("$field_options_value_array[1]")."\n"; if ($A_multi_position[$o]=='VERTICAL') {$field_HTML .= "
\n";} } @@ -428,7 +429,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) { if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';} if (strlen($A_field_value[$o]) < 1) {$A_field_value[$o] = $A_field_default[$o];} - $field_HTML .= "\n"; + $field_HTML .= "\n"; } if ($A_field_type[$o]=='AREA') { @@ -439,13 +440,13 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) if ($A_field_type[$o]=='DISPLAY') { if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';} - $field_HTML .= "$A_field_default[$o]\n"; + $field_HTML .= _QXZ("$A_field_default[$o]\n"); } if ($A_field_type[$o]=='READONLY') { if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';} # if (strlen($A_field_value[$o]) < 1) {$A_field_value[$o] = $A_field_default[$o];} - $field_HTML .= " $A_field_value[$o]\n"; + $field_HTML .= " "._QXZ("$A_field_value[$o]")."\n"; } if ( ($A_field_type[$o]=='HIDDEN') or ($A_field_type[$o]=='HIDEBLOB') ) { @@ -546,10 +547,10 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) $CFoutput .= "
There are no custom fields for this list
"._QXZ("There are no custom fields for this list")."
\n"; } else - {$CFoutput .= "ERROR: no custom list fields\n";} + {$CFoutput .= _QXZ("ERROR: no custom list fields\n");} } else - {$CFoutput .= "ERROR: no custom list fields table\n";} + {$CFoutput .= _QXZ("ERROR: no custom list fields table\n");} ##### BEGIN parsing for vicidial variables ##### @@ -578,7 +579,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) if (preg_match('/--A--dialed_/i',$CFoutput)) { $dialed_number = $phone_number; - $dialed_label = 'NONE'; + $dialed_label = _QXZ("NONE"); ### find the dialed number and label for this call $stmt = "SELECT phone_number,alt_dial from vicidial_log where uniqueid='$uniqueid';"; @@ -600,19 +601,19 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) if ($hide_call_log_info!='Y') { if ($search != 'logfirst') - {$NOTESout .= "CALL LOG FOR THIS LEAD:
\n";} + {$NOTESout .= _QXZ("CALL LOG FOR THIS LEAD:")."
\n";} $NOTESout .= ""; $NOTESout .= ""; $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; # $NOTESout .= ""; # $NOTESout .= ""; $NOTESout .= ""; @@ -654,7 +655,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) $rowA=mysqli_fetch_row($rsltA); $Allcall_notes[$g] = $rowA[0]; if (strlen($Allcall_notes[$g]) > 0) - {$Allcall_notes[$g] = "NOTES: $Allcall_notes[$g]";} + {$Allcall_notes[$g] = ""._QXZ("NOTES:")." "._QXZ("$Allcall_notes[$g]");} } $stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';"; $rsltA=mysql_to_mysqli($stmtA, $link); @@ -707,7 +708,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) $rowA=mysqli_fetch_row($rsltA); $Allcall_notes[$g] = $rowA[0]; if (strlen($Allcall_notes[$g]) > 0) - {$Allcall_notes[$g] = "NOTES: $Allcall_notes[$g]";} + {$Allcall_notes[$g] = ""._QXZ("NOTES").": "._QXZ("$Allcall_notes[$g]");} } $stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';"; $rsltA=mysql_to_mysqli($stmtA, $link); @@ -728,7 +729,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) if ($g > 0) {sort($ALLsort, SORT_NUMERIC);} else - {$NOTESout .= "";} + {$NOTESout .= "";} $u=0; while ($g > $u) @@ -759,7 +760,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user) $NOTESout .= "\n"; $NOTESout .= ""; $NOTESout .= ""; - $NOTESout .= ""; + $NOTESout .= ""; $NOTESout .= "\n"; } @@ -997,7 +998,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ $AC_processed=0; if ( (!$AC_processed) and ($dst_range == 'SSM-FSN') ) { - if ($DBX) {print " Second Sunday March to First Sunday November\n";} + if ($DBX) {print " "._QXZ("Second Sunday March to First Sunday November")."\n";} #********************************************************************** # SSM-FSN # This is returns 1 if Daylight Savings Time is in effect and 0 if @@ -1093,7 +1094,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'FSA-LSO') ) { - if ($DBX) {print " First Sunday April to Last Sunday October\n";} + if ($DBX) {print " "._QXZ("First Sunday April to Last Sunday October")."\n";} #********************************************************************** # FSA-LSO # This is returns 1 if Daylight Savings Time is in effect and 0 if @@ -1162,7 +1163,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'LSM-LSO') ) { - if ($DBX) {print " Last Sunday March to Last Sunday October\n";} + if ($DBX) {print " "._QXZ("Last Sunday March to Last Sunday October")."\n";} #********************************************************************** # This is s 1 if Daylight Savings Time is in effect and 0 if # Standard time is in effect. @@ -1230,7 +1231,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ } if ( (!$AC_processed) and ($dst_range == 'LSO-LSM') ) { - if ($DBX) {print " Last Sunday October to Last Sunday March\n";} + if ($DBX) {print " "._QXZ("Last Sunday October to Last Sunday March")."\n";} #********************************************************************** # This is s 1 if Daylight Savings Time is in effect and 0 if # Standard time is in effect. @@ -1299,7 +1300,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'FSO-LSM') ) { - if ($DBX) {print " First Sunday October to Last Sunday March\n";} + if ($DBX) {print " "._QXZ("First Sunday October to Last Sunday March")."\n";} #********************************************************************** # TASMANIA ONLY # This is s 1 if Daylight Savings Time is in effect and 0 if @@ -1367,7 +1368,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'FSO-FSA') ) { - if ($DBX) {print " Sunday in October to First Sunday in April\n";} + if ($DBX) {print " "._QXZ("Sunday in October to First Sunday in April")."\n";} #********************************************************************** # FSO-FSA # 2008+ AUSTRALIA ONLY (country code 61) @@ -1434,7 +1435,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'FSO-TSM') ) { - if ($DBX) {print " First Sunday October to Third Sunday March\n";} + if ($DBX) {print " "._QXZ("First Sunday October to Third Sunday March")."\n";} #********************************************************************** # This is s 1 if Daylight Savings Time is in effect and 0 if # Standard time is in effect. @@ -1501,7 +1502,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'LSS-FSA') ) { - if ($DBX) {print " Last Sunday in September to First Sunday in April\n";} + if ($DBX) {print " "._QXZ("Last Sunday in September to First Sunday in April")."\n";} #********************************************************************** # LSS-FSA # 2007+ NEW ZEALAND (country code 64) @@ -1570,7 +1571,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if ( (!$AC_processed) and ($dst_range == 'TSO-LSF') ) { - if ($DBX) {print " Third Sunday October to Last Sunday February\n";} + if ($DBX) {print " "._QXZ("Third Sunday October to Last Sunday February")."\n";} #********************************************************************** # TSO-LSF # This is returns 1 if Daylight Savings Time is in effect and 0 if @@ -1640,7 +1641,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$ if (!$AC_processed) { - if ($DBX) {print " No DST Method Found\n";} + if ($DBX) {print " "._QXZ("No DST Method Found")."\n";} if ($DBX) {print " DST: 0\n";} $AC_processed++; } @@ -1813,4 +1814,15 @@ function mysql_to_mysqli($stmt, $link) { return $rslt; } + +function _QXZ($English_text) + { +# $English_text = str_repeat('*', strlen($English_text)); +# $fp = fopen ("./QXZdebug.txt", "a"); +# fwrite ($fp, "|$English_text\n"); +# fclose($fp); + + return $English_text; + } + ?> \ No newline at end of file diff --git a/www/agc/inbound_popup.php b/www/agc/inbound_popup.php index a860ee80..a9b4fccf 100644 --- a/www/agc/inbound_popup.php +++ b/www/agc/inbound_popup.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed to open up when a live_inbound call comes in giving the user # options of what to do with the call or options to lookup the callerID on various web sites @@ -34,6 +34,7 @@ # 130328-0025 - Converted ereg to preg functions # 130603-2215 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1008 - Changed to PHP mysqli functions +# 140811-0843 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -91,14 +92,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -110,7 +111,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -255,11 +256,11 @@ echo "";} echo "
  #     DATE/TIME     AGENT     LENGTH     STATUS     PHONE     CAMPAIGN     IN/OUT     ALT     HANGUP     "._QXZ("DATE/TIME")."     "._QXZ("AGENT")."     "._QXZ("LENGTH")."     "._QXZ("STATUS")."     "._QXZ("PHONE")."     "._QXZ("CAMPAIGN")."     "._QXZ("IN/OUT")."     "._QXZ("ALT")."     "._QXZ("HANGUP")."  
  FULL NAME  
No calls found
"._QXZ("No calls found")."
$ALLhangup_reason[$i]
$Allcall_notes[$i] "._QXZ("$Allcall_notes[$i]")."
\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "
Channel: $row[1]
CallerID: $row[3]
"._QXZ("Channel").": $row[1]
"._QXZ("CallerID").": $row[3]
\n"; $phone = preg_replace("/.*\CUSTOM - \n"; echo "
Number Dialed: $row[8]
Notes: $row[9]|$row[10]|$row[11]|$row[12]|$row[13]|
"._QXZ("Number Dialed:")." $row[8]
"._QXZ("Notes:")." $row[9]|$row[10]|$row[11]|$row[12]|$row[13]|
\n"; - echo "HANGUP - \n"; - echo "SEND TO MY VOICEMAIL\n"; + echo ""._QXZ("HANGUP")." - \n"; + echo ""._QXZ("SEND TO MY VOICEMAIL")."\n"; echo "
\n"; diff --git a/www/agc/launch.php b/www/agc/launch.php index 9b0b69b6..8cff572c 100644 --- a/www/agc/launch.php +++ b/www/agc/launch.php @@ -1,18 +1,19 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # For launch validation to work, the options.php file must have # window_validation = 1 and win_valid_name set to window_name below # # CHANGELOG # 130903-2055 - First Build +# 140811-0800 - Changed to use QXZ function for echoing text # $window_name = 'subwindow_launch'; - +require_once("functions.php"); ### do not edit below this line ### @@ -104,7 +105,7 @@ if (strlen($static_agent_url) > 5) -Agent Screen Opener +<?php echo _QXZ("Agent Screen Opener"); ?> -Agent Screen Opener + diff --git a/www/agc/live_exten_check.php b/www/agc/live_exten_check.php index bb434cf3..bf03a18e 100644 --- a/www/agc/live_exten_check.php +++ b/www/agc/live_exten_check.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send whether the client channel is live and to what channel it is connected # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -34,6 +34,7 @@ # 130603-2214 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130705-1522 - Added optional encrypted passwords compatibility # 130802-1009 - Changed to PHP mysqli functions +# 140811-0841 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -81,14 +82,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -100,7 +101,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -115,7 +116,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "Live Extension Check"; + echo "<title>"._QXZ("Live Extension Check"); echo "\n"; echo "\n"; echo "\n"; @@ -137,7 +138,7 @@ $channel_live=1; if ( (strlen($exten)<1) or (strlen($protocol)<3) ) { $channel_live=0; - echo "Exten $exten is not valid or protocol $protocol is not valid\n"; + echo _QXZ("Exten $exten is not valid or protocol $protocol is not valid\n"); exit; } else @@ -169,10 +170,10 @@ while($loop_count > $counter) if ($trunk_count>0) { $row=mysqli_fetch_row($rslt); - echo "Conversation: $counter ~"; - echo "ChannelA: $ChanneLA[$counter] ~"; - echo "ChannelB: $ChanneLB[$counter] ~"; - echo "ChannelBtrunk: $row[0]|"; + echo _QXZ("Conversation: $counter ~"); + echo _QXZ("ChannelA: $ChanneLA[$counter] ~"); + echo _QXZ("ChannelB: $ChanneLB[$counter] ~"); + echo _QXZ("ChannelBtrunk: $row[0]|"); } else { @@ -183,10 +184,10 @@ while($loop_count > $counter) if ($trunk_count>0) { $row=mysqli_fetch_row($rslt); - echo "Conversation: $counter ~"; - echo "ChannelA: $ChanneLA[$counter] ~"; - echo "ChannelB: $ChanneLB[$counter] ~"; - echo "ChannelBtrunk: $row[0]|"; + echo _QXZ("Conversation: $counter ~"); + echo _QXZ("ChannelA: $ChanneLA[$counter] ~"); + echo _QXZ("ChannelB: $ChanneLB[$counter] ~"); + echo _QXZ("ChannelBtrunk: $row[0]|"); } else { @@ -197,10 +198,10 @@ while($loop_count > $counter) if ($trunk_count>0) { $row=mysqli_fetch_row($rslt); - echo "Conversation: $counter ~"; - echo "ChannelA: $ChanneLA[$counter] ~"; - echo "ChannelB: $ChanneLB[$counter] ~"; - echo "ChannelBtrunk: $row[0]|"; + echo _QXZ("Conversation: $counter ~"); + echo _QXZ("ChannelA: $ChanneLA[$counter] ~"); + echo _QXZ("ChannelB: $ChanneLB[$counter] ~"); + echo _QXZ("ChannelBtrunk: $row[0]|"); } else { @@ -211,17 +212,17 @@ while($loop_count > $counter) if ($trunk_count>0) { $row=mysqli_fetch_row($rslt); - echo "Conversation: $counter ~"; - echo "ChannelA: $ChanneLA[$counter] ~"; - echo "ChannelB: $ChanneLB[$counter] ~"; - echo "ChannelBtrunk: $row[0]|"; + echo _QXZ("Conversation: $counter ~"); + echo _QXZ("ChannelA: $ChanneLA[$counter] ~"); + echo _QXZ("ChannelB: $ChanneLB[$counter] ~"); + echo _QXZ("ChannelBtrunk: $row[0]|"); } else { - echo "Conversation: $counter ~"; - echo "ChannelA: $ChanneLA[$counter] ~"; - echo "ChannelB: $ChanneLB[$counter] ~"; - echo "ChannelBtrunk: $ChanneLA[$counter]|"; + echo _QXZ("Conversation: $counter ~"); + echo _QXZ("ChannelA: $ChanneLA[$counter] ~"); + echo _QXZ("ChannelB: $ChanneLB[$counter] ~"); + echo _QXZ("ChannelBtrunk: $ChanneLA[$counter]|"); } } } diff --git a/www/agc/manager_send.php b/www/agc/manager_send.php index e054c5a0..8c6b7a2c 100644 --- a/www/agc/manager_send.php +++ b/www/agc/manager_send.php @@ -1,5 +1,5 @@ LICENSE: AGPLv2 # @@ -119,10 +119,11 @@ # 130802-1021 - Changed to PHP mysqli functions # 130926-1755 - Added queuemetrics_record_hold option # 140215-2057 - Added several variable options for QM socket URL +# 140810-2125 - Changed to use QXZ function for echoing text # -$version = '2.8-66'; -$build = '140215-2057'; +$version = '2.10-67'; +$build = '140810-2125'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=128; $one_mysql_log=0; @@ -276,14 +277,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -296,7 +297,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -311,13 +312,13 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "Manager Send: "; - if ($ACTION=="Originate") {echo "Originate";} - if ($ACTION=="Redirect") {echo "Redirect";} - if ($ACTION=="RedirectName") {echo "RedirectName";} - if ($ACTION=="Hangup") {echo "Hangup";} - if ($ACTION=="Command") {echo "Command";} - if ($ACTION==99999) {echo "HELP";} + echo "<title>"._QXZ("Manager Send: "); + if ($ACTION=="Originate") {echo _QXZ("Originate");} + if ($ACTION=="Redirect") {echo _QXZ("Redirect");} + if ($ACTION=="RedirectName") {echo _QXZ("RedirectName");} + if ($ACTION=="Hangup") {echo _QXZ("Hangup");} + if ($ACTION=="Command") {echo _QXZ("Command");} + if ($ACTION==99999) {echo _QXZ("HELP");} echo "\n"; echo "\n"; echo "\n"; @@ -348,7 +349,7 @@ if ($ACTION=="SysCIDOriginate") { if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<1) ) { - echo "Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n"; + echo _QXZ("Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n"); } else { @@ -356,7 +357,7 @@ if ($ACTION=="SysCIDOriginate") if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02004',$user,$server_ip,$session_name,$one_mysql_log);} - echo "Originate command sent for Exten $exten Channel $channel on $server_ip\n"; + echo _QXZ("Originate command sent for Exten $exten Channel $channel on $server_ip\n"); } } @@ -370,13 +371,13 @@ if ($ACTION=="OriginateName") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "extenName $extenName must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nOriginateName Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("extenName $extenName must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nOriginateName Action not sent\n"); } else { @@ -399,14 +400,14 @@ if ($ACTION=="OriginateNameVmail") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "extenName $extenName must be set\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nOriginateNameVmail Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("extenName $extenName must be set\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nOriginateNameVmail Action not sent\n"); } else { @@ -446,13 +447,13 @@ if ($ACTION=="Originate") { if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or ( (strlen($queryCID)<10) and ($alertCID < 1) ) ) { - echo "ERROR Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n"; + echo _QXZ("ERROR Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n"); } else { if ( (preg_match('/MANUAL/i',$agent_dialed_type)) and ( (preg_match("/^\d860\d\d\d\d$/i",$exten)) or (preg_match("/^860\d\d\d\d$/i",$exten)) ) ) { - echo "ERROR You are not allowed to dial into other agent sessions $exten\n"; + echo _QXZ("ERROR You are not allowed to dial into other agent sessions $exten\n"); exit; } @@ -474,7 +475,7 @@ if ($ACTION=="Originate") if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02007',$user,$server_ip,$session_name,$one_mysql_log);} - echo "Originate command sent for Exten $exten Channel $channel on $server_ip |$account|$variable|\n"; + echo _QXZ("Originate command sent for Exten $exten Channel $channel on $server_ip |$account|$variable|\n"); ### log outbound call in the dial log $stmt = "INSERT INTO vicidial_dial_log SET caller_code='$queryCID',lead_id='$lead_id',server_ip='$server_ip',call_date='$NOW_TIME',extension='$exten',channel='$channel',timeout='0',outbound_cid='$outCID',context='$ext_context';"; @@ -528,7 +529,7 @@ if ($ACTION=="HangupConfDial") if ( (strlen($exten)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) ) { $channel_live=0; - echo "conference $exten is not valid or ext_context $ext_context or queryCID $queryCID is not valid, Hangup command not inserted\n"; + echo _QXZ("conference $exten is not valid or ext_context $ext_context or queryCID $queryCID is not valid, Hangup command not inserted\n"); } else { @@ -572,7 +573,7 @@ if ($ACTION=="Hangup") if ( (strlen($channel)<3) or (strlen($queryCID)<15) ) { $channel_live=0; - echo "Channel $channel is not valid or queryCID $queryCID is not valid, Hangup command not inserted\n"; + echo _QXZ("Channel $channel is not valid or queryCID $queryCID is not valid, Hangup command not inserted\n"); } else { @@ -603,7 +604,7 @@ if ($ACTION=="Hangup") $rowx=mysqli_fetch_row($rslt); if ($rowx[0]==0) { - echo "Call $CalLCID $channel is not live on $call_server_ip, Checking Live Channel...\n"; + echo _QXZ("Call $CalLCID $channel is not live on $call_server_ip, Checking Live Channel...\n"); $stmt="SELECT count(*) FROM live_channels where server_ip = '$call_server_ip' and channel='$channel' and extension LIKE \"%$exten\";"; if ($format=='debug') {echo "\n";} @@ -613,7 +614,7 @@ if ($ACTION=="Hangup") if ($row[0]==0) { $channel_live=0; - echo "Channel $channel is not live on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n"; + echo _QXZ("Channel $channel is not live on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n"); } else { @@ -631,7 +632,7 @@ if ($ACTION=="Hangup") if ($row[0] > 0) { $channel_live=0; - echo "Channel $channel in use by another agent on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n"; + echo _QXZ("Channel $channel in use by another agent on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n"); if ($WeBRooTWritablE > 0) { $fp = fopen ("./vicidial_debug.txt", "a"); @@ -828,7 +829,7 @@ if ($ACTION=="Hangup") if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02020',$user,$server_ip,$session_name,$one_mysql_log);} - echo "Hangup command sent for Channel $channel on $call_server_ip\n"; + echo _QXZ("Hangup command sent for Channel $channel on $call_server_ip\n"); } } } @@ -844,17 +845,17 @@ if ($ACTION=="RedirectVD") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($campaign)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($uniqueid)<2) or (strlen($lead_id)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "auto_dial_level $auto_dial_level must be set\n"; - echo "campaign $campaign must be set\n"; - echo "uniqueid $uniqueid must be set\n"; - echo "lead_id $lead_id must be set\n"; - echo "\nRedirectVD Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("auto_dial_level $auto_dial_level must be set\n"); + echo _QXZ("campaign $campaign must be set\n"); + echo _QXZ("uniqueid $uniqueid must be set\n"); + echo _QXZ("lead_id $lead_id must be set\n"); + echo _QXZ("\nRedirectVD Action not sent\n"); } else { @@ -920,15 +921,15 @@ if ($ACTION=="RedirectToPark") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($parkedby)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "extenName $extenName must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "parkedby $parkedby must be set\n"; - echo "\nRedirectToPark Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("extenName $extenName must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("parkedby $parkedby must be set\n"); + echo _QXZ("\nRedirectToPark Action not sent\n"); } else { @@ -1026,13 +1027,13 @@ if ($ACTION=="RedirectFromPark") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nRedirectFromPark Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nRedirectFromPark Action not sent\n"); } else { @@ -1155,15 +1156,15 @@ if ($ACTION=="RedirectToParkIVR") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($parkedby)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "extenName $extenName must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "parkedby $parkedby must be set\n"; - echo "\nRedirectToPark Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("extenName $extenName must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("parkedby $parkedby must be set\n"); + echo _QXZ("\nRedirectToPark Action not sent\n"); } else { @@ -1265,13 +1266,13 @@ if ($ACTION=="RedirectFromParkIVR") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nRedirectFromPark Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nRedirectFromPark Action not sent\n"); } else { @@ -1400,13 +1401,13 @@ if ($ACTION=="RedirectName") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "extenName $extenName must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nRedirectName Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("extenName $extenName must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nRedirectName Action not sent\n"); } else { @@ -1429,14 +1430,14 @@ if ($ACTION=="RedirectNameVmail") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "extenName $extenName must be set\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nRedirectNameVmail Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("extenName $extenName must be set\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nRedirectNameVmail Action not sent\n"); } else { @@ -1469,14 +1470,14 @@ if ($ACTION=="RedirectXtraCXNeW") { $channel_liveX=0; $channel_liveY=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "ExtraChannel $extrachannel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nRedirect Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("ExtraChannel $extrachannel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nRedirect Action not sent\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) { if ($WeBRooTWritablE > 0) @@ -1556,7 +1557,7 @@ if ($ACTION=="RedirectXtraCXNeW") else { $channel_liveX=0; - echo "Cannot find empty vicidial_conference on $server_ip, Redirect command not inserted\n|$stmt|"; + echo _QXZ("Cannot find empty vicidial_conference on $server_ip, Redirect command not inserted\n|$stmt|"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "Cannot find empty conference on $server_ip";} } } @@ -1578,7 +1579,7 @@ if ($ACTION=="RedirectXtraCXNeW") if ($rowx[0]==0) { $channel_liveX=0; - echo "Channel $channel is not live on $call_server_ip, Redirect command not inserted\n"; + echo _QXZ("Channel $channel is not live on $call_server_ip, Redirect command not inserted\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $call_server_ip";} } } @@ -1597,7 +1598,7 @@ if ($ACTION=="RedirectXtraCXNeW") if ($rowx[0]==0) { $channel_liveY=0; - echo "Channel $channel is not live on $server_ip, Redirect command not inserted\n"; + echo _QXZ("Channel $channel is not live on $server_ip, Redirect command not inserted\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $server_ip";} } } @@ -1611,7 +1612,7 @@ if ($ACTION=="RedirectXtraCXNeW") if ($rowx[0] < 1) { $channel_liveY=0; - echo "No Local agent to send call to, Redirect command not inserted\n"; + echo _QXZ("No Local agent to send call to, Redirect command not inserted\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "No Local agent to send call to";} } else @@ -1647,7 +1648,7 @@ if ($ACTION=="RedirectXtraCXNeW") $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02044',$user,$server_ip,$session_name,$one_mysql_log);} - echo "RedirectXtraCX command sent for Channel $channel on $call_server_ip and \nHungup $extrachannel on $server_ip\n"; + echo _QXZ("RedirectXtraCX command sent for Channel $channel on $call_server_ip and \nHungup $extrachannel on $server_ip\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel on $call_server_ip, Hungup $extrachannel on $server_ip";} } } @@ -1694,15 +1695,15 @@ if ($ACTION=="RedirectXtraNeW") { $channel_liveX=0; $channel_liveY=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "ExtraChannel $extrachannel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "session_id $session_id must be set\n"; - echo "\nRedirect Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("ExtraChannel $extrachannel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("session_id $session_id must be set\n"); + echo _QXZ("\nRedirect Action not sent\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) { if ($WeBRooTWritablE > 0) @@ -1795,7 +1796,7 @@ if ($ACTION=="RedirectXtraNeW") if ($rowx[0]==0) { $channel_liveX=0; - echo "Channel $channel is not live on $call_server_ip, Redirect command not inserted\n"; + echo _QXZ("Channel $channel is not live on $call_server_ip, Redirect command not inserted\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $call_server_ip";} } } @@ -1814,7 +1815,7 @@ if ($ACTION=="RedirectXtraNeW") if ($rowx[0]==0) { $channel_liveY=0; - echo "Channel $channel is not live on $server_ip, Redirect command not inserted\n"; + echo _QXZ("Channel $channel is not live on $server_ip, Redirect command not inserted\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $server_ip";} } } @@ -1827,7 +1828,7 @@ if ($ACTION=="RedirectXtraNeW") $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02057',$user,$server_ip,$session_name,$one_mysql_log);} - echo "RedirectXtra command sent for Channel $channel and \nExtraChannel $extrachannel\n to $exten on $server_ip\n"; + echo _QXZ("RedirectXtra command sent for Channel $channel and \nExtraChannel $extrachannel\n to $exten on $server_ip\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel and $extrachannel to $exten on $server_ip";} } else @@ -1854,7 +1855,7 @@ if ($ACTION=="RedirectXtraNeW") $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02059',$user,$server_ip,$session_name,$one_mysql_log);} - echo "RedirectXtra command sent for Channel $channel on $call_server_ip and \nExtraChannel $extrachannel\n to $exten on $server_ip\n"; + echo _QXZ("RedirectXtra command sent for Channel $channel on $call_server_ip and \nExtraChannel $extrachannel\n to $exten on $server_ip\n"); if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel/$call_server_ip and $extrachannel/$server_ip to $exten";} } } @@ -1915,13 +1916,13 @@ if ($ACTION=="Redirect") if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) ) { $channel_live=0; - echo "One of these variables is not valid:\n"; - echo "Channel $channel must be greater than 2 characters\n"; - echo "queryCID $queryCID must be greater than 14 characters\n"; - echo "exten $exten must be set\n"; - echo "ext_context $ext_context must be set\n"; - echo "ext_priority $ext_priority must be set\n"; - echo "\nRedirect Action not sent\n"; + echo _QXZ("One of these variables is not valid:\n"); + echo _QXZ("Channel $channel must be greater than 2 characters\n"); + echo _QXZ("queryCID $queryCID must be greater than 14 characters\n"); + echo _QXZ("exten $exten must be set\n"); + echo _QXZ("ext_context $ext_context must be set\n"); + echo _QXZ("ext_priority $ext_priority must be set\n"); + echo _QXZ("\nRedirect Action not sent\n"); } else { @@ -1941,7 +1942,7 @@ if ($ACTION=="Redirect") if ($rowx[0]==0) { $channel_live=0; - echo "Channel $channel is not live on $server_ip, Redirect command not inserted\n"; + echo _QXZ("Channel $channel is not live on $server_ip, Redirect command not inserted\n"); } } if ($channel_live==1) @@ -1951,7 +1952,7 @@ if ($ACTION=="Redirect") $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02064',$user,$server_ip,$session_name,$one_mysql_log);} - echo "Redirect command sent for Channel $channel on $server_ip\n"; + echo _QXZ("Redirect command sent for Channel $channel on $server_ip\n"); } } } @@ -1973,7 +1974,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($filename)<8) ) { $channel_live=0; - echo "Channel $channel is not valid or queryCID $queryCID is not valid or filename: $filename is not valid, $ACTION command not inserted\n"; + echo _QXZ("Channel $channel is not valid or queryCID $queryCID is not valid or filename: $filename is not valid, $ACTION command not inserted\n"); } else { @@ -1992,7 +1993,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($rowx[0]==0) { $channel_live=0; - echo "Channel $channel is not live on $server_ip, $ACTION command not inserted\n"; + echo _QXZ("Channel $channel is not live on $server_ip, $ACTION command not inserted\n"); } } if ($channel_live==1) @@ -2038,7 +2039,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02071',$user,$server_ip,$session_name,$one_mysql_log);} } } - echo "$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n"; + echo _QXZ("$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n"); } } } @@ -2060,7 +2061,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ( (strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<8) ) { $channel_live=0; - echo "Channel $channel is not valid or exten $exten is not valid or filename: $filename is not valid, $ACTION command not inserted\n"; + echo _QXZ("Channel $channel is not valid or exten $exten is not valid or filename: $filename is not valid, $ACTION command not inserted\n"); } else { @@ -2209,7 +2210,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) $i++; } } - echo "$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n RECORDING WILL LAST UP TO 60 MINUTES\n"; + echo _QXZ("$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n RECORDING WILL LAST UP TO 60 MINUTES\n"); } } @@ -2224,7 +2225,7 @@ if ($ACTION=="VolumeControl") { if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($stage)<1) or (strlen($queryCID)<1) ) { - echo "Conference $exten, Stage $stage is not valid or queryCID $queryCID is not valid, Originate command not inserted\n"; + echo _QXZ("Conference $exten, Stage $stage is not valid or queryCID $queryCID is not valid, Originate command not inserted\n"); } else { @@ -2241,7 +2242,7 @@ if ($ACTION=="VolumeControl") if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02082',$user,$server_ip,$session_name,$one_mysql_log);} - echo "Volume command sent for Conference $exten, Stage $stage Channel $channel on $server_ip\n"; + echo _QXZ("Volume command sent for Conference $exten, Stage $stage Channel $channel on $server_ip\n"); } } diff --git a/www/agc/park_calls_display.php b/www/agc/park_calls_display.php index f247b455..67bb15fa 100644 --- a/www/agc/park_calls_display.php +++ b/www/agc/park_calls_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send the details on the parked calls on the server # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -26,6 +26,7 @@ # 130328-0024 - Converted ereg to preg functions # 130603-2213 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1024 - Changed to PHP mysqli functions +# 140811-0839 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -70,14 +71,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -89,7 +90,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -104,7 +105,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "Parked Calls Display"; + echo "<title>"._QXZ("Parked Calls Display"); echo "\n"; echo "\n"; echo "\n"; @@ -116,7 +117,7 @@ $channel_live=1; if ( (strlen($exten)<1) or (strlen($protocol)<3) ) { $channel_live=0; - echo "Exten $exten is not valid or protocol $protocol is not valid\n"; + echo _QXZ("Exten $exten is not valid or protocol $protocol is not valid\n"); exit; } else diff --git a/www/agc/phone_only.php b/www/agc/phone_only.php index 2be64b8e..f0ad099d 100644 --- a/www/agc/phone_only.php +++ b/www/agc/phone_only.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # CHANGELOG # 110511-1336 - First Build @@ -12,10 +12,11 @@ # 130603-2212 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130718-0946 - Fixed login bug # 130802-1139 - Changed to PHP mysqli functions +# 140810-2113 - Changed to use QXZ function for echoing text # -$version = '2.8-8p'; -$build = '130802-1139'; +$version = '2.10-9p'; +$build = '140810-2113'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=73; $one_mysql_log=0; @@ -63,7 +64,7 @@ $forever_stop=0; if ($force_logout) { - echo "You have now logged out. Thank you\n"; + echo _QXZ("You have now logged out. Thank you\n"); exit; } @@ -185,31 +186,31 @@ $VU_user_group=$row[0]; if ($relogin == 'YES') { - echo "Phone web client: Login\n"; + echo ""._QXZ("Phone web client: Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
\n";} + {echo " "._QXZ("Timeclock")."
\n";} echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "


"; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; + echo "\n"; echo "
\"VICIdial\" Phone-Only Login \"VICIdial\" "._QXZ("Phone-Only Login")."
 
Phone Login:
"._QXZ("Phone Login:")."
Phone Password:
"._QXZ("Phone Password:")."
User Login:
"._QXZ("User Login:")."
User Password:
"._QXZ("User Password:")."
  \n"; - echo "

VERSION: $version       BUILD: $build
  \n"; + echo "

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "
\n\n"; echo "\n\n"; @@ -222,27 +223,27 @@ if ($user_login_first == 1) { if ( (strlen($VD_login)<1) or (strlen($VD_pass)<1) ) { - echo "Phone web client: Login\n"; + echo ""._QXZ("Phone web client: Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
\n";} + {echo " "._QXZ("Timeclock")."
\n";} echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "


"; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; + echo "\n"; echo "
\"VICIdial\" Phone-Only Login \"VICIdial\" "._QXZ("Phone-Only Login")."
 
User Login:
"._QXZ("User Login:")."
User Password:
"._QXZ("User Password:")."
  \n"; - echo "

VERSION: $version       BUILD: $build
  \n"; + echo "

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "
\n\n"; echo "\n\n"; @@ -263,7 +264,7 @@ if ($user_login_first == 1) if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) ) { - echo "Phone web client: Phone Login\n"; + echo ""._QXZ("Phone web client: Phone Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) @@ -274,17 +275,17 @@ if ($user_login_first == 1) echo "
\n"; echo "\n"; echo "


"; - echo ""; + echo ""; echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
\"VICIdial\"\"VICIdial\" Phone-Only Login
 
Phone Login:
"._QXZ("Phone Login:")."
Phone Password:
"._QXZ("Phone Password:")."
  \n"; + echo "
  \n"; echo "

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "
\n\n"; echo "\n\n"; @@ -296,7 +297,7 @@ if ($user_login_first == 1) } if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) ) { - echo "Phone web client: Phone Login\n"; + echo ""._QXZ("Phone web client: Phone Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) @@ -307,17 +308,17 @@ if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) ) echo "
\n"; echo "\n"; echo "


"; - echo ""; + echo ""; echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
\"VICIdial\"\"VICIdial\" Phone-Only Login
 
Phone Login:
"._QXZ("Phone Login:")."
Phone Password:
  \n"; + echo "
  \n"; echo "

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "
\n\n"; echo "\n\n"; @@ -403,7 +404,7 @@ else echo "\n"; echo "

$VDdisplayMESSAGE

"; echo ""; - echo ""; + echo ""; echo ""; echo "\n"; echo "\n"; @@ -411,9 +412,9 @@ else echo "\n"; echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
\"VICIdial\"\"VICIdial\" Phone-Only Login
 
User Password:
  \n"; + echo "
  \n"; echo "

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -492,16 +493,16 @@ else echo "\n"; echo "\n"; echo "


"; - echo ""; + echo ""; echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
\"VICIdial\"\"VICIdial\" Phone-Only Login Error
 
Sorry, your phone login and password are not active in this system, please try again:
 
Phone Login:
"._QXZ("Phone Login:")."
Phone Password:
"._QXZ("Phone Password:")."

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -583,7 +584,7 @@ else } echo "\n"; } - echo "Phone web client\n"; + echo ""._QXZ("Phone web client")."\n"; $stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret,is_webphone,use_external_server_ip,codecs_list,webphone_dialpad,phone_ring_timeout,on_hook_agent,webphone_auto_answer from phones where login='$phone_login' and pass='$phone_pass' and active = 'Y';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); @@ -895,7 +896,7 @@ $zi=2; echo "\n"; -echo " Phone: $original_phone_login - $server_ip           Logout
\n"; +echo _QXZ(" Phone: $original_phone_login - $server_ip")."           "._QXZ("Logout")."
\n"; if ($webphone_location == 'bar') { diff --git a/www/agc/timeclock.php b/www/agc/timeclock.php index 4108c3da..c9f48f0a 100644 --- a/www/agc/timeclock.php +++ b/www/agc/timeclock.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # CHANGELOG # 80523-0134 - First Build @@ -15,10 +15,11 @@ # 130705-2010 - Added optional encrypted passwords compatibility # 130802-1031 - Changed to PHP mysqli functions # 131208-2155 - Added user log TIMEOUTLOGOUT event status +# 140810-2138 - Changed to use QXZ function for echoing text # -$version = '2.8-10'; -$build = '131208-2155'; +$version = '2.10-11'; +$build = '140810-2138'; $StarTtimE = date("U"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -128,10 +129,10 @@ if ( ($stage == 'login') or ($stage == 'logout') ) if ($valid_user < 1) { ### NOT A VALID USER/PASS - $VDdisplayMESSAGE = "The user and password you entered are not active in the system
Please try again:"; + $VDdisplayMESSAGE = _QXZ("The user and password you entered are not active in the system
Please try again:"); echo"\n"; - echo"Agent Timeclock\n"; + echo""._QXZ("Agent Timeclock")."\n"; echo"\n"; echo"\n"; echo "\n"; @@ -145,16 +146,16 @@ if ( ($stage == 'login') or ($stage == 'logout') ) echo "\n"; echo "

$VDdisplayMESSAGE

"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
Timeclock "._QXZ("Timeclock")."
 
User Login:
"._QXZ("User Login:")."
User Password:
"._QXZ("User Password:")."
 

VERSION: $version       BUILD: $build
 

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -233,7 +234,7 @@ if ( ($stage == 'login') or ($stage == 'logout') ) if ( ($last_action_sec < 30) and ($status != 'START') ) { ### You cannot log in or out within 30 seconds of your last login/logout - $VDdisplayMESSAGE = "You cannot log in or out within 30 seconds of your last login or logout"; + $VDdisplayMESSAGE = _QXZ("You cannot log in or out within 30 seconds of your last login or logout"); echo"\n"; echo"Agent Timeclock\n"; @@ -250,16 +251,16 @@ if ( ($stage == 'login') or ($stage == 'logout') ) echo "\n"; echo "

$VDdisplayMESSAGE

"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
Timeclock "._QXZ("Timeclock")."
 
User Login:
"._QXZ("User Login:")."
User Password:
"._QXZ("User Password:")."
 

VERSION: $version       BUILD: $build
 

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -272,8 +273,8 @@ if ( ($stage == 'login') or ($stage == 'logout') ) { if ( ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') or ($status=='TIMEOUTLOGOUT') ) and ($stage=='login') ) { - $VDdisplayMESSAGE = "You have now logged-in"; - $LOGtimeMESSAGE = "You logged in at $NOW_TIME"; + $VDdisplayMESSAGE = _QXZ("You have now logged-in"); + $LOGtimeMESSAGE = _QXZ("You logged in at $NOW_TIME"); ### Add a record to the timeclock log $stmt="INSERT INTO vicidial_timeclock_log set event='LOGIN', user='$user', user_group='$user_group', event_epoch='$StarTtimE', ip_address='$ip', event_date='$NOW_TIME';"; @@ -300,8 +301,8 @@ if ( ($stage == 'login') or ($stage == 'logout') ) if ( ($status=='LOGIN') and ($stage=='logout') ) { - $VDdisplayMESSAGE = "You have now logged-out"; - $LOGtimeMESSAGE = "You logged out at $NOW_TIME
Amount of time you were logged-in: $totTIME_HMS"; + $VDdisplayMESSAGE = _QXZ("You have now logged-out"); + $LOGtimeMESSAGE = _QXZ("You logged out at $NOW_TIME")."
"._QXZ("Amount of time you were logged-in: $totTIME_HMS"); ### Add a record to the timeclock log $stmt="INSERT INTO vicidial_timeclock_log set event='LOGOUT', user='$user', user_group='$user_group', event_epoch='$StarTtimE', ip_address='$ip', login_sec='$last_action_sec', event_date='$NOW_TIME';"; @@ -341,14 +342,14 @@ if ( ($stage == 'login') or ($stage == 'logout') ) } if ( ( ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') or ($status=='TIMEOUTLOGOUT') ) and ($stage=='logout') ) or ( ($status=='LOGIN') and ($stage=='login') ) ) - {echo "ERROR: timeclock log entry already made: $status|$stage"; exit;} + {echo _QXZ("ERROR: timeclock log entry already made:")." $status|$stage"; exit;} if ($referrer=='agent') - {$BACKlink = "BACK to Agent Login Screen";} + {$BACKlink = ""._QXZ("BACK to Agent Login Screen")."";} if ($referrer=='admin') - {$BACKlink = "BACK to Administration";} + {$BACKlink = ""._QXZ("BACK to Administration")."";} if ($referrer=='welcome') - {$BACKlink = "BACK to Welcome Screen";} + {$BACKlink = ""._QXZ("BACK to Welcome Screen")."";} echo"\n"; echo"Agent Timeclock\n"; @@ -357,13 +358,13 @@ if ( ($stage == 'login') or ($stage == 'logout') ) echo "\n"; echo "

$VDdisplayMESSAGE

"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Timeclock "._QXZ("Timeclock")."
 
$LOGtimeMESSAGE
 
$BACKlink
 

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -376,21 +377,21 @@ if ( ($stage == 'login') or ($stage == 'logout') ) if ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') or ($status=='TIMEOUTLOGOUT') ) { - $VDdisplayMESSAGE = "Time since you were last logged-in: $totTIME_HMS"; + $VDdisplayMESSAGE = _QXZ("Time since you were last logged-in: $totTIME_HMS"); $log_action = 'login'; $button_name = 'LOGIN'; - $LOGtimeMESSAGE = "You last logged-out at: $last_action_date

Click LOGIN below to log-in"; + $LOGtimeMESSAGE = _QXZ("You last logged-out at: $last_action_date")."

"._QXZ("Click LOGIN below to log-in"); } if ($status=='LOGIN') { - $VDdisplayMESSAGE = "Amount of time you have been logged-in: $totTIME_HMS"; + $VDdisplayMESSAGE = _QXZ("Amount of time you have been logged-in: $totTIME_HMS"); $log_action = 'logout'; $button_name = 'LOGOUT'; - $LOGtimeMESSAGE = "You logged-in at: $last_action_date
Amount of time you have been logged-in: $totTIME_HMS

Click LOGOUT below to log-out"; + $LOGtimeMESSAGE = _QXZ("You logged-in at: $last_action_date")."
"._QXZ("Amount of time you have been logged-in: $totTIME_HMS")."

"._QXZ("Click LOGOUT below to log-out"); } echo"\n"; - echo"Agent Timeclock\n"; + echo""._QXZ("Agent Timeclock")."\n"; echo"\n"; echo"\n"; echo "\n"; @@ -407,13 +408,13 @@ if ( ($stage == 'login') or ($stage == 'logout') ) echo "\n"; echo "

$VDdisplayMESSAGE

"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Timeclock "._QXZ("Timeclock")."
 
$LOGtimeMESSAGE
 
 

VERSION: $version       BUILD: $build

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; @@ -429,7 +430,7 @@ if ( ($stage == 'login') or ($stage == 'logout') ) else { echo"\n"; - echo"Agent Timeclock\n"; + echo""._QXZ("Agent Timeclock")."\n"; echo"\n"; echo"\n"; echo "\n"; @@ -443,16 +444,16 @@ else echo "\n"; echo "

$VDdisplayMESSAGE

"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
Timeclock "._QXZ("Timeclock")."
 
User Login:
"._QXZ("User Login:")."
User Password:
"._QXZ("User Password:")."
 

VERSION: $version       BUILD: $build
 

"._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
\n"; echo "\n\n"; echo "\n\n"; diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php index fb76a58d..59c3d998 100644 --- a/www/agc/vdc_db_query.php +++ b/www/agc/vdc_db_query.php @@ -358,10 +358,11 @@ # 140617-1044 - Fixed issue with non-latin, issue #773 # 140621-1544 - Added update_settings function # 140703-1659 - Several logging fixes, mostly related to manual dial calls +# 140810-2046 - Changed to use QXZ function for echoing text # -$version = '2.10-254'; -$build = '140703-1659'; +$version = '2.10-255'; +$build = '140810-2046'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=595; $one_mysql_log=0; @@ -835,14 +836,14 @@ else if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -855,7 +856,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -871,7 +872,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "VICIDiaL Database Query Script"; + echo "<title>"._QXZ("VICIDiaL Database Query Script"); echo "\n"; echo "\n"; echo "\n"; @@ -888,7 +889,7 @@ if ($ACTION == 'LogiNCamPaigns') if ( (strlen($user)<1) ) { echo "\n"; exit; } @@ -959,7 +960,7 @@ if ($ACTION == 'LogiNCamPaigns') else { echo "\n"; exit; } @@ -971,7 +972,7 @@ if ($ACTION == 'LogiNCamPaigns') $shift_ok=0; if ( (strlen($LOGgroup_shiftsSQL) < 3) and ($VU_shift_override_flag < 1) ) { - $VDdisplayMESSAGE = "ERROR: There are no Shifts enabled for your user group\n"; + $VDdisplayMESSAGE = ""._QXZ("ERROR: There are no Shifts enabled for your user group")."\n"; $VDloginDISPLAY=1; } else @@ -1024,22 +1025,22 @@ if ($ACTION == 'LogiNCamPaigns') if ( ($shift_ok < 1) and ($VU_shift_override_flag < 1) ) { - $VDdisplayMESSAGE = "ERROR: You are not allowed to log in outside of your shift\n"; + $VDdisplayMESSAGE = ""._QXZ("ERROR: You are not allowed to log in outside of your shift")."\n"; $VDloginDISPLAY=1; } } if ($VDloginDISPLAY > 0) { $loginDATE = date("Ymd"); - $VDdisplayMESSAGE.= "

MANAGER OVERRIDE:
\n"; + $VDdisplayMESSAGE.= "

"._QXZ("MANAGER OVERRIDE:")."
\n"; $VDdisplayMESSAGE.= "
\n"; $VDdisplayMESSAGE.= "\n"; $VDdisplayMESSAGE.= "\n"; $VDdisplayMESSAGE.= "\n"; $VDdisplayMESSAGE.= "\n"; - $VDdisplayMESSAGE.= "Manager Login:
\n"; - $VDdisplayMESSAGE.= "Manager Password:
\n"; - $VDdisplayMESSAGE.= "




\n"; + $VDdisplayMESSAGE.= _QXZ("Manager Login:")."
\n"; + $VDdisplayMESSAGE.= _QXZ("Manager Password:")."
\n"; + $VDdisplayMESSAGE.= "



\n"; echo "$VDdisplayMESSAGE"; exit; } @@ -1053,7 +1054,7 @@ if ($ACTION == 'LogiNCamPaigns') $camps_to_print = mysqli_num_rows($rslt); echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; } exit; @@ -1086,7 +1087,7 @@ if ($ACTION == 'regCLOSER') if ( (strlen($closer_choice)<1) || (strlen($user)<1) ) { $channel_live=0; - echo "Group Choice $closer_choice is not valid\n"; + echo _QXZ("Group Choice $closer_choice is not valid\n"); exit; } else @@ -1303,7 +1304,7 @@ if ($ACTION == 'regCLOSER') } } - echo "Closer In Group Choice $closer_choice has been registered to user $user\n"; + echo _QXZ("Closer In Group Choice $closer_choice has been registered to user $user\n"); } @@ -1321,7 +1322,7 @@ if ($ACTION == 'regTERRITORY') if ( (strlen($agent_territories)<1) || (strlen($user)<1) ) { $channel_live=0; - echo "Territory Choice $agent_territories is not valid\n"; + echo _QXZ("Territory Choice $agent_territories is not valid\n"); exit; } else @@ -1361,7 +1362,7 @@ if ($ACTION == 'regTERRITORY') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00256',$user,$server_ip,$session_name,$one_mysql_log);} } - echo "Territory Choice $agent_territories has been registered to user $user\n"; + echo _QXZ("Territory Choice $agent_territories has been registered to user $user\n"); } @@ -1480,12 +1481,12 @@ if ($ACTION == 'UpdateFields') } else { - echo "ERROR: no lead info in system: $lead_id\n"; + echo _QXZ("ERROR: no lead info in system: $lead_id\n"); } } else { - echo "ERROR: no lead active for this agent\n"; + echo _QXZ("ERROR: no lead active for this agent\n"); } } @@ -1504,7 +1505,7 @@ if ($ACTION == 'update_settings') { $rowx=mysqli_fetch_row($rslt); $agent_count = $rowx[0]; - $SettingS_InfO .= "Agent Session: $agent_count\n"; + $SettingS_InfO .= _QXZ("Agent Session: $agent_count\n"); ##### grab the data from vicidial_users for the user $stmt="SELECT wrapup_seconds_override FROM vicidial_users where user='$user' LIMIT 1;"; @@ -1563,7 +1564,7 @@ if ($ACTION == 'update_settings') } else { - echo "ERROR: no agent session\n"; + echo _QXZ("ERROR: no agent session\n"); } } @@ -1583,8 +1584,8 @@ if ($ACTION == 'manDiaLnextCaLL') if ( (strlen($conf_exten)<1) || (strlen($campaign)<1) || (strlen($ext_context)<1) ) { $channel_live=0; - echo "HOPPER EMPTY\n"; - echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context is not valid\n"; + echo _QXZ("HOPPER EMPTY\n"); + echo _QXZ("Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context is not valid\n"); exit; } else @@ -1727,7 +1728,7 @@ if ($ACTION == 'manDiaLnextCaLL') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00355',$user,$server_ip,$session_name,$one_mysql_log);} $VLAEDaffected_rows = mysqli_affected_rows($link); - echo "OUTSIDE OF LOCAL CALL TIME $VMDQaffected_rows|$VLAEDaffected_rows\n"; + echo _QXZ("OUTSIDE OF LOCAL CALL TIME $VMDQaffected_rows|$VLAEDaffected_rows\n"); exit; } } @@ -1761,7 +1762,7 @@ if ($ACTION == 'manDiaLnextCaLL') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00357',$user,$server_ip,$session_name,$one_mysql_log);} $VLAEDaffected_rows = mysqli_affected_rows($link); - echo "DNC NUMBER\n"; + echo _QXZ("DNC NUMBER\n"); exit; } if ( (preg_match("/Y/",$use_campaign_dnc)) or (preg_match("/AREACODE/",$use_campaign_dnc)) ) @@ -1801,7 +1802,7 @@ if ($ACTION == 'manDiaLnextCaLL') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00359',$user,$server_ip,$session_name,$one_mysql_log);} $VLAEDaffected_rows = mysqli_affected_rows($link); - echo "DNC NUMBER\n"; + echo _QXZ("DNC NUMBER\n"); exit; } } @@ -1854,7 +1855,7 @@ if ($ACTION == 'manDiaLnextCaLL') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00361',$user,$server_ip,$session_name,$one_mysql_log);} $VLAEDaffected_rows = mysqli_affected_rows($link); - echo "NUMBER NOT IN CAMPLISTS\n"; + echo _QXZ("NUMBER NOT IN CAMPLISTS\n"); exit; } } @@ -2570,15 +2571,15 @@ if ($ACTION == 'manDiaLnextCaLL') if ($PHONEgmt_offset != $POSTgmt_offset) { - $post_phone_time_diff_alert_message .= "Phone and Post Code Time Zone Mismatch! "; + $post_phone_time_diff_alert_message .= _QXZ("Phone and Post Code Time Zone Mismatch! "); if ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_ONLY') { $post_phone_time_diff_alert_message=''; if ($PHONEdialable < 1) - {$post_phone_time_diff_alert_message .= " Phone Area Code Outside Dialable Zone $PHONEgmt_offset ";} + {$post_phone_time_diff_alert_message .= _QXZ(" Phone Area Code Outside Dialable Zone $PHONEgmt_offset ");} if ($POSTdialable < 1) - {$post_phone_time_diff_alert_message .= " Postal Code Outside Dialable Zone $POSTgmt_offset";} + {$post_phone_time_diff_alert_message .= _QXZ(" Postal Code Outside Dialable Zone $POSTgmt_offset");} } } if ( ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_PHONE') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_POSTAL') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_BOTH') ) @@ -2587,12 +2588,12 @@ if ($ACTION == 'manDiaLnextCaLL') if ( ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_PHONE') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_BOTH') ) { if ($PHONEdialable < 1) - {$post_phone_time_diff_alert_message .= " Phone Area Code Outside Dialable Zone $PHONEgmt_offset ";} + {$post_phone_time_diff_alert_message .= _QXZ(" Phone Area Code Outside Dialable Zone $PHONEgmt_offset ");} } if ( ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_POSTAL') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_BOTH') ) { if ($POSTdialable < 1) - {$post_phone_time_diff_alert_message .= " Postal Code Outside Dialable Zone $POSTgmt_offset ";} + {$post_phone_time_diff_alert_message .= _QXZ(" Postal Code Outside Dialable Zone $POSTgmt_offset ");} } } ##### END check for postal_code and phone time zones if alert enabled @@ -3232,7 +3233,7 @@ if ($ACTION == 'manDiaLnextCaLL') } else { - echo "HOPPER EMPTY\n"; + echo _QXZ("HOPPER EMPTY\n"); } } } @@ -3250,8 +3251,8 @@ if ($ACTION == 'alt_phone_change') if ( (strlen($stage)<1) || (strlen($called_count)<1) || (strlen($lead_id)<1) || (strlen($phone_number)<1) ) { $channel_live=0; - echo "ALT PHONE NUMBER STATUS NOT CHANGED\n"; - echo "$phone_number $stage $lead_id or $called_count is not valid\n"; + echo _QXZ("ALT PHONE NUMBER STATUS NOT CHANGED\n"); + echo _QXZ("$phone_number $stage $lead_id or $called_count is not valid\n"); exit; } else @@ -3261,7 +3262,7 @@ if ($ACTION == 'alt_phone_change') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00041',$user,$server_ip,$session_name,$one_mysql_log);} - echo "ALT PHONE NUMBER STATUS CHANGED\n"; + echo _QXZ("ALT PHONE NUMBER STATUS CHANGED\n"); } } @@ -3275,8 +3276,8 @@ if ($ACTION == 'AlertControl') if (strlen($stage)<1) { $channel_live=0; - echo "AGENT ALERT SETTING NOT CHANGED\n"; - echo "$stage is not valid\n"; + echo _QXZ("AGENT ALERT SETTING NOT CHANGED\n"); + echo _QXZ("$stage is not valid\n"); exit; } else @@ -3289,7 +3290,7 @@ if ($ACTION == 'AlertControl') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00185',$user,$server_ip,$session_name,$one_mysql_log);} - echo "AGENT ALERT SETTING CHANGED $stage\n"; + echo _QXZ("AGENT ALERT SETTING CHANGED $stage\n"); } } @@ -3306,8 +3307,8 @@ if ($ACTION == 'manDiaLskip') if ( (strlen($stage)<1) || (strlen($called_count)<1) || (strlen($lead_id)<1) ) { $channel_live=0; - echo "LEAD NOT REVERTED\n"; - echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context is not valid\n"; + echo _QXZ("LEAD NOT REVERTED\n"); + echo _QXZ("Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context is not valid\n"); exit; } else @@ -3337,7 +3338,7 @@ if ($ACTION == 'manDiaLskip') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00419',$user,$server_ip,$session_name,$one_mysql_log);} - echo "LEAD REVERTED\n"; + echo _QXZ("LEAD REVERTED\n"); } } @@ -3354,8 +3355,8 @@ if ($ACTION == 'manDiaLonly') if ( (strlen($conf_exten)<1) || (strlen($campaign)<1) || (strlen($ext_context)<1) || (strlen($phone_number)<1) || (strlen($lead_id)<1) ) { $channel_live=0; - echo " CALL NOT PLACED\n"; - echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context is not valid\n"; + echo _QXZ(" CALL NOT PLACED\n"); + echo _QXZ("Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context is not valid\n"); exit; } else @@ -3434,7 +3435,7 @@ if ($ACTION == 'manDiaLonly') $row=mysqli_fetch_row($rslt); if ($row[0] > 0) { - echo " CALL NOT PLACED\nDNC NUMBER\n"; + echo _QXZ(" CALL NOT PLACED\nDNC NUMBER\n"); exit; } if ( (preg_match("/Y/",$use_campaign_dnc)) or (preg_match("/AREACODE/",$use_campaign_dnc)) ) @@ -3461,7 +3462,7 @@ if ($ACTION == 'manDiaLonly') $row=mysqli_fetch_row($rslt); if ($row[0] > 0) { - echo " CALL NOT PLACED\nDNC NUMBER\n"; + echo _QXZ(" CALL NOT PLACED\nDNC NUMBER\n"); exit; } } @@ -3501,7 +3502,7 @@ if ($ACTION == 'manDiaLonly') if ($row[0] < 1) { - echo " CALL NOT PLACED\nNUMBER NOT IN CAMPLISTS\n"; + echo _QXZ(" CALL NOT PLACED\nNUMBER NOT IN CAMPLISTS\n"); exit; } } @@ -4058,8 +4059,8 @@ if ($stage == "start") fclose($fp); } - echo "LOG NOT ENTERED\n"; - echo "uniqueid $uniqueid or lead_id: $lead_id or list_id: $list_id or phone_number: $phone_number or campaign: $campaign is not valid\n"; + echo _QXZ("LOG NOT ENTERED\n"); + echo _QXZ("uniqueid $uniqueid or lead_id: $lead_id or list_id: $list_id or phone_number: $phone_number or campaign: $campaign is not valid\n"); exit; } else @@ -4121,12 +4122,12 @@ if ($stage == "start") if ($affected_rows > 0) { - echo "VICIDiaL_LOG Inserted: $uniqueid|$channel|$NOW_TIME\n"; + echo _QXZ("VICIDiaL_LOG Inserted:")." $uniqueid|$channel|$NOW_TIME\n"; echo "$StarTtime\n"; } else { - echo "LOG NOT ENTERED\n\n"; + echo _QXZ("LOG NOT ENTERED\n"); } $stmt = "UPDATE vicidial_auto_calls SET uniqueid='$uniqueid' where lead_id='$lead_id';"; @@ -4202,8 +4203,8 @@ if ($stage == "end") if ( (strlen($uniqueid)<1) or (strlen($lead_id)<1) ) { - echo "LOG NOT ENTERED\n"; - echo "uniqueid $uniqueid or lead_id: $lead_id is not valid\n"; + echo _QXZ("LOG NOT ENTERED\n"); + echo _QXZ("uniqueid $uniqueid or lead_id: $lead_id is not valid\n"); $log_no_enter=1; } else @@ -4948,12 +4949,12 @@ if ($stage == "end") if ($affected_rowsVL > 0) { - echo "VICIDiaL_LOG Inserted: $uniqueid|$channel|$NOW_TIME\n"; + echo _QXZ("VICIDiaL_LOG Inserted:")." $uniqueid|$channel|$NOW_TIME\n"; echo "$StarTtime\n"; } else { - echo "LOG NOT ENTERED\n\n"; + echo _QXZ("LOG NOT ENTERED\n\n"); } } else @@ -4986,7 +4987,7 @@ if ($stage == "end") } else { - echo "LOG NOT ENTERED\n\n"; + echo _QXZ("LOG NOT ENTERED\n\n"); } } else @@ -5403,8 +5404,8 @@ if ($ACTION == 'VDADREcheckINCOMING') { $channel_live=0; echo "0\n"; - echo "Campaign $campaign is not valid\n"; - echo "lead_id $lead_id is not valid\n"; + echo _QXZ("Campaign $campaign is not valid\n"); + echo _QXZ("lead_id $lead_id is not valid\n"); exit; } else @@ -5456,7 +5457,7 @@ if ($ACTION == 'VDADcheckINCOMING') { $channel_live=0; echo "0\n"; - echo "Campaign $campaign is not valid\n"; + echo _QXZ("Campaign $campaign is not valid\n"); exit; } else @@ -6699,7 +6700,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail') { $channel_live=0; echo "0\n"; - echo "Campaign $campaign is not valid\n"; + echo _QXZ("Campaign $campaign is not valid\n"); exit; } else @@ -7625,7 +7626,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') { $channel_live=0; echo "0\n"; - echo "Campaign $campaign is not valid or lead_id $lead_id is not valid\n"; + echo _QXZ("Campaign $campaign is not valid or lead_id $lead_id is not valid\n"); exit; } else @@ -8312,8 +8313,8 @@ if ($ACTION == 'userLOGout') $row=''; $rowx=''; if ( (strlen($campaign)<1) || (strlen($conf_exten)<1) ) { - echo "NO\n"; - echo "campaign $campaign or conf_exten $conf_exten is not valid\n"; + echo _QXZ("NO\n"); + echo _QXZ("campaign $campaign or conf_exten $conf_exten is not valid\n"); exit; } else @@ -8594,7 +8595,7 @@ if ($ACTION == 'updateDISPO') $MAN_vl_insert=0; if ( (strlen($dispo_choice)<1) || (strlen($lead_id)<1) ) { - echo "Dispo Choice $dispo or lead_id $lead_id is not valid\n"; + echo _QXZ("Dispo Choice $dispo or lead_id $lead_id is not valid\n"); exit; } else @@ -10152,7 +10153,7 @@ if ($ACTION == 'updateDISPO') # debug testing sleep # sleep(5); - echo 'Lead ' . $lead_id . ' has been changed to ' . $dispo_choice . " Status\nNext agent_log_id:\n" . $agent_log_id . "\n"; + echo _QXZ('Lead ') . $lead_id . _QXZ(' has been changed to ') . $dispo_choice . _QXZ(" Status\nNext agent_log_id:\n") . $agent_log_id . "\n"; } ################################################################################ @@ -10167,7 +10168,7 @@ if ($ACTION == 'updateLEAD') $DO_NOT_UPDATE_text=''; if ( (strlen($phone_number)<1) || (strlen($lead_id)<1) ) { - echo "phone_number $phone_number or lead_id $lead_id is not valid\n"; + echo _QXZ("phone_number $phone_number or lead_id $lead_id is not valid\n"); exit; } else @@ -10254,7 +10255,7 @@ if ($ACTION == 'updateLEAD') } } - echo "Lead $lead_id information has$DO_NOT_UPDATE_text been updated\n"; + echo _QXZ("Lead $lead_id information has$DO_NOT_UPDATE_text been updated\n"); } @@ -10268,7 +10269,7 @@ if ( ($ACTION == 'VDADpause') || ($ACTION == 'VDADready') ) $row=''; $rowx=''; if ( (strlen($stage)<2) || (strlen($server_ip)<1) ) { - echo "stage $stage is not valid\n"; + echo _QXZ("stage $stage is not valid\n"); exit; } else @@ -10486,7 +10487,7 @@ if ( ($ACTION == 'VDADpause') || ($ACTION == 'VDADready') ) } else { - echo 'Agent ' . $user . ' is now in status ' . $stage . "\nNext agent_log_id:\n$agent_log_id\n"; + echo _QXZ('Agent ') . $user . _QXZ(' is now in status ') . $stage . _QXZ("\nNext agent_log_id:\n$agent_log_id\n"); } } @@ -10500,7 +10501,7 @@ if ($ACTION == 'UpdatEFavoritEs') $channel_live=1; if ( (strlen($favorites_list)<1) || (strlen($user)<1) || (strlen($exten)<1) ) { - echo "favorites list $favorites_list is not valid\n"; + echo _QXZ("favorites list $favorites_list is not valid\n"); exit; } else @@ -10526,7 +10527,7 @@ if ($ACTION == 'UpdatEFavoritEs') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00174',$user,$server_ip,$session_name,$one_mysql_log);} } } - echo "Favorites list has been updated to $favorites_list for $exten\n"; + echo _QXZ("Favorites list has been updated to $favorites_list for $exten\n"); } @@ -10538,7 +10539,7 @@ if ($ACTION == 'PauseCodeSubmit') $row=''; $rowx=''; if ( (strlen($status)<1) || (strlen($agent_log_id)<1) ) { - echo "agent_log_id $agent_log_id or pause_code $status is not valid\n"; + echo _QXZ("agent_log_id $agent_log_id or pause_code $status is not valid\n"); exit; } else @@ -10658,7 +10659,7 @@ if ($ACTION == 'PauseCodeSubmit') } } } - echo ' Pause Code ' . $status . " has been recorded\nNext agent_log_id:\n" . $agent_log_id . "\n"; + echo _QXZ(' Pause Code ') . $status . _QXZ(" has been recorded\nNext agent_log_id:\n") . $agent_log_id . "\n"; } @@ -10856,9 +10857,9 @@ if ($ACTION == 'AGENTSview') } echo "

\n"; - echo "    -READY      -INCALL      -PAUSED  \n"; + echo "    -"._QXZ("READY")."      -"._QXZ("INCALL")."      -"._QXZ("PAUSED")."  \n"; if (preg_match("/NOT-LOGGED-IN-AGENTS/",$agent_status_viewable_groups)) - {echo "    -LOGGED-OUT  \n";} + {echo "    "._QXZ("-LOGGED-OUT")."  \n";} echo "\n"; } @@ -10879,7 +10880,7 @@ if ($ACTION == 'CALLSINQUEUEview') if (preg_match('/NONE/i',$view_calls_in_queue)) { - echo "Calls in Queue View Disabled for this campaign\n"; + echo _QXZ("Calls in Queue View Disabled for this campaign\n"); exit; } else @@ -10962,13 +10963,13 @@ if ($ACTION == 'CALLSINQUEUEview') echo ""; echo ""; echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; ### Print call information and gather more info on the calls as they are printed @@ -11026,7 +11027,7 @@ if ($ACTION == 'CALLSINQUEUEview') if ( (preg_match('/Y/i',$grab_calls_in_queue)) and ($OQcall_type[$loop_count]=='IN') ) { echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -11081,24 +11082,24 @@ if ($ACTION == 'CALLLOGview') if ($NOW_DATE != $date) {echo " $next_day_date >     ";} echo " "; - echo "GO       "; - echo " close "; + echo ""._QXZ("GO")."       "; + echo " "._QXZ("close")." "; echo "\n"; echo "
\n"; echo "
    PHONE     FULL NAME     WAIT     AGENT     "._QXZ("PHONE")."     "._QXZ("FULL NAME")."     "._QXZ("WAIT")."     "._QXZ("AGENT")."           CALL GROUP     TYPE     "._QXZ("CALL GROUP")."     "._QXZ("TYPE")."  
TAKE CALL   "._QXZ("TAKE CALL")."     $OQphone_number[$loop_count]     $caller_name     $call_time  
"; echo ""; echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; @@ -11176,7 +11177,7 @@ if ($ACTION == 'CALLLOGview') if ($g > 0) {sort($ALLsort, SORT_NUMERIC);} else - {echo "";} + {echo "";} $u=0; while ($g > $u) @@ -11204,17 +11205,17 @@ if ($ACTION == 'CALLLOGview') echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; if ($manual_dial_filter > 0) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} echo "\n"; } echo "
  #     DATE/TIME     LENGTH     STATUS     PHONE     FULL NAME     CAMPAIGN     IN/OUT     ALT     HANGUP     INFO     DIAL     "._QXZ("DATE/TIME")."     "._QXZ("LENGTH")."     "._QXZ("STATUS")."     "._QXZ("PHONE")."     "._QXZ("FULL NAME")."     "._QXZ("CAMPAIGN")."     "._QXZ("IN/OUT")."     "._QXZ("ALT")."     "._QXZ("HANGUP")."     "._QXZ("INFO")."     "._QXZ("DIAL")."  
No calls on this day
"._QXZ("No calls on this day")."
$ALLin_out[$i] $ALLalt_dial[$i] $ALLhangup_reason[$i] INFO "._QXZ("INFO")." DIAL "._QXZ("DIAL")." DIAL "._QXZ("DIAL")."
"; echo "
"; - echo "Close Call Log"; + echo ""._QXZ("Close Call Log").""; echo ""; } @@ -11311,9 +11312,9 @@ if ($ACTION == 'SEARCHRESULTSview') } else { - echo "ERROR: You must enter in search terms, one of these must be populated: lead ID, vendor ID, phone number, last name\n"; + echo _QXZ("ERROR: You must enter in search terms, one of these must be populated: lead ID, vendor ID, phone number, last name\n"); echo "

"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo ""; exit; } @@ -11460,21 +11461,21 @@ if ($ACTION == 'SEARCHRESULTSview') echo "
\n"; echo ""; - echo "Results Found: $search_result_count"; + echo _QXZ("Results Found: $search_result_count"); echo "\n"; echo "
\n"; echo ""; echo ""; echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; if ($search_result_count) @@ -11506,7 +11507,7 @@ if ($ACTION == 'SEARCHRESULTSview') } if ($g < 1) - {echo "";} + {echo "";} $u=0; while ($g > $u) @@ -11529,17 +11530,17 @@ if ($ACTION == 'SEARCHRESULTSview') echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; if ($inbound_lead_search < 1) { if ($manual_dial_filter > 0) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} } else { - echo "\n"; + echo "\n"; } echo "\n"; } @@ -11553,18 +11554,18 @@ if ($ACTION == 'SEARCHRESULTSview') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmtL,'00381',$user,$server_ip,$session_name,$one_mysql_log);} } else - {echo "";} + {echo "";} echo "
  #     FULL NAME     PHONE     STATUS     LAST CALL     CITY     STATE     ZIP     INFO     DIAL     "._QXZ("FULL NAME")."     "._QXZ("PHONE")."     "._QXZ("STATUS")."     "._QXZ("LAST CALL")."     "._QXZ("CITY")."     "._QXZ("STATE")."     "._QXZ("ZIP")."     "._QXZ("INFO")."     "._QXZ("DIAL")."  
No results found
"._QXZ("No results found")."
$ALLcity[$i] $ALLstate[$i] $ALLpostal_code[$i] INFO "._QXZ("INFO")." DIAL "._QXZ("DIAL")." DIAL "._QXZ("DIAL")." SELECT "._QXZ("SELECT")."
No results found
"._QXZ("No results found")."
"; echo "
"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo "
"; } else { echo "ERROR: There was a problem with your search terms\n"; echo "

"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo ""; exit; } @@ -11572,9 +11573,9 @@ if ($ACTION == 'SEARCHRESULTSview') } else { - echo "ERROR: Campaign not found\n"; + echo _QXZ("ERROR: Campaign not found\n"); echo "

"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo ""; exit; } @@ -11751,9 +11752,9 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') } else { - echo "ERROR: You must enter in search terms, one of these must be populated: office number, last name, first name\n"; + echo _QXZ("ERROR: You must enter in search terms, one of these must be populated: office number, last name, first name\n"); echo "

"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo ""; exit; } @@ -11797,19 +11798,19 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') echo "
\n"; echo ""; - echo "Results Found: $search_result_count"; + echo _QXZ("Results Found: $search_result_count"); echo "\n"; echo "
\n"; echo ""; echo ""; echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; if ($search_result_count) @@ -11843,7 +11844,7 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') } if ($g < 1) - {echo "";} + {echo "";} $u=0; while ($g > $u) @@ -11868,7 +11869,7 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') echo "\n"; echo "\n"; echo ""; - echo ""; + echo ""; echo "\n"; } @@ -11881,18 +11882,18 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmtL,'00436',$user,$server_ip,$session_name,$one_mysql_log);} } else - {echo "";} + {echo "";} echo "
  #     FIRST NAME     LAST NAME     OFFICE     MOBILE     OTHER 1     OTHER 2     BU NAME     "._QXZ("FIRST NAME")."     "._QXZ("LAST NAME")."     "._QXZ("OFFICE")."     "._QXZ("MOBILE")."     "._QXZ("OTHER 1")."     "._QXZ("OTHER 2")."     "._QXZ("BU NAME")."  
No results found
"._QXZ("No results found")."
$ALLbu_name[$i]
            Dept: $ALLdepartment[$i]       Group: $ALLgroup_name[$i]       Job: $ALLjob_title[$i]       Location: $ALLlocation[$i]             "._QXZ("Dept:")." $ALLdepartment[$i]       "._QXZ("Group").": $ALLgroup_name[$i]       "._QXZ("Job:")." $ALLjob_title[$i]       "._QXZ("Location:")." $ALLlocation[$i]
No results found
"._QXZ("No results found")."
"; echo "
"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo "
"; } else { - echo "ERROR: There was a problem with your search terms\n"; + echo _QXZ("ERROR: There was a problem with your search terms\n"); echo "

"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo ""; exit; } @@ -11900,9 +11901,9 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') } else { - echo "ERROR: Campaign not found\n"; + echo _QXZ("ERROR: Campaign not found\n"); echo "

"; - echo "Go Back"; + echo ""._QXZ("Go Back").""; echo ""; exit; } @@ -11916,7 +11917,7 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') if ($ACTION == 'LEADINFOview') { if (strlen($lead_id) < 1) - {echo "ERROR: no Lead ID";} + {echo _QXZ("ERROR: no Lead ID");} else { $hide_dial_links=0; @@ -11941,11 +11942,11 @@ if ($ACTION == 'LEADINFOview') { $row=mysqli_fetch_row($rslt); echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo "
Callback Status:   $row[0]
Callback Lead Status:   $row[7]
Callback Entry Time:   $row[1]
Callback Trigger Time:   $row[2]
Callback Comments:   $row[6]
"._QXZ("Callback Status:")."   $row[0]
"._QXZ("Callback Lead Status:")."   $row[7]
"._QXZ("Callback Entry Time:")."   $row[1]
"._QXZ("Callback Trigger Time:")."   $row[2]
"._QXZ("Callback Comments:")."   $row[6]
"; echo "
"; $hide_dial_links++; @@ -11969,25 +11970,25 @@ if ($ACTION == 'LEADINFOview') ### BEGIN Display lead info and custom fields ### ### BEGIN find any custom field labels ### $INFOout=''; - $label_title = ' Title'; - $label_first_name = 'First'; - $label_middle_initial = 'MI'; - $label_last_name = 'Last '; - $label_address1 = 'Address1'; - $label_address2 = 'Address2'; - $label_address3 = 'Address3'; - $label_city = 'City'; - $label_state = ' State'; - $label_province = 'Province'; - $label_postal_code = 'PostCode'; - $label_vendor_lead_code = 'Vendor ID'; - $label_gender = ' Gender'; - $label_phone_number = 'Phone'; - $label_phone_code = 'DialCode'; - $label_alt_phone = 'Alt. Phone'; - $label_security_phrase = 'Show'; - $label_email = ' Email'; - $label_comments = ' Comments'; + $label_title = _QXZ(' Title'); + $label_first_name = _QXZ('First'); + $label_middle_initial = _QXZ('MI'); + $label_last_name = _QXZ('Last '); + $label_address1 = _QXZ('Address1'); + $label_address2 = _QXZ('Address2'); + $label_address3 = _QXZ('Address3'); + $label_city = _QXZ('City'); + $label_state = _QXZ(' State'); + $label_province = _QXZ('Province'); + $label_postal_code = _QXZ('PostCode'); + $label_vendor_lead_code = _QXZ('Vendor ID'); + $label_gender = _QXZ(' Gender'); + $label_phone_number = _QXZ('Phone'); + $label_phone_code = _QXZ('DialCode'); + $label_alt_phone = _QXZ('Alt. Phone'); + $label_security_phrase = _QXZ('Show'); + $label_email = _QXZ(' Email'); + $label_comments = _QXZ(' Comments'); $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,label_hide_field_logs from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); @@ -12097,15 +12098,15 @@ if ($ACTION == 'LEADINFOview') if ($PHONEgmt_offset != $POSTgmt_offset) { - $post_phone_time_diff_alert_message .= "Phone and Post Code Time Zone Mismatch! "; + $post_phone_time_diff_alert_message .= _QXZ("Phone and Post Code Time Zone Mismatch! "); if ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_ONLY') { $post_phone_time_diff_alert_message=''; if ($PHONEdialable < 1) - {$post_phone_time_diff_alert_message .= " Phone Area Code Outside Dialable Zone $PHONEgmt_offset       ";} + {$post_phone_time_diff_alert_message .= _QXZ(" Phone Area Code Outside Dialable Zone")." $PHONEgmt_offset       ";} if ($POSTdialable < 1) - {$post_phone_time_diff_alert_message .= " Postal Code Outside Dialable Zone $POSTgmt_offset";} + {$post_phone_time_diff_alert_message .= _QXZ(" Postal Code Outside Dialable Zone")." $POSTgmt_offset";} } } if ( ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_PHONE') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_POSTAL') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_BOTH') ) @@ -12114,12 +12115,12 @@ if ($ACTION == 'LEADINFOview') if ( ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_PHONE') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_BOTH') ) { if ($PHONEdialable < 1) - {$post_phone_time_diff_alert_message .= " Phone Area Code Outside Dialable Zone $PHONEgmt_offset       ";} + {$post_phone_time_diff_alert_message .= _QXZ(" Phone Area Code Outside Dialable Zone")." $PHONEgmt_offset       ";} } if ( ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_POSTAL') or ($post_phone_time_diff_alert == 'OUTSIDE_CALLTIME_BOTH') ) { if ($POSTdialable < 1) - {$post_phone_time_diff_alert_message .= " Postal Code Outside Dialable Zone $POSTgmt_offset ";} + {$post_phone_time_diff_alert_message .= _QXZ(" Postal Code Outside Dialable Zone ")."$POSTgmt_offset ";} } if (strlen($post_phone_time_diff_alert_message)>5) @@ -12127,12 +12128,12 @@ if ($ACTION == 'LEADINFOview') } ##### END check for postal_code and phone time zones if alert enabled - $INFOout .= "Status:   $row[0]"; + $INFOout .= ""._QXZ("Status:")."   $row[0]"; if ( ($label_vendor_lead_code!='---HIDE---') or ($label_hide_field_logs=='N') ) {$INFOout .= "$label_vendor_lead_code:   $row[1]";} - $INFOout .= "List ID:   $row[2]"; - $INFOout .= "Timezone:   $row[3]"; - $INFOout .= "Called Since Last Reset:   $row[4]"; + $INFOout .= ""._QXZ("List ID:")."   $row[2]"; + $INFOout .= ""._QXZ("Timezone:")."   $row[3]"; + $INFOout .= ""._QXZ("Called Since Last Reset:")."   $row[4]"; if ( ($label_phone_code!='---HIDE---') or ($label_hide_field_logs=='N') ) {$INFOout .= "$label_phone_code:   $row[5]";} if ( ($label_phone_number!='---HIDE---') or ($label_hide_field_logs=='N') ) @@ -12141,21 +12142,21 @@ if ($ACTION == 'LEADINFOview') if ($hide_dial_links < 1) { if ($manual_dial_filter > 0) - {$INFOout .= " DIAL ";} + {$INFOout .= " "._QXZ("DIAL")." ";} else - {$INFOout .= " DIAL ";} + {$INFOout .= _QXZ(" DIAL ");} } } if ( ($label_phone_number=='---HIDE---') and ($hide_dial_links < 1) ) { if ($manual_dial_filter > 0) - {$INFOout .= "Dial Link:   DIAL ";} + {$INFOout .= ""._QXZ("Dial Link:")."   "._QXZ("DIAL")." ";} else - {$INFOout .= "Dial Link:   DIAL ";} + {$INFOout .= ""._QXZ("Dial Link:")."   "._QXZ(" DIAL ");} } $INFOout .= ""; if ($inbound_lead_search > 0) - {$INFOout .= "SELECT THIS LEAD";} + {$INFOout .= ""._QXZ("SELECT THIS LEAD")."";} if ( ($label_title!='---HIDE---') or ($label_hide_field_logs=='N') ) {$INFOout .= "$label_title:   $row[7]";} if ( ($label_first_name!='---HIDE---') or ($label_hide_field_logs=='N') ) @@ -12187,7 +12188,7 @@ if ($ACTION == 'LEADINFOview') if ($hide_dial_links < 1) { if ($manual_dial_filter > 0) - {$INFOout .= " DIAL ";} + {$INFOout .= " "._QXZ("DIAL")." ";} else {$INFOout .= " DIAL ";} } @@ -12200,8 +12201,8 @@ if ($ACTION == 'LEADINFOview') if ( ($label_comments!='---HIDE---') or ($label_hide_field_logs=='N') ) {$INFOout .= "$label_comments:   $row[23]";} if ($hide_call_log_info=='N') - {$INFOout .= "Called Count:   $row[24]";} - $INFOout .= "Last Local Call Time:   $row[25]"; + {$INFOout .= ""._QXZ("Called Count:")."   $row[24]";} + $INFOout .= ""._QXZ("Last Local Call Time:")."   $row[25]"; # $INFOout .= "Rank:   $row[26]"; # $INFOout .= "Owner:   $row[27]"; # $INFOout .= "Entry List ID:   $row[28]"; @@ -12275,19 +12276,19 @@ if ($ACTION == 'LEADINFOview') if ($hide_call_log_info=='N') { if ($search != 'logfirst') - {$NOTESout .= "
CALL LOG FOR THIS LEAD:
\n";} + {$NOTESout .= "
"._QXZ("CALL LOG FOR THIS LEAD:")."
\n";} $NOTESout .= ""; $NOTESout .= ""; $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; # $NOTESout .= ""; # $NOTESout .= ""; $NOTESout .= ""; @@ -12382,7 +12383,7 @@ if ($ACTION == 'LEADINFOview') $rowA=mysqli_fetch_row($rsltA); $Allcall_notes[$g] = $rowA[0]; if (strlen($Allcall_notes[$g]) > 0) - {$Allcall_notes[$g] = "NOTES: $Allcall_notes[$g]";} + {$Allcall_notes[$g] = ""._QXZ("NOTES:")." $Allcall_notes[$g]";} } $stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';"; $rsltA=mysql_to_mysqli($stmtA, $link); @@ -12403,7 +12404,7 @@ if ($ACTION == 'LEADINFOview') if ($g > 0) {sort($ALLsort, SORT_NUMERIC);} else - {$NOTESout .= "";} + {$NOTESout .= "";} $u=0; while ($g > $u) @@ -12447,15 +12448,15 @@ if ($ACTION == 'LEADINFOview') ### BEGIN Email log if ($allow_emails>0) { - $NOTESout .= "
EMAIL LOG FOR THIS LEAD:
\n"; + $NOTESout .= "
"._QXZ("EMAIL LOG FOR THIS LEAD:")."
\n"; $NOTESout .= "
  #     DATE/TIME     AGENT     LENGTH     STATUS     PHONE     CAMPAIGN     IN/OUT     ALT     HANGUP     "._QXZ("DATE/TIME")."     "._QXZ("AGENT")."     "._QXZ("LENGTH")."     "._QXZ("STATUS")."     "._QXZ("PHONE")."     "._QXZ("CAMPAIGN")."     "._QXZ("IN/OUT")."     "._QXZ("ALT")."     "._QXZ("HANGUP")."  
  FULL NAME  
No calls found
"._QXZ("No calls found")."
"; $NOTESout .= ""; $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; $NOTESout .= "\n"; @@ -12487,7 +12488,7 @@ if ($ACTION == 'LEADINFOview') $NOTESout .= "\n"; $NOTESout .= ""; $NOTESout .= "\n"; - $NOTESout .= "\n"; + $NOTESout .= "\n"; $NOTESout .= "\n"; } @@ -12521,7 +12522,7 @@ if ($ACTION == 'CALLSINQUEUEgrab') if ( (preg_match('/NONE/i',$view_calls_in_queue)) or (preg_match('/N/i',$grab_calls_in_queue)) ) { - echo "ERROR: Calls in Queue View Disabled for this campaign\n"; + echo _QXZ("ERROR: Calls in Queue View Disabled for this campaign\n"); exit; } else @@ -12555,11 +12556,11 @@ if ($ACTION == 'CALLSINQUEUEgrab') $affected_rows = mysqli_affected_rows($link); } - echo "SUCCESS: Call $stage grabbed for $user"; + echo _QXZ("SUCCESS: Call $stage grabbed for $user"); } else { - echo "ERROR: Call $stage could not be grabbed for $user\n"; + echo _QXZ("ERROR: Call $stage could not be grabbed for $user\n"); } $stmtD="SELECT * from vicidial_auto_calls where auto_call_id='$stage';"; @@ -12701,7 +12702,7 @@ if ($ACTION == 'customer_3way_hangup_process') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00342',$user,$server_ip,$session_name,$one_mysql_log);} - echo "DONE: $stage|$lead_id|$status"; + echo _QXZ("DONE:")." $stage|$lead_id|$status"; } @@ -12737,7 +12738,7 @@ if ($ACTION == 'Clear_API_Field') $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00343',$user,$server_ip,$session_name,$one_mysql_log);} - echo "DONE: $comments"; + echo _QXZ("DONE:")." $comments"; } @@ -12760,7 +12761,7 @@ function hangup_cause_description($code) { global $hangup_cause_dictionary; if ( array_key_exists($code,$hangup_cause_dictionary) ) { return $hangup_cause_dictionary[$code]; } - else { return "Unidentified Hangup Cause Code."; } + else { return _QXZ("Unidentified Hangup Cause Code."); } } ##### SIP Hangup Cause Description Map ##### @@ -12768,7 +12769,7 @@ function sip_hangup_cause_description($sip_code) { global $sip_hangup_cause_dictionary; if ( array_key_exists($sip_code,$sip_hangup_cause_dictionary) ) { return $sip_hangup_cause_dictionary[$sip_code]; } - else { return "Unidentified SIP Hangup Cause Code."; } + else { return _QXZ("Unidentified SIP Hangup Cause Code."); } } ?> diff --git a/www/agc/vdc_email_display.php b/www/agc/vdc_email_display.php index 87449297..205e590d 100644 --- a/www/agc/vdc_email_display.php +++ b/www/agc/vdc_email_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell, Joe Johnson LICENSE: AGPLv2 # # This page displays any incoming emails in the Vicidial user interface. It # also allows the user to download and view any attachments sent in the email, @@ -16,6 +16,7 @@ # 130603-2210 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130705-1515 - Added optional encrypted passwords compatibility # 130802-1032 - Changed to PHP mysqli functions +# 140811-0834 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -111,7 +112,7 @@ if ($qm_conf_ct > 0) if ($allow_emails<1) { - echo "Your system does not have the email setting enabled\n"; + echo _QXZ("Your system does not have the email setting enabled\n"); exit; } @@ -152,7 +153,7 @@ $LVAactive=$row[0]; $LVAactive=9; if ( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ( ($LVAactive < 1) ) ) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; echo "
\n"; echo "\n"; echo "\n"; @@ -189,7 +190,7 @@ if ($REPLY) { if (preg_match("/;|:|\/|\^|\[|\]|\"|\'|\*/",$LF_orig)) { - echo "ERROR: Invalid File Name: $LF_orig\n"; + echo _QXZ("ERROR: Invalid File Name:")." $LF_orig\n"; exit; } else @@ -224,7 +225,7 @@ if ($REPLY) } else { - echo "

mail could not be sent!

"; + echo "

"._QXZ("mail could not be sent!")."

"; } exit; } @@ -252,23 +253,23 @@ if ($lead_id) { $email_to = $row["email_to"]; } $EMAIL_form="
#   DATE/TIME   AGENT   CAMPAIGN   EMAIL TO   ATTACHMENTS   "._QXZ("DATE/TIME")."   "._QXZ("AGENT")."   "._QXZ("CAMPAIGN")."   "._QXZ("EMAIL TO")."   "._QXZ("ATTACHMENTS")."
  MESSAGE: $row[6] "._QXZ("MESSAGE:")." $row[6]
\n"; - $EMAIL_form.="\n"; - $EMAIL_form.="\n"; - $EMAIL_form.="\n"; - $EMAIL_form.="\n"; + $EMAIL_form.="\n"; + $EMAIL_form.="\n"; + $EMAIL_form.="\n"; + $EMAIL_form.="\n"; $att_stmt="select * from inbound_email_attachments where email_row_id='$email_row_id'"; $att_rslt=mysql_to_mysqli($att_stmt, $link); if (mysqli_num_rows($att_rslt)>0) { - $EMAIL_form.=""; } $EMAIL_form.=""; - $EMAIL_form.="\n"; - $EMAIL_form.="\n"; + $EMAIL_form.="\n"; + $EMAIL_form.="\n"; $EMAIL_form.="\n"; - $EMAIL_form.=""; + $EMAIL_form.=""; $EMAIL_form.="
Date received:$row[email_date]
From:$row[email_from]
Subject:$row[subject]
Message:
$row[message]
"._QXZ("Date received:")."$row[email_date]
"._QXZ("From:")."$row[email_from]
"._QXZ("Subject:")."$row[subject]
"._QXZ("Message:")."
$row[message]
Attachments:
";
+			$EMAIL_form.="
"._QXZ("Attachments:")."
";
 			while($att_row=mysqli_fetch_array($att_rslt)) {
 				$EMAIL_form.="
  • $att_row[filename]\n"; } $EMAIL_form.="

  • Response:RE: $row[subject]
    Reply:

    "._QXZ("Response:")."RE: $row[subject]
    "._QXZ("Reply:")."

    Attachments:"; $EMAIL_form.="
    "; $EMAIL_form.="
    "; @@ -276,7 +277,7 @@ if ($lead_id) { $EMAIL_form.="
    "; $EMAIL_form.=""; $EMAIL_form.="
    \n"; $EMAIL_form.="\n"; $EMAIL_form.="\n"; @@ -310,7 +311,7 @@ if ($lead_id) { ?> - AGENT email frame + <?php echo _QXZ("AGENT email frame"); ?> \n"; @@ -472,8 +473,8 @@ else if ($submit_button=='YES') { if ($bcrypt=='0') - {echo "\n";} - echo "\n"; + {echo "\n";} + echo "\n"; echo "

    \n"; } echo "


    \n"; diff --git a/www/agc/vdc_script_display.php b/www/agc/vdc_script_display.php index eb416789..8d76b01f 100644 --- a/www/agc/vdc_script_display.php +++ b/www/agc/vdc_script_display.php @@ -26,10 +26,11 @@ # 140623-2114 - Added script_override variable # 140630-1023 - Added full_script_height script variable # 140710-2143 - Added session_name variable +# 140810-1857 - Changed to use QXZ function for echoing text # -$version = '2.10-20'; -$build = '140710-2143'; +$version = '2.10-21'; +$build = '140810-1857'; require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -277,7 +278,7 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } @@ -286,7 +287,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "VICIDiaL Script Display Script"; + echo "<title>"._QXZ("VICIDiaL Script Display Script"); echo "\n"; echo "\n"; echo "\n"; @@ -536,21 +537,21 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text)) if ($hide_call_log_info!='Y') { if ($search != 'logfirst') - {$NOTESout .= "CALL LOG FOR THIS LEAD:
    \n";} + {$NOTESout .= _QXZ("CALL LOG FOR THIS LEAD:")."
    \n";} $NOTESout .= ""; $NOTESout .= ""; $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; - $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; + $NOTESout .= ""; # $NOTESout .= ""; - # $NOTESout .= ""; + # $NOTESout .= ""; $NOTESout .= ""; @@ -638,7 +639,7 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text)) $rowA=mysqli_fetch_row($rsltA); $Allcall_notes[$g] = $rowA[0]; if (strlen($Allcall_notes[$g]) > 0) - {$Allcall_notes[$g] = "NOTES: $Allcall_notes[$g]";} + {$Allcall_notes[$g] = ""._QXZ("NOTES:")." $Allcall_notes[$g]";} } $stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';"; $rsltA=mysql_to_mysqli($stmtA, $link); @@ -658,7 +659,7 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text)) if ($g > 0) {sort($ALLsort, SORT_NUMERIC);} else - {$NOTESout .= "";} + {$NOTESout .= "";} $u=0; while ($g > $u) diff --git a/www/agc/vdc_script_dispo_example.php b/www/agc/vdc_script_dispo_example.php index ae0135e8..51e0e88f 100644 --- a/www/agc/vdc_script_dispo_example.php +++ b/www/agc/vdc_script_dispo_example.php @@ -17,10 +17,11 @@ # 130328-0019 - Converted ereg to preg functions # 130603-2201 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1036 - Changed to PHP mysqli functions +# 140811-0832 - Changed to use QXZ function for echoing text # -$version = '2.8-5'; -$build = '130802-1036'; +$version = '2.10-6'; +$build = '140811-0832'; require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -283,25 +284,25 @@ if ($DB > 0) } ### BEGIN find any custom field labels ### -$label_title = 'Title'; -$label_first_name = 'First'; -$label_middle_initial = 'MI'; -$label_last_name = 'Last'; -$label_address1 = 'Address1'; -$label_address2 = 'Address2'; -$label_address3 = 'Address3'; -$label_city = 'City'; -$label_state = 'State'; -$label_province = 'Province'; -$label_postal_code = 'PostCode'; -$label_vendor_lead_code = 'Vendor ID'; -$label_gender = 'Gender'; -$label_phone_number = 'Phone'; -$label_phone_code = 'DialCode'; -$label_alt_phone = 'Alt. Phone'; -$label_security_phrase = 'Show'; -$label_email = 'Email'; -$label_comments = 'Comments'; +$label_title = _QXZ('Title'); +$label_first_name = _QXZ('First'); +$label_middle_initial = _QXZ('MI'); +$label_last_name = _QXZ('Last'); +$label_address1 = _QXZ('Address1'); +$label_address2 = _QXZ('Address2'); +$label_address3 = _QXZ('Address3'); +$label_city = _QXZ('City'); +$label_state = _QXZ('State'); +$label_province = _QXZ('Province'); +$label_postal_code = _QXZ('PostCode'); +$label_vendor_lead_code = _QXZ('Vendor ID'); +$label_gender = _QXZ('Gender'); +$label_phone_number = _QXZ('Phone'); +$label_phone_code = _QXZ('DialCode'); +$label_alt_phone = _QXZ('Alt. Phone'); +$label_security_phrase = _QXZ('Show'); +$label_email = _QXZ('Email'); +$label_comments = _QXZ('Comments'); $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); @@ -340,7 +341,7 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } @@ -352,7 +353,7 @@ echo "var required_statuses='$required_statuses';\n"; echo "var extra_statuses=\"$extra_statuses\";\n"; echo "\n"; echo "\n"; -echo "ViciDial Script"; +echo "<title>"._QXZ("ViciDial Script"); echo "\n"; ?> @@ -414,7 +415,7 @@ if ($process > 0) $affected_rows = mysqli_affected_rows($link); } - echo "
    Data Updated, Hanging up call, please wait

    \n"; + echo "
    "._QXZ("Data Updated, Hanging up call, please wait")."

    \n"; sleep(3); @@ -457,19 +458,19 @@ $URLsubmit = $URLarray[0]; - + - + - + @@ -563,7 +564,7 @@ $URLsubmit = $URLarray[0]; * - + @@ -581,13 +582,13 @@ $URLsubmit = $URLarray[0]; --> - + - + - + - @@ -680,16 +681,16 @@ o_cal.a_tpl.yearscroll = false; commented END put custom fields here --> - + - + - diff --git a/www/agc/vdc_script_notes.php b/www/agc/vdc_script_notes.php index 6c8ad70f..a444a86c 100644 --- a/www/agc/vdc_script_notes.php +++ b/www/agc/vdc_script_notes.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed open in the SCRIPT tab in the agent interface through # an IFRAME. It will create a new record for every SUBMIT @@ -15,10 +15,11 @@ # 130328-0020 - Converted ereg to preg functions # 130603-2203 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1037 - Changed to PHP mysqli functions +# 140810-2113 - Changed to use QXZ function for echoing text # -$version = '2.8-5'; -$build = '130802-1037'; +$version = '2.10-6'; +$build = '140810-2113'; require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -251,25 +252,25 @@ if ($DB > 0) } ### BEGIN find any custom field labels ### -$label_title = 'Title'; -$label_first_name = 'First'; -$label_middle_initial = 'MI'; -$label_last_name = 'Last'; -$label_address1 = 'Address1'; -$label_address2 = 'Address2'; -$label_address3 = 'Address3'; -$label_city = 'City'; -$label_state = 'State'; -$label_province = 'Province'; -$label_postal_code = 'PostCode'; -$label_vendor_lead_code = 'Vendor ID'; -$label_gender = 'Gender'; -$label_phone_number = 'Phone'; -$label_phone_code = 'DialCode'; -$label_alt_phone = 'Alt. Phone'; -$label_security_phrase = 'Show'; -$label_email = 'Email'; -$label_comments = 'Comments'; +$label_title = _QXZ('Title'); +$label_first_name = _QXZ('First'); +$label_middle_initial = _QXZ('MI'); +$label_last_name = _QXZ('Last'); +$label_address1 = _QXZ('Address1'); +$label_address2 = _QXZ('Address2'); +$label_address3 = _QXZ('Address3'); +$label_city = _QXZ('City'); +$label_state = _QXZ('State'); +$label_province = _QXZ('Province'); +$label_postal_code = _QXZ('PostCode'); +$label_vendor_lead_code = _QXZ('Vendor ID'); +$label_gender = _QXZ('Gender'); +$label_phone_number = _QXZ('Phone'); +$label_phone_code = _QXZ('DialCode'); +$label_alt_phone = _QXZ('Alt. Phone'); +$label_security_phrase = _QXZ('Show'); +$label_email = _QXZ('Email'); +$label_comments = _QXZ('Comments'); $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); @@ -308,14 +309,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } echo "\n"; echo "\n"; echo "\n"; -echo "Agent Notes"; +echo "<title>"._QXZ("ViciDial Notes"); echo "\n"; echo "\n"; echo "\n"; @@ -532,11 +533,11 @@ $URLsubmit = $URLarray[0]; --> - + - diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 7ec4d35f..0a8909d8 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -440,10 +440,11 @@ # 140630-0921 - Added the FSCREEN option to Wrapup message to allow for message only display # 140703-1658 - Several logging fixes, mostly related to manual dial calls # 140706-0932 - Added callback_time_24hour for callback setting screen +# 140811-1219 - Changed to use QXZ function for echoing text # -$version = '2.10-411c'; -$build = '140706-0932'; +$version = '2.10-412c'; +$build = '140811-1219'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=80; $one_mysql_log=0; @@ -505,7 +506,7 @@ $forever_stop=0; if ($force_logout) { - echo "You have now logged out. Thank you\n"; + echo _QXZ("You have now logged out. Thank you\n"); exit; } @@ -620,25 +621,25 @@ if (file_exists('options.php')) } ### BEGIN find any custom field labels ### -$label_title = ' Title'; -$label_first_name = 'First'; -$label_middle_initial = 'MI'; -$label_last_name = 'Last '; -$label_address1 = 'Address1'; -$label_address2 = 'Address2'; -$label_address3 = 'Address3'; -$label_city = 'City'; -$label_state = ' State'; -$label_province = 'Province'; -$label_postal_code = 'PostCode'; -$label_vendor_lead_code = 'Vendor ID'; -$label_gender = ' Gender'; -$label_phone_number = 'Phone'; -$label_phone_code = 'DialCode'; -$label_alt_phone = 'Alt. Phone'; -$label_security_phrase = 'Show'; -$label_email = 'Email'; -$label_comments = ' Comments'; +$label_title = _QXZ(' Title'); +$label_first_name = _QXZ('First'); +$label_middle_initial = _QXZ('MI'); +$label_last_name = _QXZ('Last '); +$label_address1 = _QXZ('Address1'); +$label_address2 = _QXZ('Address2'); +$label_address3 = _QXZ('Address3'); +$label_city = _QXZ('City'); +$label_state = _QXZ(' State'); +$label_province = _QXZ('Province'); +$label_postal_code = _QXZ('PostCode'); +$label_vendor_lead_code = _QXZ('Vendor ID'); +$label_gender = _QXZ(' Gender'); +$label_phone_number = _QXZ('Phone'); +$label_phone_code = _QXZ('DialCode'); +$label_alt_phone = _QXZ('Alt. Phone'); +$label_security_phrase = _QXZ('Show'); +$label_email = _QXZ('Email'); +$label_comments = _QXZ(' Comments'); $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); @@ -699,7 +700,7 @@ echo ' '; -echo "\n"; +echo "\n"; echo "\n"; if ($campaign_login_list > 0) @@ -734,7 +735,7 @@ if ($campaign_login_list > 0) else { echo "\n"; } } @@ -921,11 +922,11 @@ else if ($relogin == 'YES') { - echo "Agent web client: Re-Login\n"; + echo ""._QXZ("Agent web client: Re-Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "
      #     DATE/TIME     AGENT     LENGTH     STATUS     PHONE     CAMPAIGN     IN/OUT     ALT     HANGUP     "._QXZ("DATE/TIME")."     "._QXZ("AGENT")."     "._QXZ("LENGTH")."     "._QXZ("STATUS")."     "._QXZ("PHONE")."     "._QXZ("CAMPAIGN")."     "._QXZ("IN/OUT")."     "._QXZ("ALT")."     "._QXZ("HANGUP")."  
      FULL NAME     "._QXZ("FULL NAME")."  
    No calls found
    "._QXZ("No calls found")."
    Vendor ID:
    Title:
    : *
    Middle Initial:
    : *
    Province:
    : *Date of Birth:
    Alt. Phone: * *
    Email: * *
    Show: * *
    Comments:

    +


    Question:
    Answer:
    Disposition:
    "._QXZ("Disposition:")." -         PAUSE AGENT DIALING +        
    Please click SUBMIT to hangup and disposition the call,           * denotes required fields
    +
    ,           *
    Order ID:
    Appointment Date/Time: + - +" name=smt id=smt onClick="submit_form()">
    \n"; echo "\n"; echo "
    \n"; @@ -934,23 +935,23 @@ if ($relogin == 'YES') echo "\n"; echo "\n"; echo "


    "; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
    \"VICIdial\" Re-Login \"VICIdial\" "._QXZ("Re-Login")."
     
    Phone Login:
    "._QXZ("Phone Login:")."
    Phone Password:
    "._QXZ("Phone Password:")."
    User Login:
    "._QXZ("User Login")."
    User Password:
    "._QXZ("User Password:")."
    Campaign:
    "._QXZ("Campaign:")." $camp_form_code
      \n"; - echo "

    VERSION: $version       BUILD: $build
      \n"; + echo "

    "._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
    \n"; echo "\n\n"; echo "\n\n"; @@ -962,11 +963,11 @@ if ($user_login_first == 1) { if ( (strlen($VD_login)<1) or (strlen($VD_pass)<1) or (strlen($VD_campaign)<1) ) { - echo "Agent web client: Campaign Login\n"; + echo ""._QXZ("Agent web client: Campaign Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; @@ -976,21 +977,21 @@ if ($user_login_first == 1) echo "\n"; #echo "\n"; #echo "\n"; - echo "

    User Login

    "; + echo "

    "._QXZ("User Login")."

    "; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
    \"VICIdial\" Campaign Login \"VICIdial\" "._QXZ("Campaign Login")."
     
    User Login:
    "._QXZ("User Login")."
    User Password:
    "._QXZ("User Password:")."
    Campaign:
    "._QXZ("Campaign:")." $camp_form_code
      \n"; + echo "
      \n"; echo "

    VERSION: $version       BUILD: $build

    "._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
    \n"; echo "\n\n"; echo "\n\n"; @@ -1011,11 +1012,11 @@ if ($user_login_first == 1) if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) ) { - echo "Agent web client: Login\n"; + echo ""._QXZ("Agent web client: Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; @@ -1024,23 +1025,23 @@ if ($user_login_first == 1) echo "\n"; echo "\n"; echo "


    "; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
    \"VICIdial\" Login \"VICIdial\" "._QXZ("Login")."
     
    Phone Login:
    "._QXZ("Phone Login:")."
    Phone Password:
    "._QXZ("Phone Password:")."
    User Login:
    "._QXZ("User Login")." /
    User Password:
    "._QXZ("User Password:")."
    Campaign:
    "._QXZ("Campaign:")." $camp_form_code
    \"   \n"; + echo "
    \"   \n"; echo "

    VERSION: $version       BUILD: $build

    "._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
    \n"; echo "\n\n"; echo "\n\n"; @@ -1053,11 +1054,11 @@ if ($user_login_first == 1) if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) ) { - echo "Agent web client: Phone Login\n"; + echo ""._QXZ("Agent web client: Phone Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; @@ -1066,17 +1067,17 @@ if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) ) echo "\n"; echo "\n"; echo "


    "; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
    \"VICIdial\" phone login \"VICIdial\" "._QXZ("phone login")."
     
    Phone Login:
    "._QXZ("Phone Login:")."
    Phone Password:
    "._QXZ("Phone Password:")."
      \n"; + echo "
      \n"; echo "

    VERSION: $version       BUILD: $build

    "._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
    \n"; echo "\n\n"; echo "\n\n"; @@ -1220,7 +1221,7 @@ else if ( (strlen($last_agent_event)<2) or (preg_match('/LOGOUT/',$last_agent_event)) ) { $VDloginDISPLAY=1; - $VDdisplayMESSAGE = "YOU MUST LOG IN TO THE TIMECLOCK FIRST
    "; + $VDdisplayMESSAGE = _QXZ("YOU MUST LOG IN TO THE TIMECLOCK FIRST")."
    "; } } ### END - CHECK TO SEE IF AGENT IS LOGGED IN TO TIMECLOCK, IF NOT, OUTPUT ERROR @@ -1232,7 +1233,7 @@ else if ( (strlen($LOGgroup_shiftsSQL) < 3) and ($VU_shift_override_flag < 1) ) { $VDloginDISPLAY=1; - $VDdisplayMESSAGE = "ERROR: There are no Shifts enabled for your user group
    "; + $VDdisplayMESSAGE = _QXZ("ERROR: There are no Shifts enabled for your user group")."
    "; } else { @@ -1285,12 +1286,12 @@ else if ( ($shift_ok < 1) and ($VU_shift_override_flag < 1) ) { $VDloginDISPLAY=1; - $VDdisplayMESSAGE = "ERROR: You are not allowed to log in outside of your shift
    "; + $VDdisplayMESSAGE = _QXZ("ERROR: You are not allowed to log in outside of your shift")."
    "; } } if ( ($shift_ok < 1) and ($VU_shift_override_flag < 1) and ($VDloginDISPLAY > 0) ) { - $VDdisplayMESSAGE.= "

    MANAGER OVERRIDE:
    \n"; + $VDdisplayMESSAGE.= "

    "._QXZ("MANAGER OVERRIDE:")."
    \n"; $VDdisplayMESSAGE.= "
    \n"; $VDdisplayMESSAGE.= "\n"; $VDdisplayMESSAGE.= "\n"; @@ -1301,7 +1302,7 @@ else $VDdisplayMESSAGE.= "\n"; $VDdisplayMESSAGE.= "Manager Login:
    \n"; $VDdisplayMESSAGE.= "Manager Password:
    \n"; - $VDdisplayMESSAGE.= "
    \n"; + $VDdisplayMESSAGE.= "\n"; } } ### END - CHECK TO SEE IF SHIFT ENFORCEMENT IS ENABLED AND AGENT IS OUTSIDE OF THEIR SHIFTS, IF SO, OUTPUT ERROR @@ -1324,15 +1325,15 @@ else if ( (!preg_match("/\s$VD_campaign\s/i",$LOGallowed_campaigns)) and (!preg_match("/ALL-CAMPAIGNS/i",$LOGallowed_campaigns)) ) { - echo "Agent web client: Campaign Login\n"; + echo ""._QXZ("Agent web client: Campaign Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; - echo "Sorry, you are not allowed to login to this campaign: $VD_campaign\n"; + echo ""._QXZ("Sorry, you are not allowed to login to this campaign:")." $VD_campaign\n"; echo "
    \n"; echo "\n"; echo "\n"; @@ -1342,7 +1343,7 @@ else echo "Login: \n
    "; echo "Password:
    \n"; echo "Campaign: $camp_form_code
    \n"; - echo "   \n"; + echo "   \n"; echo "\n"; echo "
    \n\n"; echo "\n\n"; @@ -2046,7 +2047,7 @@ else else { $VDloginDISPLAY=1; - $VDdisplayMESSAGE = "Campaign not active, please try again
    "; + $VDdisplayMESSAGE = _QXZ("Campaign not active, please try again")."
    "; } } else @@ -2058,28 +2059,28 @@ else } $VDloginDISPLAY=1; - $VDdisplayMESSAGE = "Login incorrect, please try again
    "; + $VDdisplayMESSAGE = _QXZ("Login incorrect, please try again")."
    "; if ($auth_message == 'LOCK') - {$VDdisplayMESSAGE = "Too many login attempts, try again in 15 minutes
    ";} + {$VDdisplayMESSAGE = _QXZ("Too many login attempts, try again in 15 minutes")."
    ";} if ($auth_message == 'ERRNETWORK') - {$VDdisplayMESSAGE = "Too many network errors, please contact your administrator
    ";} + {$VDdisplayMESSAGE = _QXZ("Too many network errors, please contact your administrator")."
    ";} if ($auth_message == 'ERRSERVERS') - {$VDdisplayMESSAGE = "No available servers, please contact your administrator
    ";} + {$VDdisplayMESSAGE = _QXZ("No available servers, please contact your administrator")."
    ";} if ($auth_message == 'ERRPHONES') - {$VDdisplayMESSAGE = "No available phones, please contact your administrator
    ";} + {$VDdisplayMESSAGE = _QXZ("No available phones, please contact your administrator")."
    ";} if ($auth_message == 'ERRDUPLICATE') - {$VDdisplayMESSAGE = "You are already logged in, please log out of your other session first
    ";} + {$VDdisplayMESSAGE = _QXZ("You are already logged in, please log out of your other session first")."
    ";} if ($auth_message == 'ERRAGENTS') - {$VDdisplayMESSAGE = "Too many agents logged in, please contact your administrator
    ";} + {$VDdisplayMESSAGE = _QXZ("Too many agents logged in, please contact your administrator")."
    ";} } } if ($VDloginDISPLAY) { - echo "Agent web client: Campaign Login\n"; + echo ""._QXZ("Agent web client: Campaign Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; @@ -2091,19 +2092,19 @@ else echo "\n"; echo "

    $VDdisplayMESSAGE

    "; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; echo "
    \"VICIdial\" Campaign Login \"VICIdial\" "._QXZ("Campaign Login")."
     
    User Login:
    "._QXZ("User Login")."
    User Password:
    "._QXZ("User Password:")."
    Campaign:
    "._QXZ("Campaign:")." $camp_form_code
      \n"; + echo "
      \n"; echo "

    VERSION: $version       BUILD: $build

    "._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
    \n"; echo "\n\n"; echo "\n\n"; @@ -2169,11 +2170,11 @@ else $authphone=$row[0]; if (!$authphone) { - echo "Agent web client: Phone Login Error\n"; + echo ""._QXZ("Agent web client: Phone Login Error")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; @@ -2185,16 +2186,16 @@ else echo "\n"; echo "\n"; echo "


    "; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; - echo "\n"; - echo ""; + echo "\n"; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "
    \"VICIdial\" Login Error\"VICIdial\" "._QXZ("Login Error")."
     
    Sorry, your phone login and password are not active in this system, please try again:
     
    Phone Login:
     
    "._QXZ("Sorry, your phone login and password are not active in this system, please try again:")."
     
    "._QXZ("Phone Login:")."
    Phone Password:
    "._QXZ("Phone Password:")."

    VERSION: $version       BUILD: $build

    "._QXZ("VERSION:")." $version       "._QXZ("BUILD:")." $build
    \n"; echo "\n\n"; echo "\n\n"; @@ -2969,25 +2970,25 @@ else } else { - echo "Agent web client: Campaign Login\n"; + echo ""._QXZ("Agent web client: Campaign Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; - echo "Sorry, there are no leads in the hopper for this campaign\n"; + echo ""._QXZ("Sorry, there are no leads in the hopper for this campaign")."\n"; echo "
    \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "Login: \n
    "; - echo "Password:
    \n"; - echo "Campaign: $camp_form_code
    \n"; - echo "   \n"; + echo _QXZ("Login:")." \n
    "; + echo _QXZ("Password:")."
    \n"; + echo _QXZ("Campaign:")." $camp_form_code
    \n"; + echo "   \n"; echo "\n"; echo "
    \n\n"; echo "\n\n"; @@ -2996,25 +2997,25 @@ else } if (strlen($session_id) < 1) { - echo "Agent web client: Campaign Login\n"; + echo ""._QXZ("Agent web client: Campaign Login")."\n"; echo "\n"; echo "\n"; if ($hide_timeclock_link < 1) - {echo " Timeclock
    \n";} + {echo " "._QXZ("Timeclock")."
    \n";} echo "\n"; echo "\n"; echo "
    \n"; - echo "Sorry, there are no available sessions\n"; + echo ""._QXZ("Sorry, there are no available sessions")."\n"; echo "
    \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "Login: \n
    "; - echo "Password:
    \n"; - echo "Campaign: $camp_form_code
    \n"; - echo "   \n"; + echo _QXZ("Login:")." \n
    "; + echo _QXZ("Password:")."
    \n"; + echo _QXZ("Campaign:")." $camp_form_code
    \n"; + echo "   \n"; echo "\n"; echo "
    \n\n"; echo "\n\n"; @@ -3901,68 +3902,68 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var regWMS = new RegExp("WUSCRIPT","g"); var FSCREENup=0; var HKFSCREENup=0; - var DiaLControl_auto_HTML = "\"\"Resume\""; - var DiaLControl_auto_HTML_ready = "\"\"Resume\""; - var DiaLControl_auto_HTML_OFF = "\"\"Resume\""; - var DiaLControl_manual_HTML = "\"Dial"; + var DiaLControl_auto_HTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />"; + var DiaLControl_auto_HTML_ready = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />"; + var DiaLControl_auto_HTML_OFF = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />"; + var DiaLControl_manual_HTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; var image_loading = new Image(); - image_loading.src="./images/loading.gif"; + image_loading.src="./images/"; var image_blank = new Image(); - image_blank.src="./images/blank.gif"; + image_blank.src="./images/"; var image_livecall_OFF = new Image(); - image_livecall_OFF.src="./images/agc_live_call_OFF.gif"; + image_livecall_OFF.src="./images/"; var image_livecall_ON = new Image(); - image_livecall_ON.src="./images/agc_live_call_ON.gif"; + image_livecall_ON.src="./images/"; var image_livecall_DEAD = new Image(); - image_livecall_DEAD.src="./images/agc_live_call_DEAD.gif"; + image_livecall_DEAD.src="./images/"; var image_LB_dialnextnumber = new Image(); - image_LB_dialnextnumber.src="./images/vdc_LB_dialnextnumber.gif"; + image_LB_dialnextnumber.src="./images/"; var image_LB_hangupcustomer = new Image(); - image_LB_hangupcustomer.src="./images/vdc_LB_hangupcustomer.gif"; + image_LB_hangupcustomer.src="./images/"; var image_LB_transferconf = new Image(); - image_LB_transferconf.src="./images/vdc_LB_transferconf.gif"; + image_LB_transferconf.src="./images/"; var image_LB_grabparkedcall = new Image(); - image_LB_grabparkedcall.src="./images/vdc_LB_grabparkedcall.gif"; + image_LB_grabparkedcall.src="./images/"; var image_LB_parkcall = new Image(); - image_LB_parkcall.src="./images/vdc_LB_parkcall.gif"; + image_LB_parkcall.src="./images/"; var image_LB_webform = new Image(); - image_LB_webform.src="./images/vdc_LB_webform.gif"; + image_LB_webform.src="./images/"; var image_LB_stoprecording = new Image(); - image_LB_stoprecording.src="./images/vdc_LB_stoprecording.gif"; + image_LB_stoprecording.src="./images/"; var image_LB_startrecording = new Image(); - image_LB_startrecording.src="./images/vdc_LB_startrecording.gif"; + image_LB_startrecording.src="./images/"; var image_LB_pause = new Image(); - image_LB_pause.src="./images/vdc_LB_pause.gif"; + image_LB_pause.src="./images/"; var image_LB_resume = new Image(); - image_LB_resume.src="./images/vdc_LB_resume.gif"; + image_LB_resume.src="./images/"; var image_LB_senddtmf = new Image(); - image_LB_senddtmf.src="./images/vdc_LB_senddtmf.gif"; + image_LB_senddtmf.src="./images/"; var image_LB_dialnextnumber_OFF = new Image(); - image_LB_dialnextnumber_OFF.src="./images/vdc_LB_dialnextnumber_OFF.gif"; + image_LB_dialnextnumber_OFF.src="./images/"; var image_LB_hangupcustomer_OFF = new Image(); - image_LB_hangupcustomer_OFF.src="./images/vdc_LB_hangupcustomer_OFF.gif"; + image_LB_hangupcustomer_OFF.src="./images/"; var image_LB_transferconf_OFF = new Image(); - image_LB_transferconf_OFF.src="./images/vdc_LB_transferconf_OFF.gif"; + image_LB_transferconf_OFF.src="./images/"; var image_LB_grabparkedcall_OFF = new Image(); - image_LB_grabparkedcall_OFF.src="./images/vdc_LB_grabparkedcall_OFF.gif"; + image_LB_grabparkedcall_OFF.src="./images/"; var image_LB_parkcall_OFF = new Image(); - image_LB_parkcall_OFF.src="./images/vdc_LB_parkcall_OFF.gif"; + image_LB_parkcall_OFF.src="./images/"; var image_LB_webform_OFF = new Image(); - image_LB_webform_OFF.src="./images/vdc_LB_webform_OFF.gif"; + image_LB_webform_OFF.src="./images/"; var image_LB_stoprecording_OFF = new Image(); - image_LB_stoprecording_OFF.src="./images/vdc_LB_stoprecording_OFF.gif"; + image_LB_stoprecording_OFF.src="./images/"; var image_LB_startrecording_OFF = new Image(); - image_LB_startrecording_OFF.src="./images/vdc_LB_startrecording_OFF.gif"; + image_LB_startrecording_OFF.src="./images/"; var image_LB_pause_OFF = new Image(); - image_LB_pause_OFF.src="./images/vdc_LB_pause_OFF.gif"; + image_LB_pause_OFF.src="./images/"; var image_LB_resume_OFF = new Image(); - image_LB_resume_OFF.src="./images/vdc_LB_resume_OFF.gif"; + image_LB_resume_OFF.src="./images/"; var image_LB_senddtmf_OFF = new Image(); - image_LB_senddtmf_OFF.src="./images/vdc_LB_senddtmf_OFF.gif"; + image_LB_senddtmf_OFF.src="./images/"; var image_LB_ivrgrabparkedcall = new Image(); - image_LB_ivrgrabparkedcall.src="./images/vdc_LB_grabivrparkcall.gif"; + image_LB_ivrgrabparkedcall.src="./images/"; var image_LB_ivrparkcall = new Image(); - image_LB_ivrparkcall.src="./images/vdc_LB_ivrparkcall.gif"; + image_LB_ivrparkcall.src="./images/"; 0) { @@ -4080,11 +4081,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if (taskdirection=='MUTING') { - document.getElementById("AgentMuteSpan").innerHTML = ""; + document.getElementById("AgentMuteSpan").innerHTML = "\" border=\"0\" />"; } else { - document.getElementById("AgentMuteSpan").innerHTML = ""; + document.getElementById("AgentMuteSpan").innerHTML = "\" border=\"0\" />"; } } @@ -4257,9 +4258,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} agent_dialed_number='1'; agent_dialed_type='XFER_3WAY'; - document.getElementById("DialWithCustomer").innerHTML ="\"Dial"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Park"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; var manual_number = document.vicidial_form.xfernumber.value; var manual_number_hidden = document.vicidial_form.xfernumhidden.value; @@ -4737,7 +4738,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (PausENotifYCounTer > 10) { - alert_box('Your session has been paused'); + alert_box(''); AutoDial_ReSume_PauSe('VDADpause'); PausENotifYCounTer=0; } @@ -4987,7 +4988,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (APIManualDialQueue != APIManualDialQueue_last) { APIManualDialQueue_last = APIManualDialQueue; - document.getElementById("ManualQueueNotice").innerHTML = "Manual Queue: " + APIManualDialQueue + "
    "; + document.getElementById("ManualQueueNotice").innerHTML = " " + APIManualDialQueue + "
    "; } if ( (APIDiaL.length > 9) && (WaitingForNextStep == '0') && (AllowManualQueueCalls == '1') && (check_n > 2) ) { @@ -5001,7 +5002,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (APIDiaL_array_detail[0] == 'MANUALNEXT') // trigger Dial Next Number button { if (APIDiaL_array_detail[4] == 'YES') // focus on vicidial agent screen - {window.focus(); alert_box("Placing call to next number");} + {window.focus(); alert_box("");} if (APIDiaL_array_detail[3] == 'YES') {document.vicidial_form.LeadPreview.checked=true;} ManualDialNext('','','','','','0'); @@ -5104,7 +5105,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var LMAcontent_match=0; agentphonelive=0; var conv_start=-1; - var live_conf_HTML = "LIVE CALLS IN YOUR SESSION:
    px\">\">"; + var live_conf_HTML = "
    #REMOTE CHANNELHANGUPVOLUME
    px\">\">"; if ( (LMAcount > live_conf_calls) || (LMAcount < live_conf_calls) || (LMAforce > 0)) { LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; @@ -5144,17 +5145,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (channelfieldA.match(regRNnolink)) { // do not show hangup or volume control links for recording channels - live_conf_HTML = live_conf_HTML + ""; + live_conf_HTML = live_conf_HTML + ""; } else { if (volumecontrol_active!=1) { - live_conf_HTML = live_conf_HTML + ""; + live_conf_HTML = live_conf_HTML + ""; } else { - live_conf_HTML = live_conf_HTML + ""; + live_conf_HTML = live_conf_HTML + ""; } } } @@ -5181,7 +5182,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { agentchannel = channelfieldA; - document.getElementById("AgentMuteSpan").innerHTML = ""; + document.getElementById("AgentMuteSpan").innerHTML = "\" border=\"0\" />"; } } else @@ -5190,7 +5191,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { agentchannel = channelfieldA; - document.getElementById("AgentMuteSpan").innerHTML = ""; + document.getElementById("AgentMuteSpan").innerHTML = "\" border=\"0\" />"; } } // document.getElementById("agentchannelSPAN").innerHTML = agentchannel; @@ -5363,11 +5364,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // filename = filedate + "_" + user_abb; var query_recording_exten = recording_exten; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; - var conf_rec_start_html = "\"Stop"; + var conf_rec_start_html = "\" border=\"0\" alt=\"Stop Recording\" />"; if (LIVE_campaign_recording == 'ALLFORCE') { - document.getElementById("RecorDControl").innerHTML = "\"Start"; + document.getElementById("RecorDControl").innerHTML = "\" border=\"0\" alt=\"Start Recording\" />"; } else { @@ -5379,10 +5380,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) filename = taskconffile; var query_recording_exten = session_id; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; - var conf_rec_start_html = "\"Start"; + var conf_rec_start_html = "\" border=\"0\" alt=\"Start Recording\" />"; if (LIVE_campaign_recording == 'ALLFORCE') { - document.getElementById("RecorDControl").innerHTML = "\"Start"; + document.getElementById("RecorDControl").innerHTML = "\" border=\"0\" alt=\"Start Recording\" />"; } else { @@ -5443,7 +5444,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var ADvalue = document.vicidial_form.xfernumber.value; if ( ( (taskvar == 'XfeRLOCAL') || (taskvar == 'XfeRINTERNAL') ) && (XfeR_GrouP.match(/AGENTDIRECT/i)) && (ADvalue.length < 2) ) { - alert_box("YOU MUST SELECT AN AGENT TO TRANSFER TO WHEN USING AGENTDIRECT"); + alert_box(""); } else { @@ -5542,7 +5543,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { xferredirect_query=''; taskvar = 'NOTHING'; - alert_box("Transfer number must have at least 1 digit:" + blindxferdialstring); + alert_box("" + blindxferdialstring); } else { @@ -5622,7 +5623,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (taskdebugnote == 'FIRST') { - document.getElementById("DispoSelectHAspan").innerHTML = "Leave 3Way Call Again"; + document.getElementById("DispoSelectHAspan").innerHTML = ""; } } if (taskvar == 'ParK') @@ -5638,10 +5639,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var parkedby = protocol + "/" + extension; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectToPark&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + park_on_extension + "&ext_context=" + ext_context + "&ext_priority=1&extenName=park&parkedby=" + parkedby + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\"Grab"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Grab Parked Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\"Grab"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"Grab IVR Parked Call\" />"; } customerparked=1; customerparkedcounter=0; @@ -5665,10 +5666,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectFromPark&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + dest_dialstring + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\"Park"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\"IVR"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } customerparked=0; customerparkedcounter=0; @@ -5686,14 +5687,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var parkedby = protocol + "/" + extension; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectToParkIVR&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + park_on_extension + "&ext_context=" + ext_context + "&ext_priority=1&extenName=park&parkedby=" + parkedby + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\"Grab"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Grab Parked Call\" />"; if (ivr_park_call=='ENABLED_PARK_ONLY') { - document.getElementById("ivrParkControl").innerHTML ="\"Grab"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"Grab IVR Parked Call\" />"; } if (ivr_park_call=='ENABLED') { - document.getElementById("ivrParkControl").innerHTML ="\"Grab"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"Grab IVR Parked Call\" />"; } customerparked=1; customerparkedcounter=0; @@ -5717,10 +5718,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectFromParkIVR&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + dest_dialstring + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\"Park"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\"IVR"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } customerparked=0; customerparkedcounter=0; @@ -5906,7 +5907,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) alt_dial_active = 0; alt_dial_status_display = 0; open_dispo_screen=1; - document.getElementById("MainStatuSSpan").innerHTML = "Dial Next Number"; + document.getElementById("MainStatuSSpan").innerHTML = ''; } // ################################################################################ // Insert or update the vicidial_log entry for a customer call @@ -5930,8 +5931,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (document.vicidial_form.DiaLAltPhonE.checked==true) { var status_display_content=''; - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} alt_num_status = 1; reselect_alt_dial = 1; @@ -5942,7 +5943,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) timer_alt_count=timer_alt_seconds; timer_alt_trigger=1; } - var man_status = "Dial Alt Phone Number: MAIN PHONE or ALT PHONE or ADDRESS3 or FINISH LEAD" + status_display_content; + var man_status = "" + status_display_content; document.getElementById("MainStatuSSpan").innerHTML = man_status; } } @@ -6005,10 +6006,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // alert("VICIDIAL Call log entered:\n" + document.vicidial_form.uniqueid.value); if ( (taskMDstage != "start") && (VDstop_rec_after_each_call == 1) ) { - var conf_rec_start_html = "\"Start"; + var conf_rec_start_html = "\" border=\"0\" alt=\"Start Recording\" />"; if ( (LIVE_campaign_recording == 'NEVER') || (LIVE_campaign_recording == 'ALLFORCE') ) { - document.getElementById("RecorDControl").innerHTML = "\"Start"; + document.getElementById("RecorDControl").innerHTML = "\" border=\"0\" alt=\"Start Recording\" />"; } else {document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;} @@ -6076,7 +6077,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { // alert(xmlhttp.responseText); var DLcounT = xmlhttp.responseText; - document.getElementById("dialableleadsspan").innerHTML ="Dialable Leads:
    " + DLcounT; + document.getElementById("dialableleadsspan").innerHTML ="
    " + DLcounT; } } @@ -6162,7 +6163,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } } } - CBlinkCONTENT ="" + CBpre + '' + CBprint + '' + " ACTIVE CALLBACKS" + CBpost + ""; + CBlinkCONTENT ="" + CBpre + '' + CBprint + '' + " " + CBpost + ""; // document.getElementById("debugbottomspan").innerHTML = "
    CBlinkdebug " + CBlinkCONTENT + "
    "; document.getElementById("CBstatusSpan").innerHTML = CBlinkCONTENT; } @@ -6186,7 +6187,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else { move_on=0; - alert_box("YOU MUST BE PAUSED TO CHECK CALLBACKS IN AUTO-DIAL MODE"); + alert_box(""); } } if (move_on == 1) @@ -6231,7 +6232,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var CB_calls = all_CBs_array[0]; var loop_ct=0; var conv_start=0; - var CB_HTML = "
    #
    " + display_ct + "" + channelfieldA + "recording
    " + display_ct + "" + channelfieldA + "
    " + display_ct + "" + channelfieldA + "HANGUP
    " + display_ct + "" + channelfieldA + "
    " + display_ct + "" + channelfieldA + "HANGUP          
    " + display_ct + "" + channelfieldA + "\" border=\"0\" />   \" border=\"0\" />       \" border=\"0\" />   \" border=\"0\" />
    px\">\">" + var CB_HTML = "
    # CALLBACK DATE/TIME NUMBER INFO FULL NAME STATUS CAMPAIGN LAST CALL DATE/TIME DIAL ALT
    px\">\">" while (loop_ct < CB_calls) { loop_ct++; @@ -6260,11 +6261,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (CB_dialable > 0) { - CB_HTML = CB_HTML + ""; + CB_HTML = CB_HTML + ""; } else { - CB_HTML = CB_HTML + ""; + CB_HTML = CB_HTML + ""; } } CB_HTML = CB_HTML + "
    #
    " + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_comments_ten + " - INFO" + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + " DIAL ALT 
    " + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_comments_ten + " - " + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + "   
    " + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_comments_ten + " - INFO" + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + " NON-DIALABLE 
    " + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_comments_ten + " - INFO" + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + "  
    "; @@ -6342,7 +6343,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (waiting_on_dispo > 0) { - alert_box("System Delay, Please try again
    code:" + agent_log_id + " - " + waiting_on_dispo + ""); + alert_box("
    code:" + agent_log_id + " - " + waiting_on_dispo + ""); } else { @@ -6389,7 +6390,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else { move_on=0; - alert_box("YOU MUST BE PAUSED TO MANUAL DIAL A NEW LEAD IN AUTO-DIAL MODE"); + alert_box(""); } } if (move_on == 1) @@ -6426,18 +6427,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (agent_allow_group_alias == 'Y') { - document.getElementById("ManuaLDiaLGrouPSelecteD").innerHTML = "Group Alias: " + active_group_alias + ""; - document.getElementById("ManuaLDiaLGrouP").innerHTML = "Click Here to Choose a Group Alias"; + document.getElementById("ManuaLDiaLGrouPSelecteD").innerHTML = " " + active_group_alias + ""; + document.getElementById("ManuaLDiaLGrouP").innerHTML = ""; } if (in_group_dial_display > 0) { - document.getElementById("ManuaLDiaLInGrouPSelecteD").innerHTML = "Dial In-Group: " + active_ingroup_dial + ""; - document.getElementById("ManuaLDiaLInGrouP").innerHTML = "Click Here to Choose a Dial In-Group"; + document.getElementById("ManuaLDiaLInGrouPSelecteD").innerHTML = " " + active_ingroup_dial + ""; + document.getElementById("ManuaLDiaLInGrouP").innerHTML = ""; } if ( (in_group_dial == 'BOTH') || (in_group_dial == 'NO_DIAL') ) { nocall_dial_flag = 'DISABLED'; - document.getElementById("NoDiaLSelecteD").innerHTML = "No-Call Dial: " + nocall_dial_flag + "     Click Here to Activate"; + document.getElementById("NoDiaLSelecteD").innerHTML = " " + nocall_dial_flag + "     "; } showDiv('NeWManuaLDiaLBox'); @@ -6666,12 +6667,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (CBentry_time.length > 2) { - document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; + document.getElementById("CusTInfOSpaN").innerHTML = " "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; - document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; - document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; - document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; - document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
    " + CBcomments; + document.getElementById("CBcommentsBoxA").innerHTML = " " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = " " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = " " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "
    " + CBcomments; showDiv('CBcommentsBox'); } @@ -6680,7 +6681,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -6710,7 +6711,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } // Build transfer pull-down list @@ -6763,11 +6764,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) TEMP_VDIC_web_form_address_two = URLDecode(VDIC_web_form_address_two,'YES','DEFAULT','2'); } - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) ) @@ -6846,7 +6847,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (waiting_on_dispo > 0) { - alert_box("System Delay, Please try again
    code:" + agent_log_id + " - " + waiting_on_dispo + ""); + alert_box("
    " + agent_log_id + " - " + waiting_on_dispo + ""); } else { @@ -6938,13 +6939,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if ( (MDDiaLCodEform.length < 1) || (MDPhonENumbeRform.length < 5) ) { - alert_box("YOU MUST ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL"); + alert_box(""); } else { if (waiting_on_dispo > 0) { - alert_box("System Delay, Please try again
    code:" + agent_log_id + " - " + waiting_on_dispo + ""); + alert_box("
    " + agent_log_id + " - " + waiting_on_dispo + ""); } else { @@ -6976,12 +6977,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (nocall_dial_flag == 'DISABLED') { nocall_dial_flag = 'ENABLED'; - document.getElementById("NoDiaLSelecteD").innerHTML = "No-Call Dial: " + nocall_dial_flag + "     Click Here to Deactivate"; + document.getElementById("NoDiaLSelecteD").innerHTML = " " + nocall_dial_flag + "     "; } else { nocall_dial_flag = 'DISABLED'; - document.getElementById("NoDiaLSelecteD").innerHTML = "No-Call Dial: " + nocall_dial_flag + "     Click Here to Activate"; + document.getElementById("NoDiaLSelecteD").innerHTML = " " + nocall_dial_flag + "     "; } } @@ -7049,12 +7050,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (alt_dial_status_display=='0') { var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + CIDcheck;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} // alert(document.getElementById("MainStatuSSpan").innerHTML); - document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " " + status_display_content + "   Waiting for Ring... " + MD_ring_secondS + " seconds"; + document.getElementById("MainStatuSSpan").innerHTML = " " + status_display_number + " " + status_display_content + "   " + MD_ring_secondS + " "; // alert("channel not found yet:\n" + campaign); } } @@ -7070,7 +7071,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { var XDerrorDesc = MDlookResponse_array[3]; var XDerrorDescSIP = MDlookResponse_array[4]; - var DiaLAlerTMessagE = "Call Rejected: " + XDchannel + "\n" + XDerrorDesc + "\n" + XDerrorDescSIP; + var DiaLAlerTMessagE = " " + XDchannel + "\n" + XDerrorDesc + "\n" + XDerrorDescSIP; TimerActionRun("DiaLAlerT",DiaLAlerTMessagE); } if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) @@ -7093,21 +7094,21 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (hide_xfer_number_to_dial=='ENABLED') {called3rdparty=' ';} var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + CIDcheck;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Called 3rd party: " + called3rdparty + " " + status_display_content; + document.getElementById("MainStatuSSpan").innerHTML = " " + called3rdparty + " " + status_display_content; - document.getElementById("Leave3WayCall").innerHTML ="\"LEAVE"; + document.getElementById("Leave3WayCall").innerHTML ="\" border=\"0\" alt=\"LEAVE 3-WAY CALL\" style=\"vertical-align:middle\" />"; - document.getElementById("DialWithCustomer").innerHTML ="\"Dial"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Park"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupXferLine").innerHTML ="\"Hangup"; + document.getElementById("HangupXferLine").innerHTML ="\" border=\"0\" alt=\"Hangup Xfer Line\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupBothLines").innerHTML ="\"Hangup"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; xferchannellive=1; XDcheck = ''; @@ -7123,7 +7124,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { var MDerrorDesc = MDlookResponse_array[3]; var MDerrorDescSIP = MDlookResponse_array[4]; - var DiaLAlerTMessagE = "Call Rejected: " + MDchannel + "\n" + MDerrorDesc + "\n" + MDerrorDescSIP; + var DiaLAlerTMessagE = " " + MDchannel + "\n" + MDerrorDesc + "\n" + MDerrorDescSIP; TimerActionRun("DiaLAlerT",DiaLAlerTMessagE); } if ( (MDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) @@ -7149,30 +7150,30 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var dispnum = lead_dial_number; var status_display_number = phone_number_format(dispnum); var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + CIDcheck;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Called: " + status_display_number + " " + status_display_content + "  "; + document.getElementById("MainStatuSSpan").innerHTML = " " + status_display_number + " " + status_display_content + "  "; - document.getElementById("ParkControl").innerHTML ="\"Park"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\"IVR"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\"Hangup"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; - document.getElementById("XferControl").innerHTML = "\"Transfer"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; - document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; - document.getElementById("VolumeUpSpan").innerHTML = ""; - document.getElementById("VolumeDownSpan").innerHTML = ""; + document.getElementById("VolumeUpSpan").innerHTML = "\" border=\"0\">"; + document.getElementById("VolumeDownSpan").innerHTML = "\" border=\"0\">"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { @@ -7180,7 +7181,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -7211,12 +7212,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) { - document.getElementById("CustomXfer").innerHTML = "\"Custom"; + document.getElementById("CustomXfer").innerHTML = "\" border=\"0\" alt=\"Custom Transfer\" />"; } if (call_requeue_button > 0) @@ -7225,11 +7226,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var regCRB = new RegExp("AGENTDIRECT","ig"); if ( (CloserSelectChoices.match(regCRB)) || (VU_closer_campaigns.match(regCRB)) ) { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } else { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } } @@ -7267,8 +7268,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (taskCheckOR == 'YES') { - document.getElementById("DialWithCustomer").innerHTML ="\"Dial"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Park"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; } } } @@ -7455,10 +7456,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) TEMP_VDIC_web_form_address_two = URLDecode(VDIC_web_form_address_two,'YES','DEFAULT','2'); } - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } } else @@ -7478,7 +7479,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) UpdatESettingS(); if (waiting_on_dispo > 0) { - alert_box("System Delay, Please try again
    code:" + agent_log_id + " - " + waiting_on_dispo + ""); + alert_box("
    " + agent_log_id + " - " + waiting_on_dispo + ""); } else { @@ -7498,13 +7499,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else {auto_dial_level=starting_dial_level;} - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { if (active_ingroup_dial.length < 1) { - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } } var manual_dial_only_type_flag = ''; @@ -7525,18 +7526,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (alt_phone_dialing == 1) { - var man_status = "Preview the Lead then DIAL LEAD or SKIP LEAD           ALT PHONE or ADDRESS3"; + var man_status = "Preview the Lead then or           or "; if (manual_preview_dial=='PREVIEW_ONLY') { - var man_status = "Preview the Lead then DIAL LEAD           ALT PHONE or ADDRESS3"; + var man_status = "Preview the Lead then           or "; } } else { - var man_status = "Preview the Lead then DIAL LEAD or SKIP LEAD"; + var man_status = "Preview the Lead then or "; if (manual_preview_dial=='PREVIEW_ONLY') { - var man_status = "Preview the Lead then DIAL LEAD"; + var man_status = " "; } } } @@ -7544,7 +7545,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { reselect_preview_dial = 0; var man_preview = 'NO'; - var man_status = "Waiting for Ring..."; + var man_status = ""; } var xmlhttp=false; @@ -7623,19 +7624,19 @@ function set_length(SLnumber,SLlength_goal,SLdirection) CalLBacKsCounTCheck(); if (MDnextCID.match(regMNCvar)) - {alert_box("No more leads in the hopper for campaign:\n" + campaign); alert_displayed=1;} + {alert_box("\n" + campaign); alert_displayed=1;} if (MDnextCID.match(regMDFvarDNC)) - {alert_box("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;} + {alert_box("\n" + mdnPhonENumbeR); alert_displayed=1;} if (MDnextCID.match(regMDFvarCAMP)) - {alert_box("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;} + {alert_box("\n" + mdnPhonENumbeR); alert_displayed=1;} if (MDnextCID.match(regMDFvarTIME)) - {alert_box("This phone number is outside of the local call time:\n" + mdnPhonENumbeR); alert_displayed=1;} + {alert_box("\n" + mdnPhonENumbeR); alert_displayed=1;} if (alert_displayed==0) - {alert_box("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;} + {alert_box("\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;} if (starting_dial_level == 0) { - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -7643,7 +7644,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -7738,11 +7739,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var dispnum = dialed_number; var status_display_number = phone_number_format(dispnum); var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + MDnextCID;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + MDnextCID;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " " + status_display_content + "   " + man_status; + document.getElementById("MainStatuSSpan").innerHTML = " " + status_display_number + " " + status_display_content + "   " + man_status; if ( (dialed_label.length < 2) || (dialed_label=='NONE') ) {dialed_label='MAIN';} if (hide_gender > 0) @@ -7788,20 +7789,20 @@ function set_length(SLnumber,SLlength_goal,SLdirection) TEMP_VDIC_web_form_address_two = URLDecode(VDIC_web_form_address_two,'YES','DEFAULT','2'); } - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } if (CBentry_time.length > 2) { - document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; + document.getElementById("CusTInfOSpaN").innerHTML = " "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; - document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; - document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; - document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; - document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
    " + CBcomments; + document.getElementById("CBcommentsBoxA").innerHTML = " " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = " " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = " " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "
    " + CBcomments; showDiv('CBcommentsBox'); } @@ -7817,7 +7818,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) MD_channel_look=1; custchannellive=1; - document.getElementById("HangupControl").innerHTML = "\"Hangup"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -7916,7 +7917,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (manual_dial_in_progress==1) { - alert_box('YOU CANNOT SKIP A CALLBACK OR MANUAL DIAL, YOU MUST DIAL THE LEAD'); + alert_box(''); } else { @@ -7925,11 +7926,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } var xmlhttp=false; @@ -7970,7 +7971,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) MDSnextCID = MDSnextResponse_array[0]; if (MDSnextCID == "LEAD NOT REVERTED") { - alert_box("Lead was not reverted, there was an error:\n" + MDSnextResponse); + alert_box("\n" + MDSnextResponse); } else { @@ -8025,15 +8026,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection) hideDiv('post_phone_time_diff_span'); } - document.getElementById("MainStatuSSpan").innerHTML = " Lead skipped, go on to next lead"; + document.getElementById("MainStatuSSpan").innerHTML = " "; if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } } } @@ -8095,15 +8096,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } } if (dialed_label == 'ALT') - {document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: ALT ";} + {document.getElementById("CusTInfOSpaN").innerHTML = " ";} if (dialed_label == 'ADDR3') - {document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: ADDRESS3 ";} + {document.getElementById("CusTInfOSpaN").innerHTML = " ";} last_mdtype = dialed_label; var REGalt_dial = new RegExp("X","g"); if (dialed_label.match(REGalt_dial)) { - document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: " + dialed_label + ""; - document.getElementById("EAcommentsBoxA").innerHTML = "Phone Code and Number: " + EAphone_code + " " + EAphone_number; + document.getElementById("CusTInfOSpaN").innerHTML = " " + dialed_label + ""; + document.getElementById("EAcommentsBoxA").innerHTML = " " + EAphone_code + " " + EAphone_number; var EAactive_link = ''; if (EAalt_phone_active == 'Y') @@ -8111,9 +8112,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else {EAactive_link = "Change this phone number to ACTIVE";} - document.getElementById("EAcommentsBoxB").innerHTML = "Active: " + EAalt_phone_active + "
    " + EAactive_link; - document.getElementById("EAcommentsBoxC").innerHTML = "Alt Count: " + EAalt_phone_count; - document.getElementById("EAcommentsBoxD").innerHTML = "Notes:
    " + EAalt_phone_notes; + document.getElementById("EAcommentsBoxB").innerHTML = " " + EAalt_phone_active + "
    " + EAactive_link; + document.getElementById("EAcommentsBoxC").innerHTML = " " + EAalt_phone_count; + document.getElementById("EAcommentsBoxD").innerHTML = "
    " + EAalt_phone_notes; showDiv('EAcommentsBox'); } @@ -8176,7 +8177,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) agent_log_id = MDOnextResponse_array[1]; if (MDnextCID == " CALL NOT PLACED") { - alert_box("call was not placed, there was an error:\n" + MDOnextResponse); + alert_box("\n" + MDOnextResponse); } else { @@ -8190,13 +8191,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (alt_dial_status_display=='0') { var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + MDnextCID;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + MDnextCID;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " " + status_display_content + "   Waiting for Ring..."; + document.getElementById("MainStatuSSpan").innerHTML = " " + status_display_number + " " + status_display_content + "   "; - document.getElementById("HangupControl").innerHTML = "\"Hangup"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; } if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -8287,7 +8288,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8305,7 +8306,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8478,9 +8479,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var EAactive_link = ''; if (APCactive == 'Y') - {EAactive_link = "Change this phone number to INACTIVE";} + {EAactive_link = "";} else - {EAactive_link = "Change this phone number to ACTIVE";} + {EAactive_link = "";} document.getElementById("EAcommentsBoxB").innerHTML = "Active: " + EAalt_phone_active + "
    " + EAactive_link; @@ -8657,7 +8658,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var VDIC_data_VDFR=check_VDIC_array[3].split("|"); if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') ) - {VDIC_fronter = " Fronter: " + VDIC_data_VDFR[0] + " - " + VDIC_data_VDFR[1];} + {VDIC_fronter = " " + VDIC_data_VDFR[0] + " - " + VDIC_data_VDFR[1];} document.vicidial_form.lead_id.value = VDIC_data_VDAC[0]; document.vicidial_form.uniqueid.value = VDIC_data_VDAC[1]; @@ -8774,31 +8775,31 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var dial_display_number = phone_number_format(callnum); var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + LasTCID;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + LasTCID;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " " + status_display_content + "   " + VDIC_fronter; + document.getElementById("MainStatuSSpan").innerHTML = " " + dial_display_number + " " + custom_call_id + " " + status_display_content + "   " + VDIC_fronter; if (CBentry_time.length > 2) { - document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; + document.getElementById("CusTInfOSpaN").innerHTML = " "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; - document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; - document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; - document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; - document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
    " + CBcomments; + document.getElementById("CBcommentsBoxA").innerHTML = " " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = " " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = " " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "
    " + CBcomments; showDiv('CBcommentsBox'); } if (dialed_label == 'ALT') - {document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: ALT ";} + {document.getElementById("CusTInfOSpaN").innerHTML = " ";} if (dialed_label == 'ADDR3') - {document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: ADDRESS3 ";} + {document.getElementById("CusTInfOSpaN").innerHTML = " ";} var REGalt_dial = new RegExp("X","g"); if (dialed_label.match(REGalt_dial)) { - document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: " + dialed_label + ""; - document.getElementById("EAcommentsBoxA").innerHTML = "Phone Code and Number: " + EAphone_code + " " + EAphone_number; + document.getElementById("CusTInfOSpaN").innerHTML = " " + dialed_label + ""; + document.getElementById("EAcommentsBoxA").innerHTML = " " + EAphone_code + " " + EAphone_number; var EAactive_link = ''; if (EAalt_phone_active == 'Y') @@ -8806,9 +8807,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else {EAactive_link = "Change this phone number to ACTIVE";} - document.getElementById("EAcommentsBoxB").innerHTML = "Active: " + EAalt_phone_active + "
    " + EAactive_link; - document.getElementById("EAcommentsBoxC").innerHTML = "Alt Count: " + EAalt_phone_count; - document.getElementById("EAcommentsBoxD").innerHTML = "Notes: " + EAalt_phone_notes; + document.getElementById("EAcommentsBoxB").innerHTML = " " + EAalt_phone_active + "
    " + EAactive_link; + document.getElementById("EAcommentsBoxC").innerHTML = " " + EAalt_phone_count; + document.getElementById("EAcommentsBoxD").innerHTML = " " + EAalt_phone_notes; showDiv('EAcommentsBox'); } @@ -8825,35 +8826,35 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var dial_display_number = phone_number_format(callnum); var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + CIDcheck;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " Group- " + VDIC_data_VDIG[1] + "   " + VDIC_fronter + " " + status_display_content; + document.getElementById("MainStatuSSpan").innerHTML = " " + dial_display_number + " " + custom_call_id + " Group- " + VDIC_data_VDIG[1] + "   " + VDIC_fronter + " " + status_display_content; } - document.getElementById("ParkControl").innerHTML ="\"Park"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\"IVR"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\"Hangup"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; - document.getElementById("XferControl").innerHTML = "\"Transfer"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; - document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -8883,12 +8884,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) { - document.getElementById("CustomXfer").innerHTML = "\"Custom"; + document.getElementById("CustomXfer").innerHTML = "\" border=\"0\" alt=\"Custom Transfer\" />"; } @@ -8898,11 +8899,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var regCRB = new RegExp("AGENTDIRECT","ig"); if ( (CloserSelectChoices.match(regCRB)) || (VU_closer_campaigns.match(regCRB)) ) { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } else { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } } @@ -8922,13 +8923,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (lastcustserverip == server_ip) { - document.getElementById("VolumeUpSpan").innerHTML = ""; - document.getElementById("VolumeDownSpan").innerHTML = ""; + document.getElementById("VolumeUpSpan").innerHTML = "\" border=\"0\" />"; + document.getElementById("VolumeDownSpan").innerHTML = "\" border=\"0\" />"; } if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8972,11 +8973,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) @@ -9051,7 +9052,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { var callnum = dialed_number; var dial_display_number = phone_number_format(callnum); - alert(" Incoming: " + dial_display_number + "\n Group- " + VDIC_data_VDIG[1] + "   " + VDIC_fronter); + alert(" " + dial_display_number + "\n - " + VDIC_data_VDIG[1] + "   " + VDIC_fronter); } } else if (email_enabled>0 && EMAILgroupCOUNT>0 && AutoDialWaiting==1) @@ -9203,7 +9204,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var VDIC_data_VDFR=check_VDIC_array[3].split("|"); if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') ) - {VDIC_fronter = " Fronter: " + VDIC_data_VDFR[0] + " - " + VDIC_data_VDFR[1];} + {VDIC_fronter = " " + VDIC_data_VDFR[0] + " - " + VDIC_data_VDFR[1];} document.vicidial_form.lead_id.value = VDIC_data_VDAC[0]; document.vicidial_form.uniqueid.value = VDIC_data_VDAC[1]; @@ -9312,31 +9313,31 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var dial_display_number = phone_number_format(callnum); var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + LasTCID;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + LasTCID;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " " + status_display_content + "   " + VDIC_fronter; + document.getElementById("MainStatuSSpan").innerHTML = " " + dial_display_number + " " + custom_call_id + " " + status_display_content + "   " + VDIC_fronter; if (CBentry_time.length > 2) { - document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; + document.getElementById("CusTInfOSpaN").innerHTML = " "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; - document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; - document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; - document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; - document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
    " + CBcomments; + document.getElementById("CBcommentsBoxA").innerHTML = " " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = " " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = " " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "
    " + CBcomments; showDiv('CBcommentsBox'); } if (dialed_label == 'ALT') - {document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: ALT ";} + {document.getElementById("CusTInfOSpaN").innerHTML = " ";} if (dialed_label == 'ADDR3') - {document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: ADDRESS3 ";} + {document.getElementById("CusTInfOSpaN").innerHTML = " ";} var REGalt_dial = new RegExp("X","g"); if (dialed_label.match(REGalt_dial)) { - document.getElementById("CusTInfOSpaN").innerHTML = " ALT DIAL NUMBER: " + dialed_label + ""; - document.getElementById("EAcommentsBoxA").innerHTML = "Phone Code and Number: " + EAphone_code + " " + EAphone_number; + document.getElementById("CusTInfOSpaN").innerHTML = " " + dialed_label + ""; + document.getElementById("EAcommentsBoxA").innerHTML = " " + EAphone_code + " " + EAphone_number; var EAactive_link = ''; if (EAalt_phone_active == 'Y') @@ -9344,9 +9345,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else {EAactive_link = "Change this phone number to ACTIVE";} - document.getElementById("EAcommentsBoxB").innerHTML = "Active: " + EAalt_phone_active + "
    " + EAactive_link; - document.getElementById("EAcommentsBoxC").innerHTML = "Alt Count: " + EAalt_phone_count; - document.getElementById("EAcommentsBoxD").innerHTML = "Notes: " + EAalt_phone_notes; + document.getElementById("EAcommentsBoxB").innerHTML = " " + EAalt_phone_active + "
    " + EAactive_link; + document.getElementById("EAcommentsBoxC").innerHTML = " " + EAalt_phone_count; + document.getElementById("EAcommentsBoxD").innerHTML = " " + EAalt_phone_notes; showDiv('EAcommentsBox'); } @@ -9363,35 +9364,35 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var dial_display_number = phone_number_format(callnum); var status_display_content=''; - if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;} - if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;} - if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;} + if (status_display_CALLID > 0) {status_display_content = status_display_content + " " + CIDcheck;} + if (status_display_LEADID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.lead_id.value;} + if (status_display_LISTID > 0) {status_display_content = status_display_content + " " + document.vicidial_form.list_id.value;} - document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " Group- " + VDIC_data_VDIG[1] + "   " + VDIC_fronter + " " + status_display_content; + document.getElementById("MainStatuSSpan").innerHTML = " " + dial_display_number + " " + custom_call_id + " - " + VDIC_data_VDIG[1] + "   " + VDIC_fronter + " " + status_display_content; } - document.getElementById("ParkControl").innerHTML ="\"Park"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\"IVR"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\"Hangup"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; - document.getElementById("XferControl").innerHTML = "\"Transfer"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; - document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -9421,12 +9422,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) { - document.getElementById("CustomXfer").innerHTML = "\"Custom"; + document.getElementById("CustomXfer").innerHTML = "\" border=\"0\" alt=\"Custom Transfer\" />"; } @@ -9436,11 +9437,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var regCRB = new RegExp("AGENTDIRECT","ig"); if ( (CloserSelectChoices.match(regCRB)) || (VU_closer_campaigns.match(regCRB)) ) { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } else { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } } @@ -9460,13 +9461,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (lastcustserverip == server_ip) { - document.getElementById("VolumeUpSpan").innerHTML = ""; - document.getElementById("VolumeDownSpan").innerHTML = ""; + document.getElementById("VolumeUpSpan").innerHTML = "\" border=\"0\" />"; + document.getElementById("VolumeDownSpan").innerHTML = "\" border=\"0\" />"; } if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -9510,11 +9511,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) @@ -9589,7 +9590,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { var callnum = dialed_number; var dial_display_number = phone_number_format(callnum); - alert(" Incoming: " + dial_display_number + "\n Group- " + VDIC_data_VDIG[1] + "   " + VDIC_fronter); + alert(" " + dial_display_number + "\n - " + VDIC_data_VDIG[1] + "   " + VDIC_fronter); } } xmlhttprequestcheckemail = undefined; @@ -9657,11 +9658,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (taskrefresh == 'OUT') { - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; } else { - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />\n"; } } @@ -9701,11 +9702,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (taskrefresh == 'OUT') { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } else { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />\n"; } } } @@ -9898,33 +9899,33 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;} - document.getElementById("WebFormSpan").innerHTML = "\"Web"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />"; } - document.getElementById("ParkControl").innerHTML = "\"Park"; + document.getElementById("ParkControl").innerHTML = "\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML = "\"IVR"; + document.getElementById("ivrParkControl").innerHTML = "\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\"Hangup"; - document.getElementById("XferControl").innerHTML = "\"Transfer"; - document.getElementById("LocalCloser").innerHTML = "\"LOCAL"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Dial"; - document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; - document.getElementById("VolumeUpSpan").innerHTML = ""; - document.getElementById("VolumeDownSpan").innerHTML = ""; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; + document.getElementById("VolumeUpSpan").innerHTML = "\" border=\"0\" />"; + document.getElementById("VolumeDownSpan").innerHTML = "\" border=\"0\" />"; if (quick_transfer_button_enabled > 0) - {document.getElementById("QuickXfer").innerHTML = "\"QUICK";} + {document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />";} if (custom_3way_button_transfer_enabled > 0) - {document.getElementById("CustomXfer").innerHTML = "\"Custom";} + {document.getElementById("CustomXfer").innerHTML = "\" border=\"0\" alt=\"Custom Transfer\" />";} if (call_requeue_button > 0) { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } document.getElementById("custdatetime").innerHTML = '                     '; @@ -9966,7 +9967,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } else { - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } reselect_alt_dial = 0; } @@ -9998,7 +9999,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").innerHTML = ''; if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -10014,7 +10015,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").style.background = panel_bgcolor; if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -10102,15 +10103,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.vicidial_form.xferchannel.value = ""; lastxferchannel=''; - // document.getElementById("Leave3WayCall").innerHTML ="\"LEAVE"; + // document.getElementById("Leave3WayCall").innerHTML ="\" border=\"0\" alt=\"LEAVE 3-WAY CALL\" />"; - document.getElementById("DialWithCustomer").innerHTML ="\"Dial"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Park"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupXferLine").innerHTML ="\"Hangup"; + document.getElementById("HangupXferLine").innerHTML ="\" border=\"0\" alt=\"Hangup Xfer Line\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupBothLines").innerHTML ="\"Hangup"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; } } @@ -10256,14 +10257,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (APIManualDialQueue > 0) { - document.getElementById("DispoManualQueueMessage").innerHTML = "
    Manual Dial Queue Calls Waiting: " + APIManualDialQueue + "
    "; + document.getElementById("DispoManualQueueMessage").innerHTML = "
    " + APIManualDialQueue + "
    "; } if (per_call_notes == 'ENABLED') { var test_notes = document.vicidial_form.call_notes_dispo.value; if (test_notes.length > 0) {document.vicidial_form.call_notes.value = document.vicidial_form.call_notes_dispo.value} - document.getElementById("PerCallNotesContent").innerHTML = "
    Call Notes:
    "; + document.getElementById("PerCallNotesContent").innerHTML = "

    "; } else { @@ -10274,7 +10275,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) AgentDispoing = 1; var CBflag = ''; var VD_statuses_ct_half = parseInt(VARSELstatuses_ct / 2); - var dispo_HTML = "
    CALL DISPOSITION
    "; + var dispo_HTML = "
    "; var loop_ct = 0; var print_ct = 0; if (hide_dispo_list < 1) @@ -10304,7 +10305,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } else { - dispo_HTML = dispo_HTML + "Disposition Status List Hidden

    "; + dispo_HTML = dispo_HTML + "

    "; } dispo_HTML = dispo_HTML + "
    "; @@ -10336,7 +10337,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else { move_on=0; - alert_box("YOU MUST BE PAUSED TO ENTER A PAUSE CODE IN AUTO-DIAL MODE"); + alert_box(""); } } if (move_on == 1) @@ -10353,7 +10354,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) PauseCode_HTML = ''; document.vicidial_form.PauseCodeSelection.value = ''; var VD_pause_codes_ct_half = parseInt(VD_pause_codes_ct / 2); - PauseCode_HTML = "
    PAUSE CODE
    "; + PauseCode_HTML = "
    "; var loop_ct = 0; while (loop_ct < VD_pause_codes_ct) { @@ -10402,7 +10403,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else { move_on=0; - alert_box("YOU MUST BE PAUSED TO SEARCH FOR A LEAD"); + alert_box(""); } } } @@ -10411,7 +10412,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (agent_lead_search=='LIVE_CALL_INBOUND') { move_on=0; - alert_box("YOU MUST BE ON AN ACTIVE INBOUND CALL TO SEARCH FOR A LEAD"); + alert_box(""); } } if (move_on == 1) @@ -10487,7 +10488,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) Presets_HTML = Presets_HTML + "
    "; } - Presets_HTML = Presets_HTML + "


    Close [X]
    "; + Presets_HTML = Presets_HTML + "


    [X]
    "; document.getElementById("PresetsSelectBoxContent").innerHTML = Presets_HTML; } @@ -10528,13 +10529,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) GroupAlias_HTML = ''; document.vicidial_form.GroupAliasSelection.value = ''; var VD_group_aliases_ct_half = parseInt(VD_group_aliases_ct / 2); - GroupAlias_HTML = "
    GROUP ALIAS
    "; + GroupAlias_HTML = "
    "; if (task3way > 0) { VD_group_aliases_ct_half = (VD_group_aliases_ct_half - 1); - GroupAlias_HTML = GroupAlias_HTML + "CAMPAIGN - " + campaign_cid + "

    "; - GroupAlias_HTML = GroupAlias_HTML + "CUSTOMER - " + document.vicidial_form.phone_number.value + "

    "; - GroupAlias_HTML = GroupAlias_HTML + "AGENT_PHONE - " + outbound_cid + "

    "; + GroupAlias_HTML = GroupAlias_HTML + " - " + campaign_cid + "

    "; + GroupAlias_HTML = GroupAlias_HTML + " - " + document.vicidial_form.phone_number.value + "

    "; + GroupAlias_HTML = GroupAlias_HTML + " - " + outbound_cid + "

    "; } var loop_ct = 0; while (loop_ct < VD_group_aliases_ct) @@ -10567,7 +10568,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) DiaLInGrouP_HTML = ''; document.vicidial_form.DiaLInGrouPSelection.value = ''; var VD_dial_ingroups_ct_half = parseInt(dialINgroupCOUNT / 2); - DiaLInGrouP_HTML = "
    DIAL IN-GROUP
    "; + DiaLInGrouP_HTML = "
    "; var loop_ct = 0; while (loop_ct < dialINgroupCOUNT) { @@ -10577,7 +10578,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {DiaLInGrouP_HTML = DiaLInGrouP_HTML + "";} } - var Go_BacK_LinK = "Go Back"; + var Go_BacK_LinK = ""; DiaLInGrouP_HTML = DiaLInGrouP_HTML + "


    " + Go_BacK_LinK; document.getElementById("DiaLInGrouPSelectContent").innerHTML = DiaLInGrouP_HTML; @@ -10598,13 +10599,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("callchannel").innerHTML = ''; document.vicidial_form.callserverip.value = ''; document.vicidial_form.xferchannel.value = ''; - document.getElementById("DialWithCustomer").innerHTML ="\"Dial"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Park"; - document.getElementById("HangupBothLines").innerHTML ="\"Hangup"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; var DispoChoice = document.vicidial_form.DispoSelection.value; - if (DispoChoice.length < 1) {alert_box("You Must Select a Disposition");} + if (DispoChoice.length < 1) {alert_box("");} else { document.getElementById("CusTInfOSpaN").innerHTML = ""; @@ -10614,10 +10615,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) WebFormRefresH('NO','YES'); - document.getElementById("WebFormSpan").innerHTML = "\"Web"; + document.getElementById("WebFormSpan").innerHTML = "\" border=\"0\" alt=\"Web Form\" />"; if (enable_second_webform > 0) { - document.getElementById("WebFormSpanTwo").innerHTML = "\"Web"; + document.getElementById("WebFormSpanTwo").innerHTML = "\" border=\"0\" alt=\"Web Form 2\" />"; } window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450'); @@ -10647,13 +10648,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("callchannel").innerHTML = ''; document.vicidial_form.callserverip.value = ''; document.vicidial_form.xferchannel.value = ''; - document.getElementById("DialWithCustomer").innerHTML ="\"Dial"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Park"; - document.getElementById("HangupBothLines").innerHTML ="\"Hangup"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; var DispoChoice = document.vicidial_form.DispoSelection.value; - if (DispoChoice.length < 1) {alert_box("You Must Select a Disposition");} + if (DispoChoice.length < 1) {alert_box("");} else { if (document.vicidial_form.DiaLAltPhonE.checked==true) @@ -10861,18 +10862,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (hide_gender < 1) { document.getElementById("GENDERhideFORieALT").innerHTML = ''; - document.getElementById("GENDERhideFORie").innerHTML = ''; + document.getElementById("GENDERhideFORie").innerHTML = ''; } hideDiv('DispoSelectBox'); hideDiv('DispoButtonHideA'); hideDiv('DispoButtonHideB'); hideDiv('DispoButtonHideC'); document.getElementById("DispoSelectBox").style.top = '1px'; // Firefox error on this line for some reason - document.getElementById("DispoSelectMaxMin").innerHTML = " minimize "; - document.getElementById("DispoSelectHAspan").innerHTML = "Hangup Again"; + document.getElementById("DispoSelectMaxMin").innerHTML = " "; + document.getElementById("DispoSelectHAspan").innerHTML = ""; if (pause_after_next_call == 'ENABLED') { - document.getElementById("NexTCalLPausE").innerHTML = "Next Call Pause"; + document.getElementById("NexTCalLPausE").innerHTML = ""; } CBcommentsBoxhide(); EAcommentsBoxhide(); @@ -11040,7 +11041,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (dialingroupid.length > 0) { active_ingroup_dial = dialingroupid; - document.getElementById("ManuaLDiaLInGrouPSelecteD").innerHTML = "Dial In-Group: " + active_ingroup_dial + ""; + document.getElementById("ManuaLDiaLInGrouPSelecteD").innerHTML = " " + active_ingroup_dial + ""; } scroll(0,0); } @@ -11110,7 +11111,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (wrapup_seconds > 0) { if (wrapup_bypass=='ENABLED') - {document.getElementById("WrapupBypass").innerHTML = "Finish Wrapup and Move On";} + {document.getElementById("WrapupBypass").innerHTML = "";} else {document.getElementById("WrapupBypass").innerHTML = '';} @@ -11348,7 +11349,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) HidEGenDerPulldown(); if ( (VU_agent_choose_ingroups == '1') && (manager_ingroups_set < 1) ) { - var live_CSC_HTML = "
    GROUPS NOT SELECTEDSELECTED GROUPS
      --- ADD ALL ---
    "; + var live_CSC_HTML = " + @@ -15153,12 +15154,12 @@ $zi=2;
      --- ---
    "; var loop_ct = 0; while (loop_ct < INgroupCOUNT) { @@ -11383,7 +11384,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } VU_agent_choose_ingroups_DV = "MGRLOCK"; - var live_CSC_HTML = "Manager has selected groups for you
    "; + var live_CSC_HTML = "
    "; document.vicidial_form.CloserSelectList.value = ''; document.getElementById("CloserSelectContent").innerHTML = live_CSC_HTML; } @@ -11459,8 +11460,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } document.vicidial_form.CloserSelectList.value = live_CSC_LIST_value; - document.getElementById("CloserSelectAdd").innerHTML = "  
    --- ADD ALL ---
    " + live_CSC_HTML_ADD; - document.getElementById("CloserSelectDelete").innerHTML = "  
    --- DELETE ALL ---
    " + live_CSC_HTML_DELETE; + document.getElementById("CloserSelectAdd").innerHTML = "  
    --- ---
    " + live_CSC_HTML_ADD; + document.getElementById("CloserSelectDelete").innerHTML = "  
    --- ---
    " + live_CSC_HTML_DELETE; } } @@ -11479,7 +11480,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (call_requeue_button > 0) { - document.getElementById("ReQueueCall").innerHTML = "\"Re-Queue"; + document.getElementById("ReQueueCall").innerHTML = "\" border=\"0\" alt=\"Re-Queue Call\" />"; } else { @@ -11540,7 +11541,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) HidEGenDerPulldown(); if (agent_choose_territories > 0) { - var live_TERR_HTML = "
    TERRITORIES NOT SELECTEDSELECTED TERRITORIES
      --- ADD ALL ---
    "; + var live_TERR_HTML = "
      --- ---
    "; var loop_ct = 0; while (loop_ct < territoryCOUNT) { @@ -11555,7 +11556,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else { agent_select_territories = "MGRLOCK"; - var live_TERR_HTML = "Manager has selected territories for you
    "; + var live_TERR_HTML = "
    "; document.vicidial_form.TerritorySelectList.value = ''; document.getElementById("TerritorySelectContent").innerHTML = live_TERR_HTML; } @@ -11618,8 +11619,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } document.vicidial_form.TerritorySelectList.value = live_TERR_LIST_value; - document.getElementById("TerritorySelectAdd").innerHTML = "  
    --- ADD ALL ---
    " + live_TERR_HTML_ADD; - document.getElementById("TerritorySelectDelete").innerHTML = "  
    --- DELETE ALL ---
    " + live_TERR_HTML_DELETE; + document.getElementById("TerritorySelectAdd").innerHTML = "  
    --- ---
    " + live_TERR_HTML_ADD; + document.getElementById("TerritorySelectDelete").innerHTML = "  
    --- ---
    " + live_TERR_HTML_DELETE; } } @@ -11631,9 +11632,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var TerritorySelectChoices = document.vicidial_form.TerritorySelectList.value; if (AllowManualQueueCalls == '0') - {document.getElementById("ManualQueueChoice").innerHTML = "
    Manual Queue is Off
    ";} + {document.getElementById("ManualQueueChoice").innerHTML = "
    ";} else - {document.getElementById("ManualQueueChoice").innerHTML = "Manual Queue in On
    ";} + {document.getElementById("ManualQueueChoice").innerHTML = "
    ";} } // ################################################################################ @@ -11739,7 +11740,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) AutoDial_ReSume_PauSe("VDADpause",'','','',"LOGOUT"); } LogouT('CLOSE'); - alert("PLEASE CLICK THE LOGOUT LINK TO LOG OUT NEXT TIME.\n"); + alert("\n"); } } @@ -11764,18 +11765,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) function LogouT(tempreason) { if (MD_channel_look==1) - {alert("You cannot log out during a Dial attempt. \nWait 50 seconds for the dial to fail out if it is not answered");} + {alert("");} else { if (VD_live_customer_call==1) { - alert("STILL A LIVE CALL! Hang it up then you can log out.\n" + VD_live_customer_call); + alert("\n" + VD_live_customer_call); } else { if (alt_dial_status_display==1) { - alert("You are in ALT dial mode, you must finish the lead before logging out.\n" + reselect_alt_dial); + alert("\n" + reselect_alt_dial); } else { @@ -11819,13 +11820,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) refresh_interval = 7300000; var logout_content=''; if (tempreason=='SHIFT') - {logout_content='Your Shift is over or has changed, you have been logged out of your session

    ';} + {logout_content='

    ';} if (tempreason=='API') - {logout_content='The system has received a command to log you out, you have been logged out of your session

    ';} + {logout_content='

    ';} if (tempreason=='TIMEOUT') - {logout_content='You have been paused for too long, you have been logged out of your session

    ';} + {logout_content='

    ';} - document.getElementById("LogouTBoxLink").innerHTML = logout_content + "CLICK HERE TO LOG IN AGAIN\n"; + document.getElementById("LogouTBoxLink").innerHTML = logout_content + "\n"; logout_stop_timeouts = 1; @@ -11885,7 +11886,7 @@ if ($useIE > 0) document.getElementById("HotKeyActionBox").style.top = '1px'; document.getElementById("HotKeyActionBox").style.left = '1px'; - document.getElementById("HKWrapupTimer").innerHTML = "
    Call Wrapup: " + HKdispo_display + " seconds remaining in wrapup"; + document.getElementById("HKWrapupTimer").innerHTML = "
    " + HKdispo_display + " "; if (wrapup_message.match(regWFS)) { // document.getElementById("FSCREENWrapupMessage").innerHTML = document.getElementById("WrapupMessage").innerHTML; @@ -11897,7 +11898,7 @@ if ($useIE > 0) if (wrapup_bypass == 'ENABLED') { - document.getElementById("HKWrapupBypass").innerHTML = "         Finish Wrapup and Move On"; + document.getElementById("HKWrapupBypass").innerHTML = "         "; } else {document.getElementById("HKWrapupBypass").innerHTML = '';} @@ -11987,7 +11988,7 @@ else document.getElementById("HotKeyActionBox").style.top = '1px'; document.getElementById("HotKeyActionBox").style.left = '1px'; - document.getElementById("HKWrapupTimer").innerHTML = "
    Call Wrapup: " + HKdispo_display + " seconds remaining in wrapup"; + document.getElementById("HKWrapupTimer").innerHTML = "
    " + HKdispo_display + " "; if (wrapup_message.match(regWFS)) { // document.getElementById("FSCREENWrapupMessage").innerHTML = document.getElementById("WrapupMessage").innerHTML; @@ -11999,7 +12000,7 @@ else if (wrapup_bypass == 'ENABLED') { - document.getElementById("HKWrapupBypass").innerHTML = "         Finish Wrapup and Move On"; + document.getElementById("HKWrapupBypass").innerHTML = "         "; } else {document.getElementById("HKWrapupBypass").innerHTML = '';} @@ -12764,7 +12765,7 @@ function phone_number_format(formatphone) { if (RAlocation == 'AgentXferViewSelect') { - document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

    Close Window "; + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

     "; } else { @@ -12795,7 +12796,7 @@ function phone_number_format(formatphone) { else { move_on=0; - alert_box("YOU MUST BE PAUSED TO GRAB CALLS IN QUEUE"); + alert_box(""); } } if (move_on == 1) @@ -12904,13 +12905,13 @@ function phone_number_format(formatphone) { { if (CQoperation=='SHOW') { - document.getElementById("callsinqueuelink").innerHTML = "Hide Calls In Queue"; + document.getElementById("callsinqueuelink").innerHTML = ""; view_calls_in_queue_active=1; showDiv('callsinqueuedisplay'); } else { - document.getElementById("callsinqueuelink").innerHTML = "Show Calls In Queue"; + document.getElementById("callsinqueuelink").innerHTML = ""; view_calls_in_queue_active=0; hideDiv('callsinqueuedisplay'); } @@ -12925,7 +12926,7 @@ function phone_number_format(formatphone) { { if (AVlocation=='AgentViewSpan') { - document.getElementById("AgentViewLink").innerHTML = "Agents View -"; + document.getElementById("AgentViewLink").innerHTML = " -"; agent_status_view_active=1; } showDiv(AVlocation); @@ -12934,7 +12935,7 @@ function phone_number_format(formatphone) { { if (AVlocation=='AgentViewSpan') { - document.getElementById("AgentViewLink").innerHTML = "Agents View +"; + document.getElementById("AgentViewLink").innerHTML = " +"; agent_status_view_active=0; } hideDiv(AVlocation); @@ -12948,12 +12949,12 @@ function phone_number_format(formatphone) { { if (WVoperation=='open') { - document.getElementById("webphoneLink").innerHTML = "   WebPhone View -"; + document.getElementById("webphoneLink").innerHTML = "   -"; showDiv(WVlocation); } else { - document.getElementById("webphoneLink").innerHTML = "   WebPhone View +"; + document.getElementById("webphoneLink").innerHTML = "   +"; hideDiv(WVlocation); } } @@ -13094,7 +13095,7 @@ function phone_number_format(formatphone) { else { move_on=0; - alert_box("YOU MUST BE PAUSED TO VIEW YOUR CALL LOG"); + alert_box(""); // alert("debug: " + AutoDialWaiting + "|" + VD_live_customer_call + "|" + alt_dial_active + "|" + MD_channel_look + "|" + in_lead_preview_state); } } @@ -13109,7 +13110,7 @@ function phone_number_format(formatphone) { if (!validformat.test(logdate)) { move_on=0; - alert_box("Invalid Date Format. Please correct and submit again.") + alert_box("") } else { //Detailed check for valid date ranges @@ -13120,7 +13121,7 @@ function phone_number_format(formatphone) { if ((dayobj.getMonth()+1!=monthfield)||(dayobj.getDate()!=dayfield)||(dayobj.getFullYear()!=yearfield)) { move_on=0; - alert_box("Invalid Day, Month, or Year range detected. Please correct and submit again.") + alert_box("") } } } @@ -13174,7 +13175,7 @@ function phone_number_format(formatphone) { { showDiv('SearcHResultSContactsBox'); - document.getElementById('SearcHResultSContactsSpan').innerHTML = "Searching...\n"; + document.getElementById('SearcHResultSContactsSpan').innerHTML = "\n"; var xmlhttp=false; /*@cc_on @*/ @@ -13236,7 +13237,7 @@ function phone_number_format(formatphone) { { if ( ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) && (inbound_lead_search < 1) ) { - alert_box("YOU MUST BE PAUSED TO SEARCH FOR A LEAD"); + alert_box(""); } else { @@ -13446,7 +13447,7 @@ function phone_number_format(formatphone) { showDiv('DispoButtonHideB'); showDiv('DispoButtonHideC'); document.getElementById("DispoSelectBox").style.top = '340px'; - document.getElementById("DispoSelectMaxMin").innerHTML = " maximize "; + document.getElementById("DispoSelectMaxMin").innerHTML = " "; } @@ -13455,7 +13456,7 @@ function phone_number_format(formatphone) { function DispoMaximize() { document.getElementById("DispoSelectBox").style.top = '1px'; - document.getElementById("DispoSelectMaxMin").innerHTML = " minimize "; + document.getElementById("DispoSelectMaxMin").innerHTML = " "; hideDiv('DispoButtonHideA'); hideDiv('DispoButtonHideB'); hideDiv('DispoButtonHideC'); @@ -13467,7 +13468,7 @@ function phone_number_format(formatphone) { function next_call_pause_click() { document.vicidial_form.DispoSelectStop.checked=true; - document.getElementById("NexTCalLPausE").innerHTML = "Next Call Pause Set"; + document.getElementById("NexTCalLPausE").innerHTML = ""; } @@ -13485,14 +13486,14 @@ function phone_number_format(formatphone) { else { move_on=0; - alert_box("YOU MUST BE PAUSED TO CHANGE GROUPS"); + alert_box(""); } } if (move_on == 1) { if (manager_ingroups_set > 0) { - alert_box("Manager " + external_igb_set_name + " has selected your in-group choices"); + alert_box(" " + external_igb_set_name + " "); } else { @@ -13517,7 +13518,7 @@ function phone_number_format(formatphone) { else { move_on=0; - alert_box("YOU MUST BE PAUSED TO CHANGE TERRITORIES"); + alert_box(""); } } if (move_on == 1) @@ -13580,7 +13581,7 @@ function phone_number_format(formatphone) { CallBackDatEForM = document.vicidial_form.CallBackDatESelectioN.value; CallBackCommenTs = document.vicidial_form.CallBackCommenTsField.value; if (CallBackDatEForM.length < 2) - {alert_box("You must choose a date");} + {alert_box("");} else { @@ -13686,7 +13687,7 @@ function phone_number_format(formatphone) { { CallBackrecipient = 'ANYONE'; } - document.getElementById("CallBackDatEPrinT").innerHTML = "Select a Date Below"; + document.getElementById("CallBackDatEPrinT").innerHTML = ""; document.vicidial_form.CallBackOnlyMe.checked=false; if (my_callback_option == 'CHECKED') {document.vicidial_form.CallBackOnlyMe.checked=true;} @@ -13709,7 +13710,7 @@ function phone_number_format(formatphone) { var next_action=0; if (taskaction == 'DiaLAlerT') { - document.getElementById("TimerContentSpan").innerHTML = "DIAL ALERT:

    " + taskdialalert.replace("\n","
    ") + "
    "; + document.getElementById("TimerContentSpan").innerHTML = "

    " + taskdialalert.replace("\n","
    ") + "
    "; showDiv('TimerSpan'); } @@ -13717,7 +13718,7 @@ function phone_number_format(formatphone) { { if ( (timer_action_message.length > 0) || (timer_action == 'MESSAGE_ONLY') ) { - document.getElementById("TimerContentSpan").innerHTML = "TIMER NOTIFICATION: " + timer_action_seconds + " seconds

    " + timer_action_message + "
    "; + document.getElementById("TimerContentSpan").innerHTML = " " + timer_action_seconds + " seconds

    " + timer_action_message + "
    "; showDiv('TimerSpan'); } @@ -13939,7 +13940,7 @@ function phone_number_format(formatphone) { if (agent_xfer_park_customer_dial < 1) {hideDiv('ParkCustomerDial');} if (AllowManualQueueCallsChoice == '1') - {document.getElementById("ManualQueueChoice").innerHTML = "Manual Queue is Off
    ";} + {document.getElementById("ManualQueueChoice").innerHTML = "
    ";} if (qc_enabled < 1) {document.getElementById("viewcommentsdisplay").innerHTML = "";} @@ -13950,7 +13951,7 @@ function phone_number_format(formatphone) { if ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) { - document.getElementById("PauseCodeLinkSpan").innerHTML = "ENTER A PAUSE CODE"; + document.getElementById("PauseCodeLinkSpan").innerHTML = ""; } if (VICIDiaL_allow_closers < 1) { @@ -13959,7 +13960,7 @@ function phone_number_format(formatphone) { document.getElementById("sessionIDspan").innerHTML = session_id; if ( (LIVE_campaign_recording == 'NEVER') || (LIVE_campaign_recording == 'ALLFORCE') ) { - document.getElementById("RecorDControl").innerHTML = "\"Start"; + document.getElementById("RecorDControl").innerHTML = "\" border=\"0\" alt=\"Start Recording\" />"; } if (INgroupCOUNT > 0) { @@ -14029,7 +14030,7 @@ function phone_number_format(formatphone) { if (is_webphone=='Y') { NoneInSession(); - document.getElementById("NoneInSessionLink").innerHTML = "Call Agent Webphone ->"; + document.getElementById("NoneInSessionLink").innerHTML = " ->"; var WebPhonEtarget = 'webphonewindow'; @@ -14065,7 +14066,7 @@ function phone_number_format(formatphone) { if (hide_gender < 1) { document.getElementById("GENDERhideFORie").innerHTML = ''; - document.getElementById("GENDERhideFORieALT").innerHTML = ''; + document.getElementById("GENDERhideFORieALT").innerHTML = ''; } showDiv('DispoSelectBox'); DispoSelectContent_create('','ReSET'); @@ -14083,9 +14084,9 @@ function phone_number_format(formatphone) { if (document.vicidial_form.DiaLAltPhonE.checked==true) { reselect_alt_dial = 1; - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; - document.getElementById("MainStatuSSpan").innerHTML = "Dial Next Call"; + document.getElementById("MainStatuSSpan").innerHTML = ""; } else { @@ -14201,7 +14202,7 @@ function phone_number_format(formatphone) { } else { - document.getElementById("timer_alt_display").innerHTML = " Dial Countdown: " + timer_alt_count + "   " + last_mdtype; + document.getElementById("timer_alt_display").innerHTML = " " + timer_alt_count + "   " + last_mdtype; timer_alt_count--; } } @@ -14245,7 +14246,7 @@ function phone_number_format(formatphone) { if (parked_ss < 10) {parked_ss = "0" + parked_ss;} var parked_mmss = parked_mm + ":" + parked_ss; - document.getElementById("ParkCounterSpan").innerHTML = "Time On Park: " + parked_mmss; + document.getElementById("ParkCounterSpan").innerHTML = " " + parked_mmss; } if (customer_3way_hangup_counter_trigger > 0) { @@ -14259,14 +14260,14 @@ function phone_number_format(formatphone) { if (customer_3way_hangup_action=='DISPO') { - customer_3way_hangup_dispo_message='Customer Hung-up, 3-way Call Ended Automatically'; + customer_3way_hangup_dispo_message=''; bothcall_send_hangup(); } } else { customer_3way_hangup_counter++; - document.getElementById("debugbottomspan").innerHTML = "CUSTOMER 3WAY HANGUP " + customer_3way_hangup_counter; + document.getElementById("debugbottomspan").innerHTML = " " + customer_3way_hangup_counter; } } if ( (update_fields > 0) && (update_fields_data.length > 2) ) @@ -14298,7 +14299,7 @@ function phone_number_format(formatphone) { HKdispo_display--; if ( (wrapup_after_hotkey == 'ENABLED') && (wrapup_seconds > 0) ) { - document.getElementById("HKWrapupTimer").innerHTML = "
    Call Wrapup: " + HKdispo_display + " seconds remaining in wrapup"; + document.getElementById("HKWrapupTimer").innerHTML = "
    " + HKdispo_display + " "; } } if (dead_auto_dispo_count > 0) @@ -14466,18 +14467,18 @@ function phone_number_format(formatphone) { if (vdc_header_date_format.match(regALdate)) { var statusmon=''; - if (month == 1) {statusmon = "JAN";} - if (month == 2) {statusmon = "FEB";} - if (month == 3) {statusmon = "MAR";} - if (month == 4) {statusmon = "APR";} - if (month == 5) {statusmon = "MAY";} - if (month == 6) {statusmon = "JUN";} - if (month == 7) {statusmon = "JLY";} - if (month == 8) {statusmon = "AUG";} - if (month == 9) {statusmon = "SEP";} - if (month == 10) {statusmon = "OCT";} - if (month == 11) {statusmon = "NOV";} - if (month == 12) {statusmon = "DEC";} + if (month == 1) {statusmon = "";} + if (month == 2) {statusmon = "";} + if (month == 3) {statusmon = "";} + if (month == 4) {statusmon = "";} + if (month == 5) {statusmon = "";} + if (month == 6) {statusmon = "";} + if (month == 7) {statusmon = "";} + if (month == 8) {statusmon = "";} + if (month == 9) {statusmon = "";} + if (month == 10) {statusmon = "";} + if (month == 11) {statusmon = "";} + if (month == 12) {statusmon = "";} status_date = statusmon + " " + daym; } @@ -14532,18 +14533,18 @@ function phone_number_format(formatphone) { if (vdc_customer_date_format.match(regALdate)) { var customermon=''; - if (Cmon == 1) {customermon = "JAN";} - if (Cmon == 2) {customermon = "FEB";} - if (Cmon == 3) {customermon = "MAR";} - if (Cmon == 4) {customermon = "APR";} - if (Cmon == 5) {customermon = "MAY";} - if (Cmon == 6) {customermon = "JUN";} - if (Cmon == 7) {customermon = "JLY";} - if (Cmon == 8) {customermon = "AUG";} - if (Cmon == 9) {customermon = "SEP";} - if (Cmon == 10) {customermon = "OCT";} - if (Cmon == 11) {customermon = "NOV";} - if (Cmon == 12) {customermon = "DEC";} + if (Cmon == 1) {customermon = "";} + if (Cmon == 2) {customermon = "";} + if (Cmon == 3) {customermon = "";} + if (Cmon == 4) {customermon = "";} + if (Cmon == 5) {customermon = "";} + if (Cmon == 6) {customermon = "";} + if (Cmon == 7) {customermon = "";} + if (Cmon == 8) {customermon = "";} + if (Cmon == 9) {customermon = "";} + if (Cmon == 10) {customermon = "";} + if (Cmon == 11) {customermon = "";} + if (Cmon == 12) {customermon = "";} customer_date = customermon + " " + Cdaym + " "; } @@ -14583,7 +14584,7 @@ function phone_number_format(formatphone) { } } function pause() // Pauses the refreshing of the lists - {active_display=2; display_message=" - ACTIVE DISPLAY PAUSED - ";} + {active_display=2; display_message=" - - ";} function start() // resumes the refreshing of the lists {active_display=1; display_message='';} function faster() // lowers by 1000 milliseconds the time until the next refresh @@ -14602,13 +14603,13 @@ function phone_number_format(formatphone) { function activeext_order_asc() // changes order of activeext list to ascending { activeext_order="asc"; getactiveext(); - desc_order_HTML ='ORDER'; + desc_order_HTML =''; document.getElementById("activeext_order").innerHTML = desc_order_HTML; } function activeext_order_desc() // changes order of activeext list to descending { activeext_order="desc"; getactiveext(); - asc_order_HTML ='ORDER'; + asc_order_HTML =''; document.getElementById("activeext_order").innerHTML = asc_order_HTML; } @@ -14618,13 +14619,13 @@ function phone_number_format(formatphone) { function busytrunk_order_asc() // changes order of busytrunk list to ascending { busytrunk_order="asc"; getbusytrunk(); - desc_order_HTML ='ORDER'; + desc_order_HTML =''; document.getElementById("busytrunk_order").innerHTML = desc_order_HTML; } function busytrunk_order_desc() // changes order of busytrunk list to descending { busytrunk_order="desc"; getbusytrunk(); - asc_order_HTML ='ORDER'; + asc_order_HTML =''; document.getElementById("busytrunk_order").innerHTML = asc_order_HTML; } function busytrunkhangup_force_refresh() // forces immediate refresh of list content @@ -14636,13 +14637,13 @@ function phone_number_format(formatphone) { function busyext_order_asc() // changes order of busyext list to ascending { busyext_order="asc"; getbusyext(); - desc_order_HTML ='ORDER'; + desc_order_HTML =''; document.getElementById("busyext_order").innerHTML = desc_order_HTML; } function busyext_order_desc() // changes order of busyext list to descending { busyext_order="desc"; getbusyext(); - asc_order_HTML ='ORDER'; + asc_order_HTML =''; document.getElementById("busyext_order").innerHTML = asc_order_HTML; } function busylocalhangup_force_refresh() // forces immediate refresh of list content @@ -14673,12 +14674,12 @@ function phone_number_format(formatphone) { document.getElementById(divvar).innerHTML = ''; if (divvar == 'DiaLLeaDPrevieW') { - var buildDivHTML = " LEAD PREVIEW
    "; + var buildDivHTML = "
    "; document.getElementById("DiaLLeaDPrevieWHide").innerHTML = buildDivHTML; } if (divvar == 'DiaLDiaLAltPhonE') { - var buildDivHTML = " ALT PHONE DIAL
    "; + var buildDivHTML = "
    "; document.getElementById("DiaLDiaLAltPhonEHide").innerHTML = buildDivHTML; } if ( (DefaulTAlTDiaL == '1') || (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') ) @@ -14693,7 +14694,7 @@ function phone_number_format(formatphone) { if (divvar == 'DiaLLeaDPrevieW') { document.getElementById("DiaLLeaDPrevieWHide").innerHTML = ''; - var buildDivHTML = " LEAD PREVIEW
    "; + var buildDivHTML = "
    "; document.getElementById(divvar).innerHTML = buildDivHTML; if (reselect_preview_dial==1) {document.vicidial_form.LeadPreview.checked=true} @@ -14701,7 +14702,7 @@ function phone_number_format(formatphone) { if (divvar == 'DiaLDiaLAltPhonE') { document.getElementById("DiaLDiaLAltPhonEHide").innerHTML = ''; - var buildDivHTML = " ALT PHONE DIAL
    "; + var buildDivHTML = "
    "; document.getElementById(divvar).innerHTML = buildDivHTML; if (reselect_alt_dial==1) {document.vicidial_form.DiaLAltPhonE.checked=true} @@ -14716,14 +14717,14 @@ function phone_number_format(formatphone) { if (divvar == 'SHOW') { conf_channels_xtra_display = 1; - document.getElementById("busycallsdisplay").innerHTML = "Hide conference call channel information"; + document.getElementById("busycallsdisplay").innerHTML = ""; LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; LMAcount=0; } else { conf_channels_xtra_display = 0; - document.getElementById("busycallsdisplay").innerHTML = "Show conference call channel information

     "; + document.getElementById("busycallsdisplay").innerHTML = "

     "; document.getElementById("outboundcallsspan").innerHTML = ''; LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; LMAcount=0; @@ -14736,13 +14737,13 @@ function phone_number_format(formatphone) { { showDiv('HotKeyEntriesBox'); hot_keys_active = 1; - document.getElementById("hotkeysdisplay").innerHTML = "\"HOT"; + document.getElementById("hotkeysdisplay").innerHTML = "\" border=\"0\" alt=\"HOT KEYS ACTIVE\" />"; } else { hideDiv('HotKeyEntriesBox'); hot_keys_active = 0; - document.getElementById("hotkeysdisplay").innerHTML = "\"HOT"; + document.getElementById("hotkeysdisplay").innerHTML = "\" border=\"0\" alt=\"HOT KEYS INACTIVE\" />"; } } @@ -14780,11 +14781,11 @@ function phone_number_format(formatphone) { document.getElementById("TransferMain").style.top = temp_xfer_height; HKbutton_allowed = 0; showDiv('TransferMain'); - document.getElementById("XferControl").innerHTML = "\"Transfer"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; if ( (quick_transfer_button_enabled > 0) && (quick_transfer_button_locked < 1) ) - {document.getElementById("QuickXfer").innerHTML = "\"QUICK";} + {document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />";} if (custom_3way_button_transfer_enabled > 0) - {document.getElementById("CustomXfer").innerHTML = "\"Custom";} + {document.getElementById("CustomXfer").innerHTML = "\" border=\"0\" alt=\"Custom Transfer\" />";} } else { @@ -14793,19 +14794,19 @@ function phone_number_format(formatphone) { hideDiv('agentdirectlink'); if (showoffvar == 'YES') { - document.getElementById("XferControl").innerHTML = "\"Transfer"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'PRESET_5') || (quick_transfer_button == 'LOCKED_PRESET_1') || (quick_transfer_button == 'LOCKED_PRESET_2') || (quick_transfer_button == 'LOCKED_PRESET_3') || (quick_transfer_button == 'LOCKED_PRESET_4') || (quick_transfer_button == 'LOCKED_PRESET_5') ) { - document.getElementById("QuickXfer").innerHTML = "\"QUICK"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) { - document.getElementById("CustomXfer").innerHTML = "\"Custom"; + document.getElementById("CustomXfer").innerHTML = "\" border=\"0\" alt=\"Custom Transfer\" />"; } } } @@ -14816,8 +14817,8 @@ function phone_number_format(formatphone) { active_group_alias = LIVE_default_group_alias; cid_choice = LIVE_caller_id_number; } - document.getElementById("XfeRDiaLGrouPSelecteD").innerHTML = "Group Alias: " + active_group_alias + ""; - document.getElementById("XfeRCID").innerHTML = "Click Here to Choose a Group Alias"; + document.getElementById("XfeRDiaLGrouPSelecteD").innerHTML = " " + active_group_alias + ""; + document.getElementById("XfeRCID").innerHTML = ""; } else { @@ -14829,7 +14830,7 @@ function phone_number_format(formatphone) { { if (showxfervar != 'OFF') { - alert_box('YOU DO NOT HAVE PERMISSIONS TO TRANSFER CALLS'); + alert_box(''); } } } @@ -14883,7 +14884,7 @@ function phone_number_format(formatphone) { { if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\"\"Resume\"
    \"Dial"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\" Pause \" />\" border=\"0\" alt=\"Resume\" />
    \" border=\"0\" alt=\"Dial Next Number\" />"; if (manual_dial_preview == 1) {buildDiv('DiaLLeaDPrevieW');} } @@ -14957,7 +14958,7 @@ function phone_number_format(formatphone) { var genderValue = document.getElementById('gender_list').options[genderIndex].value; if (genderValue == 'M') {var gIndex = 1;} if (genderValue == 'F') {var gIndex = 2;} - document.getElementById("GENDERhideFORieALT").innerHTML = ''; + document.getElementById("GENDERhideFORieALT").innerHTML = ''; document.getElementById("GENDERhideFORie").innerHTML = ''; document.getElementById("gender_list").selectedIndex = gIndex; } @@ -14972,7 +14973,7 @@ function phone_number_format(formatphone) { var genderValue = document.getElementById('gender_list').options[genderIndex].value; if (genderValue == 'M') {var gIndex = 1;} if (genderValue == 'F') {var gIndex = 2;} - document.getElementById("GENDERhideFORie").innerHTML = ''; + document.getElementById("GENDERhideFORie").innerHTML = ''; document.getElementById("GENDERhideFORieALT").innerHTML = ''; document.getElementById("gender_list").selectedIndex = gIndex; } @@ -15008,7 +15009,7 @@ $zi=2;


    -           Loading +           " height="90px" width="545px" alt="Loading" />

    @@ -15022,18 +15023,18 @@ $zi=2; -
    Logged in as User + ring)";} + {echo "("._QXZ("ring").")";} echo "  to campaign: $VD_campaign  \n"; ?>    
    - 0) {echo "TERRITORIES     \n";} ?> - 0) {echo "GROUPS     \n";} ?> - LOGOUT\n"; ?> + 0) {echo ""._QXZ("TERRITORIES")."     \n";} ?> + 0) {echo ""._QXZ("GROUPS")."     \n";} ?> + "._QXZ("LOGOUT")."\n"; ?>
    @@ -15041,22 +15042,22 @@ $zi=2; - - + + 0) - {echo "\n";} + {echo "\n";} ?> 0) - {echo "\n";} + {echo "\n";} ?> - - + +
    MAINSCRIPT" alt="MAIN" width="115px" height="30px" border="0" />" alt="SCRIPT" width="90px" height="30px" border="0" /> \"FORM\"\"FORM\"\"EMAIL\"\"EMAIL\"  LIVE    session ID:    Live Call         " name="livecall" alt="Live Call" width="109px" height="30px" border="0" />
    -

    Agent Screen
    +

    @@ -15067,23 +15068,23 @@ $zi=2;
    \n"; + echo "
    \n"; } $alt_phone_selected=''; if ( ($alt_number_dialing=='SELECTED') or ($alt_number_dialing=='SELECTED_TIMER_ALT') or ($alt_number_dialing=='SELECTED_TIMER_ADDR3') ) {$alt_phone_selected='CHECKED';} ?> - STATUS:
    - Dial Next Number
    + " border="0" alt="Dial Next Number" />
    - LEAD PREVIEW
    - /> ALT PHONE DIAL
    - Next Call Pause
    +
    + />
    +
    - RECORDING FILE:
    +

    - RECORD ID:
    +
    - Start Recording
    -
    - Web Form
    + " border="0" alt="Start Recording" />
    + " width="145px" height="16px" border="0" />
    + " border="0" alt="Web Form" />
    0) - {echo "\"Web
    \n";} + {echo "\"Web
    \n";} ?>  
    - Park Call
    + " border="0" alt="Park Call" />
    \"IVR
    \n";} + {echo "\"IVR
    \n";} else {echo "\n";} ?> - Transfer - Conference
    + " border="0" alt="Transfer - Conference" />
    0) - {echo "\"Quick
    \n";} + {echo "\"Quick
    \n";} if ($custom_3way_button_transfer_enabled > 0) - {echo "\"Custom
    \n";} + {echo "\"Custom
    \n";} ?> @@ -15129,10 +15130,10 @@ $zi=2; {echo "
    \n";} ?> -
    - Hangup Customer
    -
    -
    Send DTMF

    + " width="145px" height="16px" border="0" />
    + " border="0" alt="Hangup Customer" />
    + " width="145px" height="16px" border="0" />
    +
    - + - @@ -15249,7 +15250,7 @@ $zi=2; } else { - echo "$label_gender:
      Customer Time:                         Channel:                          
    Customer Information:         +         LEAD SEARCH";} + {echo ""._QXZ("LEAD SEARCH")."";} ?>
    "; + echo "$label_gender: "; } echo "
    "; @@ -15306,11 +15307,11 @@ $zi=2; if ($label_comments == '---HIDE---') { - echo " \n"; + echo " \n"; } else { - echo "$label_comments:
    + echo "$label_comments:
    "; if ( ($multi_line_comments) ) {echo "\n";} @@ -15322,9 +15323,9 @@ $zi=2; if ($per_call_notes == 'ENABLED') { - echo "Call Notes: "; + echo _QXZ("Call Notes: "); if ($agent_call_log_view == '1') - {echo "
    view notes ";} + {echo "
    "._QXZ("view notes")." ";} echo "
    "; echo "\n"; } @@ -15359,7 +15360,7 @@ $zi=2; -MANUAL DIAL       FAST DIAL
    +      
    @@ -15367,23 +15368,23 @@ $zi=2; -VIEW CALL LOG
    +
        -
    VERSION:   BUILD:     Server:              
    +
                       
    - Show conference call channel information +

     
    0) ) - {echo "Alert is ON";} + {echo ""._QXZ("Alert is ON")."";} else - {echo "Alert is OFF";} + {echo ""._QXZ("Alert is OFF")."";} ?>
    @@ -15392,50 +15393,50 @@ $zi=2;
    - seconds: +     -
    +" border="0" />
    " border="0" />
    -Your Status:
    Calls Dialing: +
    D1 - DIAL\n"; + echo ""._QXZ("D1 - DIAL")."\n"; echo "   \n"; - echo "D2 - DIAL\n"; + echo ""._QXZ("D2 - DIAL")."\n"; } else {echo "
    \n";} ?>

     
    -
     Calls In Queue:  
     
    +
       
     
    0) { if ($view_calls_in_queue_launch > 0) - {echo "Hide Calls In Queue\n";} + {echo ""._QXZ("Hide Calls In Queue")."\n";} else - {echo "Show Calls In Queue\n";} + {echo ""._QXZ("Show Calls In Queue")."\n";} } ?> -X ACTIVE CALLBACKS
    +
      -Other Agents Status:  
     
    +  
     
    -
    Agents View +
    +
    -
      WebPhone View -
    +
     
    0) { - echo "Dialable Leads:
     \n"; + echo _QXZ("Dialable Leads:")."
     \n"; } ?>
    @@ -15478,19 +15479,19 @@ if ($agent_display_dialable_leads > 0)
    \n";} + {echo "
    \n";} ?> -
    AGENT SCRIPT
    +
    -refresh +
    \n";} + {echo "
    \n";} ?>
    @@ -15498,34 +15499,34 @@ if ($agent_display_dialable_leads > 0)
    \n";} + {echo "
    \n";} ?>
    -reset form + -refresh + - +
    Lead Dispositioned As:

    +


    -
    -
    - + @@ -15539,7 +15540,7 @@ if ($agent_display_dialable_leads > 0) 0) && ($user_level>=$HKuser_level) && ($VU_hotkeys_active > 0) ) { ?> -HOT KEYS INACTIVE +" border="0" alt="HOT KEYS INACTIVE" /> @@ -15549,37 +15550,37 @@ if ($agent_display_dialable_leads > 0)
    Disposition Hot Keys: - When active, simply press the keyboard key for the desired disposition for this call. The call will then be hungup and dispositioned automatically:
    +
    - Transfer - Conference            
    + " border="0" alt="Transfer - Conference" style="vertical-align:middle" />            
    @@ -15659,14 +15660,14 @@ if ($agent_display_dialable_leads > 0)
    -Available Agents Transfer:
    +
    - + - LOCAL CLOSER     + " border="0" alt="LOCAL CLOSER" style="vertical-align:middle" />     - Hangup Xfer Line + " border="0" alt="Hangup Xfer Line" style="vertical-align:middle" />
    - seconds + " border="0" alt="seconds" style="vertical-align:middle" />   - channel + " border="0" alt="channel" style="vertical-align:middle" /> - CONSULTATIVE   +   - Hangup Both Lines + " border="0" alt="Hangup Both Lines" style="vertical-align:middle" />
    - Number to call + " border="0" alt="Number to call" style="vertical-align:middle" />   0) - AGENTS + - DIAL OVERRIDE + - LEAVE 3-WAY CALL + " border="0" alt="LEAVE 3-WAY CALL" style="vertical-align:middle" />
    - Dial Blind Transfer + " border="0" alt="Dial Blind Transfer" style="vertical-align:middle" />   - Dial With Customer + " border="0" alt="Dial With Customer" style="vertical-align:middle" />   - Park Customer Dial + " border="0" alt="Park Customer Dial" style="vertical-align:middle" />   - Presets Button + " border="0" alt="Presets Button" style="vertical-align:middle" /> 0) if ( ($enable_xfer_presets=='CONTACTS') and ($VU_preset_contact_search != 'DISABLED') ) { ?> - Contacts Button + " border="0" alt="Contacts Button" style="vertical-align:middle" /> 0) } ?>   - Blind Transfer VMail Message + " border="0" alt="Blind Transfer VMail Message" style="vertical-align:middle" />
    px height='px'> - +
    View Comment History:
    px;z-index:;" id="CBcommentsBox"> - - + +
    Previous Callback Information: close

    @@ -15695,8 +15696,8 @@ class="cust_form_text" value="">px;z-index:;" id="EAcommentsBox"> - - + +
    Extended Alt Phone Information: minimize

    @@ -15712,31 +15713,31 @@ class="cust_form_text" value="">px;z-index:;" id="EAcommentsMinBox"> - +
    maximize
    Alt Phone Info

    -
    No one is in your session:
    - Go Back +

    +

    - Call Agent Again +
    -
    Customer has hung up:
    - Go Back +

    +

    - Finish and Disposition Call +
    -
    Call Wrapup: seconds remaining in wrapup

    +




    - Finish Wrapup and Move On +
    @@ -15745,22 +15746,22 @@ class="cust_form_text" value="">;" id="TimerSpan">



    - Close Message +
    -
    Your session has been disabled
    LOGOUT

    +



    -
    There is a time synchronization problem with your system, please tell your system administrator


    Go Back +



    -

    LOGOUT
    +

    @@ -15772,40 +15773,40 @@ class="cust_form_text" value="">;" id="DispoButtonHideC"> -
    Any changes made to the customer information below at this time will not be comitted, You must change customer information before you Hangup the call.
    +
    -
    DISPOSITION CALL :       Hangup Again       minimize
    +
               

    \n";} + {echo "

    \n";} ?> - End-of-call Disposition Selection +
    - PAUSE AGENT DIALING
    - CLEAR FORM | - SUBMIT +
    + | +

    - WEB FORM SUBMIT +

     
    -
    Select a CallBack Date :
    +


    \n";} + {echo "

    \n";} ?> - Select a Date Below   +       - Hour: + MY CALLBACK ONLY
    ";} ?> - CB Comments:

    +

    - SUBMIT

    +



     
    -
    CALLBACKS FOR AGENT :
    To see information on one of the callbacks below, click on the INFO link. To call the customer back now, click on the DIAL link. If you click on a record below to dial it, it will be removed from the list. +
    To see information on one of the callbacks below, click on the INFO link. To call the customer back now, click on the DIAL link. If you click on a record below to dial it, it will be removed from the list."); ?>

    \n";} + {echo "

    \n";} ?>

      - Refresh +                 - Go Back +
    -
    NEW MANUAL DIAL LEAD FOR :

    Enter information below for the new lead you wish to call. +



    \n"; } ?> - Note: all new manual dial leads will go into list

    +

    - - + + - + \n"; - echo " \n"; + echo " \n"; echo " - + + +


      - - +
    Dial Code:   (This is usually a 1 in the USA-Canada)  
    Phone Number: -   (digits only) +   @@ -15926,9 +15927,9 @@ class="cust_form_text" value="">"; echo "
    Dial Lead ID: "._QXZ("Dial Lead ID:")." \n"; - echo "   (digits only)\n"; + echo "   "._QXZ("(digits only)")."\n"; } else { @@ -15937,8 +15938,8 @@ class="cust_form_text" value=""> Search Existing Leads:   (This option if checked will attempt to find the phone number in the system before inserting it as a new lead)  
    @@ -15949,116 +15950,116 @@ class="cust_form_text" value=""> -

    If you want to dial a number and have it NOT be added as a new lead, enter in the exact dialstring that you want to call in the Dial Override field below. To hangup this call you will have to open the CALLS IN THIS SESSION link at the bottom of the screen and hang it up by clicking on its channel link there.
     
    Dial Override:   (digits only please) +  

    - Dial Now +                 - Preview Call +                 - Go Back +
    -
    CLOSER INBOUND GROUP SELECTION
    +


    \n";} + {echo "

    \n";} ?> - Closer Inbound Group Selection +
    0) and ($disable_blended_checkbox < 1) and ($dial_method != 'INBOUND_MAN') and ($VU_agent_choose_blended > 0) ) { ?> - BLENDED CALLING(outbound activated)
    +
    - RESET | - SUBMIT + | +



     
    -
    TERRITORY SELECTION
    +


    \n";} + {echo "

    \n";} ?> - Territory Selection +
    - RESET | - SUBMIT + | +



     
    - Channel - Channel + + MY CALLBACK ONLY
    ";} + {echo " "._QXZ("MY CALLBACK ONLY")."
    ";} if ( ($outbound_autodial_active < 1) or ($disable_blended_checkbox > 0) or ($dial_method == 'INBOUND_MAN') or ($VU_agent_choose_blended < 1) ) - {echo " BLENDED CALLING
    ";} + {echo " "._QXZ("BLENDED CALLING")."
    ";} ?>
    -
          AGENT CALL LOG:             close [X]
    +
                      [X]

    \n";} + {echo "

    \n";} ?> -
    Call log List
    +


     
    -
          SEARCH FOR A CONTACT:             close [X]
    +
                      close [X]

    \n";} + {echo "

    \n";} ?>

    - Notes: when doing a search for a contact, wildcard or partial search terms are not allowed.
    Contact search requests are all logged in the system. + Contact search requests are all logged in the system."); ?>

    - + - + - + - + - + - + - + - + - +
    Office Number:
    First Name:
    Last Name:
    BU Name:
    Department:
    Group Name:
    Job Title:
    Location:

    SUBMIT SEARCH             reset form

               


      @@ -16066,40 +16067,40 @@ class="cust_form_text" value="">;" id="SearcHResultSContactsBox"> -
          CONTACTS SEARCH RESULTS:             close [X]
    +
                      [X]

    \n";} + {echo "

    \n";} ?> -
    Search Results
    +


     
    -
          SEARCH FOR A LEAD:             close [X]
    +
                      [X]

    \n";} + {echo "

    \n";} ?>

    - Notes: when doing a search for a lead, the phone number, lead ID or are the best fields to use.
    Using the other fields may be slower. Lead searching does not allow for wildcard or partial search terms.
    Lead search requests are all logged in the system. +



    - + - + - + @@ -16120,7 +16121,7 @@ class="cust_form_text" value="">: - +
    Phone Number:
    Phone Number Fields: - Main Phone Number - Alternate Phone Number - Address3 Phone Number + + +
    Lead ID:
    :

    SUBMIT SEARCH             reset form

               


      @@ -16128,102 +16129,102 @@ class="cust_form_text" value="">;" id="SearcHResultSDisplaYBox"> -
          SEARCH RESULTS:             close [X]
    +
                      [X]

    \n";} + {echo "

    \n";} ?> -
    Search Results
    +


     
    -
          CALL NOTES LOG:             close [X]
    +
                      [X]

    \n";} + {echo "

    \n";} ?> -
    Call Notes List
    +


      - Close Info Box +
    -
          Customer Information:             close [X] +
                      [X]

    \n";} + {echo "

    \n";} ?> - Lead Info +

      - Close Info Box +
    -
    SELECT A PAUSE CODE :
    +


    \n";} + {echo "

    \n";} ?> - Pause Code Selection +

     
    -
    SELECT A PRESET :
    +


    \n";} + {echo "

    \n";} ?> - Presets Selection +
    -
    SELECT A GROUP ALIAS :
    +


    \n";} + {echo "

    \n";} ?> - Group Alias Selection +

     
    -
    SELECT A DIAL IN-GROUP :
    +


    \n";} + {echo "

    \n";} ?> - Dial In-Group Selection +

     
    -
    ALERT :
    +

        -

    Go Back +

    -
    Another live agent session was open using your user ID. It has been disabled. Click OK to continue to the agent screen.
    OK --> +

    -->
    -
    This agent screen was not opened properly.
    +

    @@ -16237,7 +16238,7 @@ class="cust_form_text" value=""> - + @@ -16248,25 +16249,25 @@ class="cust_form_text" value="">;" id="AlertBox">
    -   Agent Alert! +  
    diff --git a/www/agc/vicidial_redirect.php b/www/agc/vicidial_redirect.php index 6eded8cd..27ec7b99 100644 --- a/www/agc/vicidial_redirect.php +++ b/www/agc/vicidial_redirect.php @@ -1,12 +1,14 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # CHANGELOG # 71202-1546 - First Build # 90508-0727 - Changed to PHP long tags +# 140811-0852 - Changed to use QXZ function for echoing text # +require_once("functions.php"); if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} @@ -36,12 +38,12 @@ if (!isset($phone_pass)) $URL = "http://192.168.1.60/agc/vicidial.php?phone_login=$phone_login&phone_pass=$phone_pass&DB=$DB&VD_login=$VD_login&VD_pass=$VD_pass&VD_campaign=$VD_campaign&relogin=$relogin"; -echo"Agent Redirect\n"; +echo""._QXZ("Agent Redirect")."\n"; echo"\n"; echo"\n"; echo"\n"; echo"\n"; -echo"click here to continue. . .\n"; +echo""._QXZ("click here to continue").". . .\n"; exit; ?> diff --git a/www/agc/voicemail_check.php b/www/agc/voicemail_check.php index 3df61d0f..708eac98 100644 --- a/www/agc/voicemail_check.php +++ b/www/agc/voicemail_check.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to check whether the voicemail box on the server defined has new and old messages # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -26,6 +26,7 @@ # 130328-0025 - Converted ereg to preg functions # 130603-2202 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes # 130802-1038 - Changed to PHP mysqli functions +# 140811-0801 - Changed to use QXZ function for echoing text # require_once("dbconnect_mysqli.php"); @@ -67,14 +68,14 @@ if ($auth_message == 'GOOD') if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { - echo "Invalid Username/Password: |$user|$pass|$auth_message|\n"; + echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n"; exit; } else { if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) { - echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n"; + echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n"; exit; } else @@ -86,7 +87,7 @@ else $SNauth=$row[0]; if($SNauth==0) { - echo "Invalid session_name: |$session_name|$server_ip|\n"; + echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n"; exit; } else @@ -101,7 +102,7 @@ if ($format=='debug') echo "\n"; echo "\n"; echo "\n"; - echo "Voicemail Check"; + echo "<title>"._QXZ("Voicemail Check"); echo "\n"; echo "\n"; echo "\n"; @@ -112,7 +113,7 @@ $row=''; $rowx=''; if (strlen($vmail_box)<1) { $channel_live=0; - echo "voicemail box $vmail_box is not valid\n"; + echo _QXZ("voicemail box $vmail_box is not valid\n"); exit; } else
     

    -alert +" alt="alert" border="0">
     

    - Alert Box +

    - +