From 633badd8d48448ed0a57a3d926b042ce2b45bb9c Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 1 Nov 2019 20:43:18 +0000 Subject: [PATCH] git-svn-id: svn://192.168.202.10@3151 3d104415-ff17-0410-8863-d5cf3c621b8a --- UPGRADE | 9 + agi/VD_amd.agi | 16 + bin/AST_flush_DBqueue.pl | 22 + extras/MySQL_AST_CREATE_tables.sql | 44 +- extras/upgrade_2.12.sql | 4 +- extras/upgrade_2.14.sql | 41 +- www/agc/images/vdc_tab_script2.gif | Bin 0 -> 1432 bytes www/agc/images/vdc_tab_script2_es.gif | Bin 0 -> 1543 bytes www/agc/images/vdc_tab_script2_jp.gif | Bin 0 -> 889 bytes www/agc/vdc_db_query.php | 242 +++- www/agc/vdc_script_display.php | 25 +- www/agc/vicidial.php | 537 ++++++++- www/vicidial/AST_AMD_log_report.php | 12 +- www/vicidial/AST_API_log_report.php | 30 +- www/vicidial/AST_CLOSER_service_level.php | 4 +- www/vicidial/AST_CLOSERstats.php | 13 +- www/vicidial/AST_CLOSERstats_v2.php | 14 +- www/vicidial/AST_CLOSERsummary_hourly.php | 20 +- www/vicidial/AST_DIDstats.php | 4 +- www/vicidial/AST_DIDstats_v2.php | 4 +- www/vicidial/AST_IVRstats.php | 8 +- www/vicidial/AST_LISTS_campaign_stats.php | 4 +- www/vicidial/AST_LISTS_pass_report.php | 2 +- www/vicidial/AST_OUTBOUNDsummary_interval.php | 4 +- www/vicidial/AST_VDADstats.php | 10 +- www/vicidial/AST_agentDIDstats.php | 2 +- www/vicidial/AST_agent_days_detail.php | 4 +- www/vicidial/AST_agent_days_time.php | 2 +- www/vicidial/AST_agent_debug_log_report.php | 4 +- www/vicidial/AST_agent_inbound_status.php | 70 +- www/vicidial/AST_agent_status_detail.php | 56 +- www/vicidial/AST_agent_time_detail.php | 4 +- www/vicidial/AST_agent_timeclock_detail.php | 4 +- .../AST_campaign_status_list_report.php | 4 +- www/vicidial/AST_carrier_log_report.php | 4 +- www/vicidial/AST_chat_log_report.php | 14 +- www/vicidial/AST_dial_log_report.php | 4 +- www/vicidial/AST_email_log_report.php | 4 +- www/vicidial/AST_hangup_cause_report.php | 4 +- www/vicidial/AST_inbound_forecasting.php | 2 +- www/vicidial/AST_parkstats.php | 6 +- .../AST_performance_comparison_report.php | 4 +- www/vicidial/AST_recording_log_report.php | 12 +- www/vicidial/AST_rt_monitor_log_report.php | 34 +- www/vicidial/AST_source_vlc_status_report.php | 14 +- www/vicidial/AST_team_performance_detail.php | 4 +- www/vicidial/AST_timeonVDADall.php | 6 +- www/vicidial/AST_timeonVDADallSUMMARY.php | 4 +- www/vicidial/AST_url_log_report.php | 12 +- www/vicidial/AST_user_group_hourly_detail.php | 16 +- .../AST_user_group_hourly_detail_v2.php | 14 +- www/vicidial/AST_usergroup_login_report.php | 4 +- www/vicidial/AST_webserver_url_report.php | 4 +- www/vicidial/Erlang_report.php | 4 +- www/vicidial/admin.php | 1035 +++++++++++++---- www/vicidial/admin_NANPA_updater.php | 10 +- www/vicidial/admin_bulk_tools.php | 34 +- www/vicidial/admin_campaign_multi_alt.php | 4 +- www/vicidial/admin_email_accounts.php | 28 +- www/vicidial/admin_header.php | 31 +- www/vicidial/admin_languages.php | 16 +- www/vicidial/admin_listloader_fourth_gen.php | 10 +- www/vicidial/admin_lists_custom.php | 56 +- www/vicidial/admin_phones_bulk_insert.php | 10 +- www/vicidial/admin_soundboard.php | 26 +- www/vicidial/audio_store.php | 4 +- www/vicidial/call_report_export.php | 22 +- www/vicidial/call_report_export_carrier.php | 20 +- www/vicidial/callbacks_bulk_change.php | 4 +- www/vicidial/callbacks_bulk_move.php | 8 +- www/vicidial/callcard_admin.php | 12 +- .../called_counts_multilist_report.php | 3 +- www/vicidial/campaign_debug.php | 10 +- www/vicidial/fcstats.php | 6 +- www/vicidial/fcstats_detail.php | 22 +- www/vicidial/functions.php | 2 +- www/vicidial/graphcanvas.inc | 10 +- www/vicidial/group_hourly_stats.php | 2 +- www/vicidial/help.php | 96 +- www/vicidial/help_documentation.txt | 6 +- www/vicidial/images/icon_vm_messages.png | Bin 0 -> 1314 bytes www/vicidial/lead_report_export.php | 20 +- www/vicidial/lead_tools_advanced.php | 12 +- www/vicidial/list_split.php | 6 +- www/vicidial/realtime_report.php | 22 +- www/vicidial/record_conf_1_hour.php | 2 +- www/vicidial/recording_lookup.php | 2 +- www/vicidial/reset_campaign_lists.php | 2 +- www/vicidial/timeclock_report.php | 8 +- www/vicidial/timeclock_status.php | 3 +- www/vicidial/user_group_bulk_change.php | 3 +- .../vicidial_custom_reports_admin.php | 12 +- .../vicidial_whiteboard_functions.php | 2 +- www/vicidial/whiteboard_reports.php | 12 +- 94 files changed, 2185 insertions(+), 797 deletions(-) create mode 100644 www/agc/images/vdc_tab_script2.gif create mode 100644 www/agc/images/vdc_tab_script2_es.gif create mode 100644 www/agc/images/vdc_tab_script2_jp.gif create mode 100644 www/vicidial/images/icon_vm_messages.png diff --git a/UPGRADE b/UPGRADE index d2f23153..0b1c1531 100644 --- a/UPGRADE +++ b/UPGRADE @@ -432,6 +432,15 @@ OTHER CHANGES: with a minimum time threshold. Also, new in-group routing options based on last non-filtered call times +120. Added System Settings option for second agent screen script tab + +121. Added a Campaign option for VoiceMail Message Groups, allowing agents to be + able to select a message to transfer a customer answering machine to + from a list of pre-recorded messages that can be defined by time-of-day. + +122. Added a Campaign option to not send an agent immediately to the disposition + screen after transferring a customer call to a VoiceMail Message. + diff --git a/agi/VD_amd.agi b/agi/VD_amd.agi index 8d580c2d..5fe84413 100644 --- a/agi/VD_amd.agi +++ b/agi/VD_amd.agi @@ -57,6 +57,7 @@ # 190320-2331 - Added more logging options # 190720-1007 - Added Call Quota logging # 191017-1051 - Added option for multiple prompts in DYN messages +# 191029-1243 - Added code for agent-selected message override # $script = 'VD_amd.agi'; @@ -634,6 +635,21 @@ else $sthA->finish(); } + ### Check for agent-selected message override + $stmtA = "SELECT vm_message,user FROM vicidial_agent_vmm_overrides where caller_code='$callerid' order by call_date desc limit 1;"; + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArowsL=$sthA->rows; + if ($sthArowsL > 0) + { + @aryA = $sthA->fetchrow_array; + if ($AGILOG) {$agi_string = "-- AMD user override: |$aryA[0]|$aryA[1]|$DB_am_message_exten|$am_message_exten_override|"; &agi_output;} + $am_message_exten_override = $aryA[0]; + if (length($am_message_exten_override) > 0) + {$DB_am_message_exten = $am_message_exten_override;} + } + $sthA->finish(); + if ($AGILOG) {$agi_string = "-- AMD campaign values: |$VD_campaign_id|$DB_am_message_exten|$DB_amd_send_to_vmx|"; &agi_output;} if ( ( ($DB_amd_send_to_vmx =~ /Y/) || ($force_playback =~ /YES/) ) && (length($DB_am_message_exten) > 0) ) diff --git a/bin/AST_flush_DBqueue.pl b/bin/AST_flush_DBqueue.pl index 373f5c6f..324ac834 100644 --- a/bin/AST_flush_DBqueue.pl +++ b/bin/AST_flush_DBqueue.pl @@ -29,6 +29,7 @@ # 190214-1758 - Fix for cid_recent_ table optimization issue # 190222-1321 - Added optional flushing of vicidial_sessions_recent table # 190503-1606 - Added flushing of vicidial_sip_event_recent table +# 191029-1555 - Added flushing of vicidial_agent_vmm_overrides table # $session_flush=0; @@ -271,6 +272,12 @@ if($DB){print STDERR "\n|$stmtA|\n";} if (!$T) { $affected_rows = $dbhA->do($stmtA);} if (!$Q) {print " - cid_channels_recent flush: $affected_rows rows\n";} +$stmtA = "DELETE from vicidial_agent_vmm_overrides where call_date < '$flush_time';"; +if($DB){print STDERR "\n|$stmtA|\n";} +if (!$T) { $affected_rows = $dbhA->do($stmtA);} +if (!$Q) {print " - vicidial_agent_vmm_overrides flush: $affected_rows rows\n";} + + if ($SSsip_event_logging > 0) { $stmtA = "DELETE from vicidial_sip_event_recent where invite_date < '$SQLdate_NEG_2hour';"; @@ -348,6 +355,21 @@ if (!$T) } if (!$Q) {print " - OPTIMIZE cid_channels_recent \n";} + +$stmtA = "OPTIMIZE table vicidial_agent_vmm_overrides;"; +if($DB){print STDERR "\n|$stmtA|\n";} +if (!$T) + { + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArows=$sthA->rows; + @aryA = $sthA->fetchrow_array; + if (!$Q) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";} + $sthA->finish(); + } +if (!$Q) {print " - OPTIMIZE vicidial_agent_vmm_overrides \n";} + + if ($SSsip_event_logging > 0) { $stmtA = "OPTIMIZE table vicidial_sip_event_recent;"; diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index 2a30f98c..aac8ae2d 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -771,7 +771,7 @@ campaign_rec_exten VARCHAR(20) default '8309', campaign_recording ENUM('NEVER','ONDEMAND','ALLCALLS','ALLFORCE') default 'ONDEMAND', campaign_rec_filename VARCHAR(50) default 'FULLDATE_CUSTPHONE', campaign_script VARCHAR(20), -get_call_launch ENUM('NONE','SCRIPT','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','PREVIEW_WEBFORM','PREVIEW_WEBFORMTWO','PREVIEW_WEBFORMTHREE') default 'NONE', +get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','PREVIEW_WEBFORM','PREVIEW_WEBFORMTWO','PREVIEW_WEBFORMTHREE') default 'NONE', am_message_exten VARCHAR(100) default 'vm-goodbye', amd_send_to_vmx ENUM('Y','N') default 'N', xferconf_a_dtmf VARCHAR(50), @@ -1030,7 +1030,10 @@ auto_active_list_new VARCHAR(20) default 'DISABLED', call_quota_lead_ranking VARCHAR(40) default 'DISABLED', call_quota_process_running TINYINT(3) default '0', call_quota_last_run_date DATETIME, -sip_event_logging VARCHAR(40) default 'DISABLED' +sip_event_logging VARCHAR(40) default 'DISABLED', +campaign_script_two VARCHAR(20) default '', +leave_vm_no_dispo ENUM('ENABLED','DISABLED') default 'DISABLED', +leave_vm_message_group_id VARCHAR(40) default '---NONE---' ) ENGINE=MyISAM; CREATE TABLE vicidial_lists ( @@ -1152,7 +1155,7 @@ voicemail_ext VARCHAR(10), next_agent_call VARCHAR(40) default 'longest_wait_time', fronter_display ENUM('Y','N') default 'Y', ingroup_script VARCHAR(20), -get_call_launch ENUM('NONE','SCRIPT','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','EMAIL') default 'NONE', +get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','EMAIL') default 'NONE', xferconf_a_dtmf VARCHAR(50), xferconf_a_number VARCHAR(50), xferconf_b_dtmf VARCHAR(50), @@ -1314,7 +1317,8 @@ cid_cb_invalid_filename TEXT, cid_cb_reenter_filename TEXT, cid_cb_error_filename TEXT, place_in_line_caller_number_filename TEXT, -place_in_line_you_next_filename TEXT +place_in_line_you_next_filename TEXT, +ingroup_script_two VARCHAR(20) default '' ) ENGINE=MyISAM; CREATE TABLE vicidial_stations ( @@ -1832,7 +1836,8 @@ mute_recordings ENUM('1','0') default '0', user_admin_redirect ENUM('1','0') default '0', list_status_modification_confirmation ENUM('1','0') default '0', sip_event_logging ENUM('0','1','2','3','4','5','6','7') default '0', -call_quota_lead_ranking ENUM('0','1','2') default '0' +call_quota_lead_ranking ENUM('0','1','2') default '0', +enable_second_script ENUM('0','1') default '0' ) ENGINE=MyISAM; CREATE TABLE vicidial_campaigns_list_mix ( @@ -4208,6 +4213,33 @@ index(caller_code), index(result) ) ENGINE=MyISAM; +CREATE TABLE leave_vm_message_groups ( +leave_vm_message_group_id VARCHAR(40) PRIMARY KEY NOT NULL, +leave_vm_message_group_notes VARCHAR(255) default '', +active ENUM('Y','N') default 'Y', +user_group VARCHAR(20) default '---ALL---' +) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; + +CREATE TABLE leave_vm_message_groups_entries ( +leave_vm_message_group_id VARCHAR(40) NOT NULL, +audio_filename VARCHAR(255) NOT NULL, +audio_name VARCHAR(255) default '', +rank SMALLINT(5) default '0', +time_start VARCHAR(4) default '0000', +time_end VARCHAR(4) default '2400' +) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; + +CREATE TABLE vicidial_agent_vmm_overrides ( +call_date DATETIME, +caller_code VARCHAR(30) default '', +lead_id INT(9) UNSIGNED, +user VARCHAR(20) default '', +vm_message VARCHAR(255) default '', +index (caller_code), +index (call_date), +index (lead_id) +) ENGINE=MyISAM; + ALTER TABLE vicidial_email_list MODIFY message text character set utf8; @@ -4533,4 +4565,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_ UPDATE system_settings set vdc_agent_api_active='1'; -UPDATE system_settings SET db_schema_version='1577',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1578',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/extras/upgrade_2.12.sql b/extras/upgrade_2.12.sql index 31be5eae..543a4329 100644 --- a/extras/upgrade_2.12.sql +++ b/extras/upgrade_2.12.sql @@ -20,8 +20,8 @@ ALTER TABLE vicidial_campaigns ADD web_form_address_three TEXT; ALTER TABLE vicidial_lists ADD web_form_address_three TEXT; ALTER TABLE vicidial_inbound_groups ADD web_form_address_three TEXT; -ALTER TABLE vicidial_campaigns MODIFY get_call_launch ENUM('NONE','SCRIPT','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM') default 'NONE'; -ALTER TABLE vicidial_inbound_groups MODIFY get_call_launch ENUM('NONE','SCRIPT','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM') default 'NONE'; +ALTER TABLE vicidial_campaigns MODIFY get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','PREVIEW_WEBFORM','PREVIEW_WEBFORMTWO','PREVIEW_WEBFORMTHREE') default 'NONE'; +ALTER TABLE vicidial_inbound_groups MODIFY get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM') default 'NONE'; UPDATE system_settings SET db_schema_version='1408',db_schema_update_date=NOW() where db_schema_version < 1408; diff --git a/extras/upgrade_2.14.sql b/extras/upgrade_2.14.sql index 2868c269..e60dc5e3 100644 --- a/extras/upgrade_2.14.sql +++ b/extras/upgrade_2.14.sql @@ -446,7 +446,7 @@ ALTER TABLE vicidial_campaigns ADD agent_screen_time_display VARCHAR(40) default UPDATE system_settings SET db_schema_version='1527',db_schema_update_date=NOW() where db_schema_version < 1527; -ALTER TABLE vicidial_campaigns MODIFY get_call_launch ENUM('NONE','SCRIPT','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','PREVIEW_WEBFORM','PREVIEW_WEBFORMTWO','PREVIEW_WEBFORMTHREE') default 'NONE'; +ALTER TABLE vicidial_campaigns MODIFY get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','PREVIEW_WEBFORM','PREVIEW_WEBFORMTWO','PREVIEW_WEBFORMTHREE') default 'NONE'; UPDATE system_settings SET db_schema_version='1528',db_schema_update_date=NOW() where db_schema_version < 1528; @@ -1069,3 +1069,42 @@ ALTER TABLE vicidial_live_agents ADD last_inbound_call_time_filtered DATETIME; ALTER TABLE vicidial_live_agents ADD last_inbound_call_finish_filtered DATETIME; UPDATE system_settings SET db_schema_version='1577',db_schema_update_date=NOW() where db_schema_version < 1577; + +ALTER TABLE system_settings ADD enable_second_script ENUM('0','1') default '0'; + +ALTER TABLE vicidial_inbound_groups ADD ingroup_script_two VARCHAR(20) default ''; +ALTER TABLE vicidial_inbound_groups MODIFY get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','EMAIL') default 'NONE'; + +ALTER TABLE vicidial_campaigns ADD campaign_script_two VARCHAR(20) default ''; +ALTER TABLE vicidial_campaigns MODIFY get_call_launch ENUM('NONE','SCRIPT','SCRIPTTWO','WEBFORM','WEBFORMTWO','WEBFORMTHREE','FORM','PREVIEW_WEBFORM','PREVIEW_WEBFORMTWO','PREVIEW_WEBFORMTHREE') default 'NONE'; +ALTER TABLE vicidial_campaigns ADD leave_vm_no_dispo ENUM('ENABLED','DISABLED') default 'DISABLED'; +ALTER TABLE vicidial_campaigns ADD leave_vm_message_group_id VARCHAR(40) default '---NONE---'; + +CREATE TABLE leave_vm_message_groups ( +leave_vm_message_group_id VARCHAR(40) PRIMARY KEY NOT NULL, +leave_vm_message_group_notes VARCHAR(255) default '', +active ENUM('Y','N') default 'Y', +user_group VARCHAR(20) default '---ALL---' +) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; + +CREATE TABLE leave_vm_message_groups_entries ( +leave_vm_message_group_id VARCHAR(40) NOT NULL, +audio_filename VARCHAR(255) NOT NULL, +audio_name VARCHAR(255) default '', +rank SMALLINT(5) default '0', +time_start VARCHAR(4) default '0000', +time_end VARCHAR(4) default '2400' +) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; + +CREATE TABLE vicidial_agent_vmm_overrides ( +call_date DATETIME, +caller_code VARCHAR(30) default '', +lead_id INT(9) UNSIGNED, +user VARCHAR(20) default '', +vm_message VARCHAR(255) default '', +index (caller_code), +index (call_date), +index (lead_id) +) ENGINE=MyISAM; + +UPDATE system_settings SET db_schema_version='1578',db_schema_update_date=NOW() where db_schema_version < 1578; diff --git a/www/agc/images/vdc_tab_script2.gif b/www/agc/images/vdc_tab_script2.gif new file mode 100644 index 0000000000000000000000000000000000000000..33cccba1bb9b19bbad019e2c359792e1340afc88 GIT binary patch literal 1432 zcmeIx=}(h)0KoBIpVm@ng+6U5=XyXn=MaV)1qpeur9ACuEXXMet;kRpkOCXwaBDdP zxmHZUf~Xa*L{WipC}%-R84zp{kPxmmV`Re@j2Xv5#Ld59Z}<5VzR5RIDBuRmcz^*m z)!<(k3FMR=+9?1=jZS59~c-I z6cohea)X0|LqbAALqo&D!Vm=E@pybbUmy^mC@K<(#A2~TB8iTUj){qhjg5_qi;Its zPe@2ePEJlqNl8sjl}e>)X=xc58JU@xa=APwCnq;IH!m+QKR>^qprEj@u&Ai0xVTuU zRF;&Kl$Ms3m6es3mseC&R8>{g)YPa{s`~nRwOZZK(9qb}c((u;R(tpE-G>h!K6>=1t*!0xbJcW-a+!~gzs0ro!3%So5zrJrTxpU*qTiWG_^fc-ZPV*@^bLm&6} zI0_)_10QQwv|T$=N}&3lLbGEyXq}s=1?_0nS33rTmC(+|gbT@mRj$Gu4o8UfDnImd zXSxt&_(bFgfASnhp@gO7B)v*oH z4b}kQ7PC1P7ZP)tdtsE-Rzf}HdMTXT;|Hizs*Ej{j@BWR3OXbUs?b*Yyn!_4N+Hw_ zea}6KWn !)z8awfCkmdLWAGYIQWUR`OneXR6C86-(i2Zz7GUZZbohiPAqZj6^{9 zOc;8DMQZtZq2L_bbOl4}@JYEM^ZJnhNR-?6Y0)HLbJ~0VI{@xjuCDyxnvU7l!Pm{2 z+Hb5NDgVz+)8ScQMEdXCR!V>Z;_6_S0iBVpW+}FBL%^GmkyQL8Yv(e)dd2D!L3IsK z9DMNJaKpW}C16!?Jc^D1X_~(hPt%^U+4AOjkMKA+xYryZU`Y^HWv!!$9i83Y?EEbX z5W3&e7ZH55Sd)}!JD?cnhx{4|)1i2{wbH)60|U%S(&duRcEig6emWqn*pQ^Y7m*wb z0Chjpp`P-&PD!wb$?N6rK_s#cR=f@1XGLi@Q35b-e=V2CAMuJvU2NjtES$XWc<>Sz zBH*j^T9=D;Q6p=NEM26}gEP(-enZ`kDc*53b-T(JxC3X&WlYNZkYO4P_&QL0 z85tpwNE8ZXY;251qfJaqOifMA%*@Qq%`Ge}Fc=ILi^bt^cs!m!AXr*j z?%%)P%F2pJB$7xZGMQ{^YfGU}s8p(*ot?eCy@P{;qoX5@Mss#{c5!iWb8~ZdclYq{ zpwsD|o}NBFKEA%betv%b{{Df1fk8n*$BrFiFc?fGlf`1O*=!Dn!{u^$JRYCVKYsjp zSXfwicz9%FWK>j?Kp+qbg{M!Sj*gCwjg5_qi;ItsPe@2eOiWBpP8Nwosi~=HX=!K9 zoXN<@ICt(`W@hI3^XId&vT|~Aa&vPpUAmN)mv`mLm8(~;=I7^&#p0r(B8fy&Qc@z7 zN@X%xX=!O$Sy_2`c|}D|cNRaI5h)zwO+vZkh{wzjseuCBhm{`&Rn4Gj&A zjg3uBP0h{CEiEl-wYs&nRin|gwY9akx8J#Q=kDFR9UUF_@88#IwOw6Z-QC?iJv|Q| zJb3izQEzYWYgEG{lCEiElCFR!euynOj`b#--Z zZEbyh-C!_mY;0_9Zft_AYH$kX zjqS6+Xr92HKRx-r{kAMCJ&gE{!L~Xn3lhog|11+*SMsO_l3oc|5m8LCJJ^(Iq`3h= z)#9YK-WT+iPc}l0!HrxEtj{C`3Ig>WA=|Cv%wlhx*7UMgI&T320~E7|>@NOFxH;ja z3vg7|!@UUHaxa}X@}Wka9tw2(sF9Tey@t6@7q|5{PqaCDBN*Z%H{66+U_jC6X!@Sh zg+b~3@2hx+it*}O=rpHT+BHCdpBf2i3g!~RSG>|sv=Au;cwDj?0ghy3bD*GhptIJL z7ygt~n;(wei+(7~aphsB)d6JZbFjW*Ie3DL%N~{VY-9FuC zCDI54Y_ZdDges|YH~4j;g=!vRKowyuB%q>T-&rVU0I(GqV)PU;h#VGaP$>||m+!FC z%vZJJMg$F2Zwb?34yLQ#7N$_}9T3A9XOMq~Od6=D} aXB@2fD}w(`f?zJ9ACWundJBgE{{I3`i3ytk literal 0 HcmV?d00001 diff --git a/www/agc/images/vdc_tab_script2_jp.gif b/www/agc/images/vdc_tab_script2_jp.gif new file mode 100644 index 0000000000000000000000000000000000000000..6659d7db7f811ef14c56b28abfadd69de4555520 GIT binary patch literal 889 zcmZ?wbhEHbbY_raIOfR!1kB9LEG#VS?Cjj!+&nxy0s;c!;^GPl3W|z~Dk>`K>gw9s z+J=UPW@cuVmX=mlR@Tg@q+0C8edM zH8nL&O-;SMy^|(QTDWlGqD6}qFJ8Q4$&xi|)~sK@e&fcCJ9g~Yy?gh*efy3cJ$n53 z@slS{o;r2v^y$-Q&z?PZ?%c(T7cX79bnV);d-v`=c<|ui!-tO^J$n53@slS{o<4p0 z?AfyyFJ8QQ_3HKO*KgjudH3$!hYueR>r>(&Q;q zr%j(R!^XkYqt$)F%tecrEOu~j_E@-d&Dy07^E_SGZP_}*wQ2RX-CG@+_8i!@|KO1| zhmW3^d3>>>6oct*7bbSMiB1e$np^j_;Ap@Z<_w&qh}&cCYjbf z?}}n#WN-JFHj$ZuO>trt!vz5q_Y0lV<|M@!Jd)Ysc}Po$;eh}5_1pED+W-Il n``hl*z$E0H(0D+m 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00257',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -5100,7 +5101,7 @@ if ($ACTION == 'manDiaLnextCaLL') } ##### END if NOT preview dialing, send the call ##### - $stmt = "SELECT campaign_script from vicidial_campaigns where campaign_id='$campaign';"; + $stmt = "SELECT campaign_script,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00623',$user,$server_ip,$session_name,$one_mysql_log);} @@ -5108,7 +5109,8 @@ if ($ACTION == 'manDiaLnextCaLL') if ($VC_script_ct > 0) { $row=mysqli_fetch_row($rslt); - $VDCL_campaign_script = $row[0]; + $VDCL_campaign_script = $row[0]; + $VDCL_campaign_script_two = $row[1]; } ##### find if script contains recording fields @@ -5255,6 +5257,20 @@ if ($ACTION == 'manDiaLnextCaLL') $VDCL_ingroup_script_color = $row[0]; } } + $VDCL_ingroup_script_color_two=''; + if ( (strlen($VDCL_campaign_script_two)>1) and ($VDCL_campaign_script_two != 'NONE') ) + { + $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_campaign_script_two';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00625',$user,$server_ip,$session_name,$one_mysql_log);} + $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); + if ($VDIG_scrptcolor_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $VDCL_ingroup_script_color_two = $row[0]; + } + } $comments = preg_replace("/\r/i",'',$comments); @@ -5297,7 +5313,7 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $source_id . "\n"; $LeaD_InfO .= $rank . "\n"; $LeaD_InfO .= $owner . "\n"; - $LeaD_InfO .= "\n"; + $LeaD_InfO .= $VDCL_campaign_script . "\n"; $LeaD_InfO .= $script_recording_delay . "\n"; $LeaD_InfO .= $VDCL_xferconf_a_number . "\n"; $LeaD_InfO .= $VDCL_xferconf_b_number . "\n"; @@ -5321,6 +5337,8 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $status_group_gather_data . "\n"; $LeaD_InfO .= $call_date . "\n"; $LeaD_InfO .= $default_xfer_group . "\n"; + $LeaD_InfO .= $VDCL_campaign_script_two . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n"; echo $LeaD_InfO; } @@ -8709,7 +8727,7 @@ if ($ACTION == 'VDADcheckINCOMING') $script_recording_delay = $row[0]; } - $stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action,timer_action_message,timer_action_seconds,timer_action_destination from vicidial_campaigns where campaign_id='$campaign';"; + $stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action,timer_action_message,timer_action_seconds,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00114',$user,$server_ip,$session_name,$one_mysql_log);} @@ -8734,6 +8752,7 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_timer_action_message = $row[13]; $VDCL_timer_action_seconds = $row[14]; $VDCL_timer_action_destination = $row[15]; + $VDCL_campaign_script_two = $row[16]; } $VDCL_group_web=''; @@ -8790,8 +8809,22 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_ingroup_script_color = $row[0]; } } + $VDCL_ingroup_script_color_two=''; + if ( (strlen($VDCL_campaign_script_two)>1) and ($VDCL_campaign_script_two != 'NONE') ) + { + $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_campaign_script_two';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); + if ($VDIG_scrptcolor_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $VDCL_ingroup_script_color_two = $row[0]; + } + } - echo "$VDCL_group_web|$VDCL_group_name||||$VDCL_campaign_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|X|X||||$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number||||$VDCL_timer_action_destination||||||$VDCL_group_web_three|$VDCL_ingroup_script_color|\n|\n"; + echo "$VDCL_group_web|$VDCL_group_name||||$VDCL_campaign_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|X|X||||$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number||||$VDCL_timer_action_destination||||||$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_campaign_script_two|$VDCL_ingroup_script_color_two\n|\n"; if (preg_match('/X/',$dialed_label)) { @@ -8856,7 +8889,7 @@ if ($ACTION == 'VDADcheckINCOMING') $script_recording_delay=0; ##### find if script contains recording fields - $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_inbound_groups vig WHERE group_id='$VDADchannel_group' and vs.script_id=vig.ingroup_script and script_text LIKE \"%--A--recording_%\";"; + $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_inbound_groups vig WHERE group_id='$VDADchannel_group' and ( (vs.script_id=vig.ingroup_script) or (vs.script_id=vig.ingroup_script_two) ) and script_text LIKE \"%--A--recording_%\";"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00262',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -8867,7 +8900,7 @@ if ($ACTION == 'VDADcheckINCOMING') $script_recording_delay = $row[0]; } - $stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,inbound_survey from vicidial_inbound_groups where group_id='$VDADchannel_group';"; + $stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,inbound_survey,ingroup_script_two from vicidial_inbound_groups where group_id='$VDADchannel_group';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00119',$user,$server_ip,$session_name,$one_mysql_log);} @@ -8903,10 +8936,11 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_timer_action_destination = $row[25]; $VDCL_group_web_three = stripslashes($row[26]); $VDCL_inbound_survey = $row[28]; + $VDCL_ingroup_script_two = $row[29]; $status_group_gather_data = status_group_gather($row[27],'INGROUP'); - $stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,default_xfer_group from vicidial_campaigns where campaign_id='$campaign';"; + $stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,default_xfer_group,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00181',$user,$server_ip,$session_name,$one_mysql_log);} @@ -8961,6 +8995,21 @@ if ($ACTION == 'VDADcheckINCOMING') $script_recording_delay = $row[0]; } } + if ( ( (preg_match('/NONE/',$VDCL_ingroup_script_two)) and (strlen($VDCL_ingroup_script_two) < 5) ) or (strlen($VDCL_ingroup_script_two) < 1) ) + { + $VDCL_ingroup_script_two = $row[16]; + ##### find if script contains recording fields + $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_campaigns vc WHERE campaign_id='$campaign' and vs.script_id=vc.campaign_script_two and script_text LIKE \"%--A--recording_%\";"; + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00263',$user,$server_ip,$session_name,$one_mysql_log);} + if ($DB) {echo "$stmt\n";} + $vs_vc_ct = mysqli_num_rows($rslt); + if ($vs_vc_ct > 0) + { + $row=mysqli_fetch_row($rslt); + if ($row[0] > 0) {$script_recording_delay++;} + } + } } $stmt = "SELECT group_web_vars from vicidial_inbound_group_agents where group_id='$VDADchannel_group' and user='$user';"; @@ -9015,7 +9064,7 @@ if ($ACTION == 'VDADcheckINCOMING') } else { - $stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination from vicidial_campaigns where campaign_id='$VDADchannel_group';"; + $stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$VDADchannel_group';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00121',$user,$server_ip,$session_name,$one_mysql_log);} @@ -9039,11 +9088,12 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_xferconf_d_number = $row[13]; $VDCL_xferconf_e_number = $row[14]; $VDCL_timer_action_destination = $row[15]; + $VDCL_ingroup_script_two = $row[16]; } $script_recording_delay=0; ##### find if script contains recording fields - $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_campaigns vc WHERE campaign_id='$VDADchannel_group' and vs.script_id=vc.campaign_script and script_text LIKE \"%--A--recording_%\";"; + $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_campaigns vc WHERE campaign_id='$VDADchannel_group' and ( (vs.script_id=vc.campaign_script) or (vs.script_id=vc.campaign_script_two) ) and script_text LIKE \"%--A--recording_%\";"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00264',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -9095,6 +9145,20 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_ingroup_script_color = $row[0]; } } + $VDCL_ingroup_script_color_two=''; + if ( (strlen($VDCL_ingroup_script_two)>1) and ($VDCL_ingroup_script_two != 'NONE') ) + { + $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script_two';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); + if ($VDIG_scrptcolor_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $VDCL_ingroup_script_color_two = $row[0]; + } + } ### Check for List ID override settings if (strlen($list_id)>0) @@ -9168,8 +9232,8 @@ if ($ACTION == 'VDADcheckINCOMING') } ### if web form is set then send on to vicidial.php for override of WEB_FORM address - if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|\n";} - else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|\n";} + if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";} + else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";} $stmt = "SELECT full_name from vicidial_users where user='$tsr';"; if ($DB) {echo "$stmt\n";} @@ -9322,6 +9386,8 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $DID_custom_five . "\n"; $LeaD_InfO .= $status_group_gather_data . "\n"; $LeaD_InfO .= $call_date . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_two . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n"; echo $LeaD_InfO; @@ -10258,7 +10324,7 @@ if ($ACTION == 'VDADcheckINCOMINGother') $row=mysqli_fetch_row($rslt); $VDCL_front_VDlog =$row[0]; } - $stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id from vicidial_inbound_groups where group_id='$VDADchannel_group';"; + $stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two from vicidial_inbound_groups where group_id='$VDADchannel_group';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00500',$user,$server_ip,$session_name,$one_mysql_log);} @@ -10293,10 +10359,11 @@ if ($ACTION == 'VDADcheckINCOMINGother') $VDCL_uniqueid_status_prefix = $row[24]; $VDCL_timer_action_destination = $row[25]; $VDCL_group_web_three = stripslashes($row[26]); + $VDCL_ingroup_script_two = $row[28]; $status_group_gather_data = status_group_gather($row[27],'INGROUP'); - $stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination from vicidial_campaigns where campaign_id='$campaign';"; + $stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00501',$user,$server_ip,$session_name,$one_mysql_log);} @@ -10368,7 +10435,7 @@ if ($ACTION == 'VDADcheckINCOMINGother') } else { - $stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination from vicidial_campaigns where campaign_id='$VDADchannel_group';"; + $stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$VDADchannel_group';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00505',$user,$server_ip,$session_name,$one_mysql_log);} @@ -10420,6 +10487,20 @@ if ($ACTION == 'VDADcheckINCOMINGother') $VDCL_ingroup_script_color = $row[0]; } } + $VDCL_ingroup_script_color_two=''; + if ( (strlen($VDCL_ingroup_script_two)>1) and ($VDCL_ingroup_script_two != 'NONE') ) + { + $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script_two';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); + if ($VDIG_scrptcolor_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $VDCL_ingroup_script_color_two = $row[0]; + } + } $VDCL_caller_id_number=''; if (strlen($VDCL_default_group_alias)>1) @@ -10508,8 +10589,8 @@ if ($ACTION == 'VDADcheckINCOMINGother') } ### if web form is set then send on to vicidial.php for override of WEB_FORM address - if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";} - else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";} + if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";} + else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";} $stmt = "SELECT full_name from vicidial_users where user='$tsr';"; if ($DB) {echo "$stmt\n";} @@ -10631,6 +10712,8 @@ if ($ACTION == 'VDADcheckINCOMINGother') $LeaD_InfO .= $DID_custom_five . "\n"; $LeaD_InfO .= $status_group_gather_data . "\n"; $LeaD_InfO .= $call_date . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_two . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n"; echo $LeaD_InfO; @@ -11357,7 +11440,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $script_recording_delay=0; ##### find if script contains recording fields - $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_inbound_groups vig WHERE group_id='$VDADchannel_group' and vs.script_id=vig.ingroup_script and script_text LIKE \"%--A--recording_%\";"; + $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_inbound_groups vig WHERE group_id='$VDADchannel_group' and ( (vs.script_id=vig.ingroup_script) or (vs.script_id=vig.ingroup_script_two) ) and script_text LIKE \"%--A--recording_%\";"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00467',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -11368,7 +11451,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $script_recording_delay = $row[0]; } - $stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id from vicidial_inbound_groups where group_id='$VDADchannel_group';"; + $stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script from vicidial_inbound_groups where group_id='$VDADchannel_group';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00468',$user,$server_ip,$session_name,$one_mysql_log);} @@ -11403,10 +11486,11 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $VDCL_uniqueid_status_prefix = $row[24]; $VDCL_timer_action_destination = $row[25]; $VDCL_group_web_three = stripslashes($row[26]); + $VDCL_ingroup_script_two = $row[28]; $status_group_gather_data = status_group_gather($row[27],'INGROUP'); - $stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination from vicidial_campaigns where campaign_id='$campaign';"; + $stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00469',$user,$server_ip,$session_name,$one_mysql_log);} @@ -11448,7 +11532,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $VDCL_ingroup_script = $row[0]; $script_recording_delay=0; ##### find if script contains recording fields - $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_campaigns vc WHERE campaign_id='$campaign' and vs.script_id=vc.campaign_script and script_text LIKE \"%--A--recording_%\";"; + $stmt="SELECT count(*) FROM vicidial_scripts vs,vicidial_campaigns vc WHERE campaign_id='$campaign' and ( (vs.script_id=vc.campaign_script) or (vs.script_id=vc.campaign_script_two) ) and script_text LIKE \"%--A--recording_%\";"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00470',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -11503,6 +11587,20 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $VDCL_ingroup_script_color = $row[0]; } } + $VDCL_ingroup_script_color_two=''; + if ( (strlen($VDCL_ingroup_script_two)>1) and ($VDCL_ingroup_script_two != 'NONE') ) + { + $stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script_two';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $VDIG_scrptcolor_ct = mysqli_num_rows($rslt); + if ($VDIG_scrptcolor_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $VDCL_ingroup_script_color_two = $row[0]; + } + } ### Check for List ID override settings @@ -11577,8 +11675,8 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') } ### if web form is set then send on to vicidial.php for override of WEB_FORM address - if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";} - else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";} + if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";} + else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";} $stmt = "SELECT full_name from vicidial_users where user='$tsr';"; if ($DB) {echo "$stmt\n";} @@ -11742,6 +11840,8 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $LeaD_InfO .= $DID_custom_five . "\n"; $LeaD_InfO .= $status_group_gather_data . "\n"; $LeaD_InfO .= $call_date . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_two . "\n"; + $LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n"; echo $LeaD_InfO; @@ -15546,6 +15646,96 @@ if ($ACTION == 'PauseCodeMgrApr') } +################################################################################ +### VMMG_list_build - Build Voicemail Message Groups selection content +################################################################################ +if ($ACTION == 'VMMG_list_build') + { + $HHMM = date("Hi"); + $start_date = ($start_date + 0); + $VMMGaudio_filename = array(); + $VMMGaudio_name = array(); + $VMMGrank = array(); + $VMMGtime_start = array(); + $VMMGtime_end = array(); + + ### Grab Server GMT value from the database + $stmt="SELECT audio_filename,audio_name,rank,time_start,time_end FROM leave_vm_message_groups_entries where leave_vm_message_group_id='$stage' order by rank limit 1000;"; + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $vmmg_recs = mysqli_num_rows($rslt); + $v=0; + while ($vmmg_recs > $v) + { + $row=mysqli_fetch_row($rslt); + $VMMGaudio_filename[$v] = $row[0]; + $VMMGaudio_name[$v] = $row[1]; + $VMMGrank[$v] = $row[2]; + $VMMGtime_start[$v] = $row[3]; + $VMMGtime_end[$v] = $row[4]; + $v++; + } + + $VM_Messages_HTML=''; + $VM_Messages_HTML_rows=''; + $v=0; $rows_found=0; + while ($vmmg_recs > $v) + { + $VMMGtime_start[$v] = ($VMMGtime_start[$v] + 0); + $VMMGtime_end[$v] = ($VMMGtime_end[$v] + 0); + $HHMMdebug = "$start_date $VMMGtime_start[$v] $VMMGtime_end[$v] $HHMM"; + if ( ($start_date >= $VMMGtime_start[$v]) and ($start_date < $VMMGtime_end[$v]) ) + { + $VM_Messages_HTML_rows .= "$VMMGaudio_name[$v]\n"; + + $rows_found++; + } + $VMMGaudio_filename[$v] = $row[0]; + $VMMGaudio_name[$v] = $row[1]; + $VMMGrank[$v] = $row[2]; + $v++; + } + + if ($rows_found > 0) + { + $VM_Messages_HTML .= "
\n"; + $VM_Messages_HTML .= "\n"; + $VM_Messages_HTML .= $VM_Messages_HTML_rows; + $VM_Messages_HTML .= "
"; + echo "$VM_Messages_HTML\n"; + } + else + { + echo ""._QXZ("ERROR").": "._QXZ("No VM Messages Available")."\n"; + } + + $stage .= "|$rows_found $HHMMdebug"; + } + + +################################################################################ +### VMMG_selected - Log the Voicemail Message to be played for this phone call +################################################################################ +if ($ACTION == 'VMMG_selected') + { + if ( (strlen($MDnextCID) < 17) or (strlen($stage) < 1) ) + { + echo "ERROR: "._QXZ("Call ID or Message not defined")."\n"; + } + else + { + $stmtL="INSERT INTO vicidial_agent_vmm_overrides set call_date=NOW(),caller_code='$MDnextCID',lead_id='$lead_id',user='$user',vm_message='$stage';"; + if ($DB) {echo "|$stmtL|\n";} + $rslt=mysql_to_mysqli($stmtL, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $VAVOaffected_rows = mysqli_affected_rows($link); + echo "SUCCESS: $VAVOaffected_rows $MDnextCID $stage\n"; + } + + $stage .= "|$VAVOaffected_rows $MDnextCID"; + } + + ################################################################################ ### SBC_timezone_build - Build scheduled callbacks timezone select content ################################################################################ diff --git a/www/agc/vdc_script_display.php b/www/agc/vdc_script_display.php index 7bdf8679..bfcb303a 100644 --- a/www/agc/vdc_script_display.php +++ b/www/agc/vdc_script_display.php @@ -40,9 +40,10 @@ # 180224-1406 - Added LOGINvar variables, and options.php $INSERT_ variables # 180327-1356 - Added code for LOCALFQDN conversion to browser-used server URL for script iframes # 191013-2145 - Fixes for PHP7 +# 191031-1158 - Added Script2 feature # -$version = '2.14-34'; +$version = '2.14-35'; $build = '191013-2145'; require_once("dbconnect_mysqli.php"); @@ -153,6 +154,10 @@ if (isset($_GET["camp_script"])) {$camp_script=$_GET["camp_script"];} elseif (isset($_POST["camp_script"])) {$camp_script=$_POST["camp_script"];} if (isset($_GET["in_script"])) {$in_script=$_GET["in_script"];} elseif (isset($_POST["in_script"])) {$in_script=$_POST["in_script"];} +if (isset($_GET["SCRIPTcamp_script"])) {$SCRIPTcamp_script=$_GET["SCRIPTcamp_script"];} + elseif (isset($_POST["SCRIPTcamp_script"])) {$SCRIPTcamp_script=$_POST["SCRIPTcamp_script"];} +if (isset($_GET["SCRIPTin_script"])) {$SCRIPTin_script=$_GET["SCRIPTin_script"];} + elseif (isset($_POST["SCRIPTin_script"])) {$SCRIPTin_script=$_POST["SCRIPTin_script"];} if (isset($_GET["script_width"])) {$script_width=$_GET["script_width"];} elseif (isset($_POST["script_width"])) {$script_width=$_POST["script_width"];} if (isset($_GET["script_height"])) {$script_height=$_GET["script_height"];} @@ -255,6 +260,8 @@ if (isset($_GET["LOGINvarFOUR"])) {$LOGINvarFOUR=$_GET["LOGINvarFOUR"];} elseif (isset($_POST["LOGINvarFOUR"])) {$LOGINvarFOUR=$_POST["LOGINvarFOUR"];} if (isset($_GET["LOGINvarFIVE"])) {$LOGINvarFIVE=$_GET["LOGINvarFIVE"];} elseif (isset($_POST["LOGINvarFIVE"])) {$LOGINvarFIVE=$_POST["LOGINvarFIVE"];} +if (isset($_GET["script_span"])) {$script_span=$_GET["script_span"];} + elseif (isset($_POST["script_span"])) {$script_span=$_POST["script_span"];} header ("Content-type: text/html; charset=utf-8"); @@ -299,6 +306,7 @@ $LOGINvarTWO=preg_replace("/[^-_0-9a-zA-Z]/","",$LOGINvarTWO); $LOGINvarTHREE=preg_replace("/[^-_0-9a-zA-Z]/","",$LOGINvarTHREE); $LOGINvarFOUR=preg_replace("/[^-_0-9a-zA-Z]/","",$LOGINvarFOUR); $LOGINvarFIVE=preg_replace("/[^-_0-9a-zA-Z]/","",$LOGINvarFIVE); +$script_span=preg_replace("/[^-_0-9a-zA-Z]/","",$script_span); ############################################# ##### START SYSTEM_SETTINGS AND USER LANGUAGE LOOKUP ##### @@ -314,7 +322,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,timeclock_end_of_day,agentonly_callback_campaign_lock,custom_fields_enabled,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,timeclock_end_of_day,agentonly_callback_campaign_lock,custom_fields_enabled,enable_languages,language_method,enable_second_script FROM system_settings;"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} @@ -328,6 +336,7 @@ if ($qm_conf_ct > 0) $custom_fields_enabled = $row[3]; $SSenable_languages = $row[4]; $SSlanguage_method = $row[5]; + $SSenable_second_script = $row[6]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -370,10 +379,10 @@ if ($format=='debug') echo "\n"; } -if (strlen($in_script) < 1) - {$call_script = $camp_script;} +if (strlen($SCRIPTin_script) < 1) + {$call_script = $SCRIPTcamp_script;} else - {$call_script = $in_script;} + {$call_script = $SCRIPTin_script;} $ignore_list_script_override='N'; if ($inOUT == 'IN') @@ -391,7 +400,7 @@ if ($inOUT == 'IN') {$ignore_list_script=1;} } -if ($ignore_list_script < 1) +if ( ($ignore_list_script < 1) and ($script_span != 'Script2Contents') ) { # $stmt="SELECT agent_script_override from vicidial_lists where list_id='$list_id';"; $stmt="SELECT if('$inOUT'= 'IN',if(inbound_list_script_override is null or inbound_list_script_override='',agent_script_override,inbound_list_script_override),agent_script_override) from vicidial_lists where list_id='$list_id';"; @@ -656,8 +665,8 @@ $script_text = preg_replace('/--A--dialed_label--B--/i',"$dialed_label",$script_ $script_text = preg_replace('/--A--source_id--B--/i',"$source_id",$script_text); $script_text = preg_replace('/--A--rank--B--/i',"$rank",$script_text); $script_text = preg_replace('/--A--owner--B--/i',"$owner",$script_text); -$script_text = preg_replace('/--A--camp_script--B--/i',"$camp_script",$script_text); -$script_text = preg_replace('/--A--in_script--B--/i',"$in_script",$script_text); +$script_text = preg_replace('/--A--camp_script--B--/i',"$SCRIPTcamp_script",$script_text); +$script_text = preg_replace('/--A--in_script--B--/i',"$SCRIPTin_script",$script_text); $script_text = preg_replace('/--A--script_width--B--/i',"$script_width",$script_text); $script_text = preg_replace('/--A--script_height--B--/i',"$script_height",$script_text); $script_text = preg_replace('/--A--full_script_height--B--/i',"$full_script_height",$script_text); diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 7f72a0cf..6e22b3ea 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -620,10 +620,11 @@ # 190902-0914 - Fix for PHP 7.2 # 190925-1346 - Changes for more SIP Event Action features # 191018-0904 - Added User Inbound Filtered features +# 191101-1150 - Added VM Message Groups features, second script tab # -$version = '2.14-589c'; -$build = '191018-0904'; +$version = '2.14-590c'; +$build = '191101-1150'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -738,7 +739,7 @@ if ($sl_ct > 0) ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock,manual_dial_validation,mute_recordings FROM system_settings;"; +$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock,manual_dial_validation,mute_recordings,enable_second_script FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01001',$VD_login,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -784,6 +785,7 @@ if ($qm_conf_ct > 0) $agentonly_callback_campaign_lock = $row[35]; $SSmanual_dial_validation = $row[36]; $SSmute_recordings = $row[37]; + $SSenable_second_script = $row[38]; } else { @@ -1909,7 +1911,7 @@ else $HKstatusnames = substr("$HKstatusnames", 0, -1); ##### grab the campaign settings - $stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings FROM vicidial_campaigns where campaign_id = '$VD_campaign';"; + $stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two FROM vicidial_campaigns where campaign_id = '$VD_campaign';"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -2072,6 +2074,14 @@ else $three_way_volume_buttons = $row[155]; $manual_dial_validation = $row[156]; $mute_recordings = $row[157]; + $leave_vm_no_dispo = $row[158]; + $leave_vm_message_group_id = $row[159]; + $campaign_script_two = $row[160]; + + if ($leave_vm_no_dispo == 'ENABLED') + {$leave_vm_no_dispo = 'VMNOHANG';} + else + {$leave_vm_no_dispo = '';} if ($SSmute_recordings < 1) {$mute_recordings='N';} @@ -2138,6 +2148,32 @@ else if (preg_match("/LISTID/",$status_display_fields)) {$status_display_LISTID=1;} + if ( (strlen($leave_vm_message_group_id) > 1) and ($leave_vm_message_group_id != '---NONE---') ) + { + $leave_vm_message_group_exists=0; + $stmt="SELECT count(*) from leave_vm_message_groups where leave_vm_message_group_id='$leave_vm_message_group_id' and active='Y';"; + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);} + $vmmg_count = mysqli_num_rows($rslt); + if ($vmmg_count > 0) + { + $row=mysqli_fetch_row($rslt); + if (strlen($row[0])>0) {$leave_vm_message_group_exists=1;} + } + if ($leave_vm_message_group_exists > 0) + { + $stmt="SELECT count(*) from leave_vm_message_groups_entries where leave_vm_message_group_id='$leave_vm_message_group_id';"; + $rslt=mysql_to_mysqli($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);} + $vmmge_count = mysqli_num_rows($rslt); + if ($vmmge_count > 0) + { + $row=mysqli_fetch_row($rslt); + if (strlen($row[0])>0) {$leave_vm_message_group_exists = $row[0];} + } + } + } + if ( ($screen_labels != '--SYSTEM-SETTINGS--') and (strlen($screen_labels)>1) ) { $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 vicidial_screen_labels where label_id='$screen_labels' and active='Y' limit 1;"; @@ -4345,6 +4381,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var VDIC_web_form_address_three = ''; var CalL_ScripT_id = ''; var CalL_ScripT_color = ''; + var CalL_ScripT_id_two = ''; + var CalL_ScripT_color_two = ''; var CalL_AutO_LauncH = ''; var panel_bgcolor = ''; var CusTCB_bgcolor = '#FFFF66'; @@ -4371,6 +4409,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var LIVE_web_vars = ''; var default_web_vars = ''; var campaign_script = ''; + var campaign_script_two = ''; var get_call_launch = ''; var campaign_am_message_exten = ''; var park_on_extension = ''; @@ -4844,9 +4883,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var MDOalt=''; var manual_entry_dial=0; var mute_recordings=''; + var leave_vm_no_dispo=''; + var leave_vm_message_group_id=''; + var leave_vm_message_group_exists=''; var active_rec_channel=''; var trigger_shift_logout=0; var SCRIPTweb_form_vars=''; + var SCRIPT2web_form_vars=''; + var customer_HHMM='0000'; + var SSenable_second_script=''; var DiaLControl_auto_HTML = "\" border=\"0\" alt=\"You are paused\" />"; var DiaLControl_auto_HTML_ready = "\" border=\"0\" alt=\"You are active\" />"; var DiaLControl_auto_HTML_OFF = "\" border=\"0\" alt=\"pause button disabled\" />"; @@ -7165,7 +7210,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.vicidial_form.callserverip.value = ''; if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;} // alert(RedirecTxFEr + "|" + auto_dial_level); - dialedcall_send_hangup(taskdispowindow,'','',no_delete_VDAC); + if (taskdispowindow == 'VMNOHANG') + {button_click_log = button_click_log + "" + SQLdate + "-----VMMessageNoHangup---|";} + else + { + dialedcall_send_hangup(taskdispowindow,'','',no_delete_VDAC); + } } } // END ELSE FOR EMAIL CHECK } @@ -8056,6 +8106,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {VDIC_web_form_address_three = change_data[34];} if (change_data[35].length > 1) {CalL_ScripT_color = change_data[35];} + if (change_data[36].length > 0) + {CalL_ScripT_id_two = change_data[36];} + if (change_data[37].length > 0) + {CalL_ScripT_color_two = change_data[37];} document.vicidial_form.lead_id.value = VDIC_data_VDAC[0]; LeaDPreVDispO = change_array[6]; @@ -8419,6 +8473,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (CalL_ScripT_color.length > 1) {document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;} + if ( (CalL_ScripT_color_two.length > 1) && (SSenable_second_script > 0) ) + {document.getElementById("Script2Contents").style.backgroundColor = CalL_ScripT_color_two;} if (view_scripts == 1) { if (CalL_ScripT_id.length > 0) @@ -8440,6 +8496,25 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { RefresHScript('','YES'); } + if ( (CalL_ScripT_id_TWO.length > 0) && (SSenable_second_script > 0) ) + { + var SCRIPT_web_form = 'http://127.0.0.1/testing.php'; + var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1'); + + if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) ) + { + delayed_script_load = 'YES'; + RefresHScript2('CLEAR'); + } + else + { + load_script_contents('Script2Contents',''); + } + } + else + { + RefresHScript2('','YES'); + } } if (custom_fields_enabled > 0) @@ -8454,6 +8529,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } ScriptPanelToFront(); } + if ( (CalL_AutO_LauncH == 'SCRIPTTWO') && (SSenable_second_script > 0) ) + { + if (delayed_script_load == 'YES') + { + load_script_contents('Script2Contents',''); + } + ScriptPanel2ToFront(); + } if (CalL_AutO_LauncH == 'FORM') { FormPanelToFront(); @@ -8854,7 +8937,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) 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("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\">"; @@ -9615,7 +9698,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) source_id = MDnextResponse_array[34]; document.vicidial_form.rank.value = MDnextResponse_array[35]; document.vicidial_form.owner.value = MDnextResponse_array[36]; - // CalL_ScripT_id = MDnextResponse_array[37]; + CalL_ScripT_id = MDnextResponse_array[37]; script_recording_delay = MDnextResponse_array[38]; CalL_XC_a_NuMber = MDnextResponse_array[39]; CalL_XC_b_NuMber = MDnextResponse_array[40]; @@ -9656,6 +9739,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) status_group_statuses_data = MDnextResponse_array[58]; last_call_date = MDnextResponse_array[59]; LIVE_default_xfer_group = MDnextResponse_array[60]; + CalL_ScripT_id_two = MDnextResponse_array[61]; + CalL_ScripT_color_two = MDnextResponse_array[62]; // build statuses list for disposition screen VARstatuses = []; @@ -9884,6 +9969,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (CalL_ScripT_color.length > 1) {document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;} + if ( (CalL_ScripT_color_two.length > 1) && (SSenable_second_script > 0) ) + {document.getElementById("Script2Contents").style.backgroundColor = CalL_ScripT_color_two;} + if ( (document.vicidial_form.LeadPreview.checked==false) && ( (manual_dial_validation != 'Y') || (manual_entry_dial > 0) ) ) { reselect_preview_dial = 0; @@ -9897,7 +9985,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (view_scripts == 1) { - if (campaign_script.length > 0) + if ( (campaign_script.length > 0) || (CalL_ScripT_id.length > 0) ) { var SCRIPT_web_form = 'http://127.0.0.1/testing.php'; var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1'); @@ -9906,15 +9994,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { delayed_script_load = 'YES'; RefresHScript('CLEAR'); + RefresHScript2('CLEAR'); } else { load_script_contents('ScriptContents',''); + if (SSenable_second_script > 0) {load_script_contents('Script2Contents','');} } } else { RefresHScript('','YES'); + RefresHScript2('','YES'); } } @@ -9942,6 +10033,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } ScriptPanelToFront(); } + if ( (get_call_launch == 'SCRIPTTWO') && (SSenable_second_script > 0) ) + { + if (delayed_script_load == 'YES') + { + load_script_contents('Script2Contents',''); + } + ScriptPanel2ToFront(); + } if (get_call_launch == 'FORM') { @@ -9982,15 +10081,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (view_scripts == 1) { - if (campaign_script.length > 0) + if ( (campaign_script.length > 0) || (CalL_ScripT_id.length > 0) ) { var SCRIPT_web_form = 'http://127.0.0.1/testing.php'; var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1'); RefresHScript(); + RefresHScript2(); } else { RefresHScript('','YES'); + RefresHScript2('','YES'); } } reselect_preview_dial = 1; @@ -10202,6 +10303,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) dial_next_failed=0; xfer_agent_selected=0; RefresHScript('CLEAR'); + RefresHScript2('CLEAR'); ViewComments('OFF','OFF'); last_call_date=''; inbound_post_call_survey=''; @@ -10211,6 +10313,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) trigger_manual_validation=0; manual_entry_dial=0; SCRIPTweb_form_vars=''; + SCRIPT2web_form_vars=''; MDcheck_for_answer=0; three_way_call_cid = orig_three_way_call_cid; if (manual_dial_preview < 1) @@ -10437,9 +10540,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (CalL_ScripT_color.length > 1) {document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;} + if ( (CalL_ScripT_color_two.length > 1) && (SSenable_second_script > 0) ) + {document.getElementById("Script2Contents").style.backgroundColor = CalL_ScripT_color_two;} if (view_scripts == 1) { - if (campaign_script.length > 0) + if ( (campaign_script.length > 0) || (CalL_ScripT_id.length > 0) ) { var SCRIPT_web_form = 'http://127.0.0.1/testing.php'; var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1'); @@ -10448,15 +10553,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { delayed_script_load = 'YES'; RefresHScript('CLEAR'); + RefresHScript2('CLEAR'); } else { load_script_contents('ScriptContents',''); + if (SSenable_second_script > 0) {load_script_contents('Script2Contents','');} } } else { RefresHScript('','YES'); + RefresHScript2('','YES'); } } @@ -10485,6 +10593,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } ScriptPanelToFront(); } + if ( (get_call_launch == 'SCRIPTTWO') && (SSenable_second_script > 0) ) + { + if (delayed_script_load == 'YES') + { + load_script_contents('Script2Contents',''); + } + ScriptPanel2ToFront(); + } if (get_call_launch == 'FORM') { FormPanelToFront(); @@ -10728,6 +10844,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // pull the script contents sending the webform variables to the script display script function load_script_contents(script_span,script_override) { + var temp_campaign_script = campaign_script; + var temp_in_script = CalL_ScripT_id; + var temp_SCRIPTweb_form_vars = SCRIPTweb_form_vars; + if ( (script_span == 'Script2Contents') && (SSenable_second_script > 0) ) + { + temp_campaign_script = campaign_script_two; + temp_in_script = CalL_ScripT_id_two; + temp_SCRIPTweb_form_vars = SCRIPT2web_form_vars; + } var new_script_content = null; var xmlhttp=false; /*@cc_on @*/ @@ -10750,8 +10875,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (xmlhttp) { - NeWscript_query = "server_ip=" + server_ip + "&inOUT=" + inOUT + "&camp_script=" + campaign_script + '' + "&in_script=" + CalL_ScripT_id + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&called_count=" + document.vicidial_form.called_count.value + "&script_override=" + script_override + "&ScrollDIV=1&" + SCRIPTweb_form_vars; - // alert(NeWscript_query); + NeWscript_query = "server_ip=" + server_ip + "&inOUT=" + inOUT + "&SCRIPTcamp_script=" + temp_campaign_script + '' + "&SCRIPTin_script=" + temp_in_script + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&called_count=" + document.vicidial_form.called_count.value + "&script_override=" + script_override + "&script_span=" + script_span + "&ScrollDIV=1&" + temp_SCRIPTweb_form_vars; xmlhttp.open('POST', 'vdc_script_display.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(NeWscript_query); @@ -10759,6 +10883,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { + // alert(NeWscript_query); + // document.getElementById("debugbottomspan").innerHTML = NeWscript_query + "\n" + xmlhttp.responseText; new_script_content = xmlhttp.responseText; document.getElementById(script_span).innerHTML = new_script_content; agent_events('call_script', script_span, aec); aec++; @@ -10868,7 +10994,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) CFAI_sent=0; check_incoming = xmlhttprequestcheckauto.responseText; // alert(checkVDAI_query); - // alert(xmlhttprequestcheckauto.responseText); + // document.getElementById("debugbottomspan").innerHTML = checkVDAI_query + "\n" + xmlhttp.responseText; var check_VDIC_array=check_incoming.split("\n"); if (check_VDIC_array[0] == '1') { @@ -10978,6 +11104,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {CalL_ScripT_color = VDIC_data_VDIG[35];} inbound_post_call_survey = VDIC_data_VDIG[36]; inbound_survey_participate = VDIC_data_VDIG[37]; + if (VDIC_data_VDIG[38].length > 0) + {CalL_ScripT_id_two = VDIC_data_VDIG[38];} + if (VDIC_data_VDIG[39].length > 0) + {CalL_ScripT_color_two = VDIC_data_VDIG[39];} var VDIC_data_VDFR=check_VDIC_array[3].split("|"); if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') ) @@ -11098,6 +11228,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) did_custom_five = check_VDIC_array[64]; status_group_statuses_data = check_VDIC_array[65]; last_call_date = check_VDIC_array[66]; + // CalL_ScripT_id_two = check_VDIC_array[67]; + // CalL_ScripT_color_two = check_VDIC_array[68]; // build statuses list for disposition screen VARstatuses = []; @@ -11221,6 +11353,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (CalL_ScripT_color.length > 1) {document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;} + if ( (CalL_ScripT_color_two.length > 1) && (SSenable_second_script > 0) ) + {document.getElementById("Script2Contents").style.backgroundColor = CalL_ScripT_color_two;} if (hide_gender > 0) { @@ -11318,7 +11452,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) 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("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') ) { @@ -11492,15 +11626,37 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { delayed_script_load = 'YES'; RefresHScript('CLEAR'); + RefresHScript2('CLEAR'); } else { load_script_contents('ScriptContents',''); + if (SSenable_second_script > 0) {load_script_contents('Script2Contents','');} } } else { RefresHScript('','YES'); + RefresHScript2('','YES'); + } + if ( (CalL_ScripT_id_two.length > 0) && (SSenable_second_script > 0) ) + { + var SCRIPT_web_form = 'http://127.0.0.1/testing.php'; + var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1'); + + if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) ) + { + delayed_script_load = 'YES'; + RefresHScript2('CLEAR'); + } + else + { + load_script_contents('Script2Contents',''); + } + } + else + { + RefresHScript2('','YES'); } } @@ -11526,6 +11682,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } ScriptPanelToFront(); } + if ( (CalL_AutO_LauncH == 'SCRIPTTWO') && (SSenable_second_script > 0) ) + { + if (delayed_script_load == 'YES') + { + load_script_contents('Script2Contents',''); + } + ScriptPanel2ToFront(); + } if (CalL_AutO_LauncH == 'FORM') { FormPanelToFront(); @@ -11761,6 +11925,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {VDIC_web_form_address_three = VDIC_data_VDIG[34];} if (VDIC_data_VDIG[35].length > 1) {CalL_ScripT_color = VDIC_data_VDIG[35];} + if (VDIC_data_VDIG[36].length > 0) + {CalL_ScripT_id_two = VDIC_data_VDIG[36];} + if (VDIC_data_VDIG[37].length > 0) + {CalL_ScripT_color_two = VDIC_data_VDIG[37];} var VDIC_data_VDFR=check_VDIC_array[3].split("|"); if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') ) @@ -12095,7 +12263,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; + 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') ) { @@ -12247,6 +12415,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (CalL_ScripT_color.length > 1) {document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;} + if ( (CalL_ScripT_color_two.length > 1) && (SSenable_second_script > 0) ) + {document.getElementById("Script2Contents").style.backgroundColor = CalL_ScripT_color_two;} + if (view_scripts == 1) { if (CalL_ScripT_id.length > 0) @@ -12268,6 +12439,25 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { RefresHScript('','YES'); } + if ( (CalL_ScripT_id_two.length > 0) && (SSenable_second_script > 0) ) + { + var SCRIPT_web_form = 'http://127.0.0.1/testing.php'; + var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1'); + + if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) ) + { + delayed_script_load = 'YES'; + RefresHScript2('CLEAR'); + } + else + { + load_script_contents('Script2Contents',''); + } + } + else + { + RefresHScript2('','YES'); + } } if (custom_fields_enabled > 0) @@ -12292,6 +12482,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } ScriptPanelToFront(); } + if ( (CalL_AutO_LauncH == 'SCRIPTTWO') && (SSenable_second_script > 0) ) + { + if (delayed_script_load == 'YES') + { + load_script_contents('Script2Contents',''); + } + ScriptPanel2ToFront(); + } if (CalL_AutO_LauncH == 'FORM') { FormPanelToFront(); @@ -12374,6 +12572,30 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } +// ################################################################################ +// refresh or clear the SCRIPT 2 frame contents + function RefresHScript2(temp_wipe,RFSclick) + { + if (SSenable_second_script > 0) + { + if (RFSclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----RefresHScript2---" + temp_wipe + "|";} + if (temp_wipe == 'CLEAR') + { + document.getElementById("Script2Contents").innerHTML = ''; + } + else + { + document.getElementById("Script2Contents").innerHTML = ''; + WebFormRefresH('','','1'); + WebFormTwoRefresH('','','1'); + WebFormThreeRefresH('','','1'); + var TEMP_script_vars = URLDecode('','YES','DEFAULT','1'); + load_script_contents('Script2Contents',''); + } + } + } + // ################################################################################ // refresh the content of the web form URL function WebFormRefresH(taskrefresh,submittask,force_webvars_refresh) @@ -13674,6 +13896,130 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } +// ################################################################################ +// Process the "VM" transfer button click + function vmmessages_button(PREclick) + { + if (leave_vm_message_group_exists > 0) + { + generate_vmmessages_pulldown(PREclick); + } + else + { + mainxfer_send_redirect('XfeRVMAIL',lastcustchannel,lastcustserverip,'',leave_vm_no_dispo,'',PREclick); + } + } + + +// ################################################################################ +// Generate the VM Messages Chooser span content + function generate_vmmessages_pulldown(PREclick) + { + if (PREclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----generate_vmmessage_pulldown---|";} + showDiv('VMMessageSelectBox'); + VMMessages_HTML = ''; + document.vicidial_form.VMMessageSelection.value = ''; + document.getElementById("VMMessageSelectBoxContent").innerHTML = '...'; + + var xmlhttp=false; + /*@cc_on @*/ + /*@if (@_jscript_version >= 5) + // JScript gives us Conditional compilation, we can cope with old IE versions. + // and security blocked creation of the objects. + try { + xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch (e) { + try { + xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); + } catch (E) { + xmlhttp = false; + } + } + @end @*/ + if (!xmlhttp && typeof XMLHttpRequest!='undefined') + { + xmlhttp = new XMLHttpRequest(); + } + if (xmlhttp) + { + VMMG_list_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=VMMG_list_build&format=text&campaign=" + campaign + "&stage=" + leave_vm_message_group_id + "&start_date=" + customer_HHMM; + xmlhttp.open('POST', 'vdc_db_query.php'); + xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); + xmlhttp.send(VMMG_list_query); + xmlhttp.onreadystatechange = function() + { + if (xmlhttp.readyState == 4 && xmlhttp.status == 200) + { + document.getElementById("VMMessageSelectBoxContent").innerHTML = xmlhttp.responseText; + + // document.getElementById("debugbottomspan").innerHTML = "VMM Debug: " + VMMG_list_query + "|\n
" + xmlhttp.responseText + "\n"; + } + } + delete xmlhttp; + } + } + + +// ################################################################################ +// Submit chosen VM Message + function VMMessageSelect_submit(taskvmmessagefile,taskvmmessagename,taskvmmessagetime,taskvmmessagerank) + { + var regVMFILE = new RegExp('|',"g"); + var LOGtaskvmmessagefile = taskvmmessagefile.replace(/\|/g, ' '); + button_click_log = button_click_log + "" + SQLdate + "-----VMMessageSelect_submit---" + LOGtaskvmmessagefile + " " + taskvmmessagename + " " + taskvmmessagetime + " " + taskvmmessagerank + "|"; + hideDiv('VMMessageSelectBox'); + document.vicidial_form.VMMessageSelection.value = taskvmmessagefile; + + var xmlhttp=false; + /*@cc_on @*/ + /*@if (@_jscript_version >= 5) + // JScript gives us Conditional compilation, we can cope with old IE versions. + // and security blocked creation of the objects. + try { + xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch (e) { + try { + xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); + } catch (E) { + xmlhttp = false; + } + } + @end @*/ + if (!xmlhttp && typeof XMLHttpRequest!='undefined') + { + xmlhttp = new XMLHttpRequest(); + } + if (xmlhttp) + { + VMMG_list_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=VMMG_selected&format=text&campaign=" + campaign + "&stage=" + taskvmmessagefile + "&MDnextCID=" + LasTCID + "&lead_id=" + document.vicidial_form.lead_id.value; + xmlhttp.open('POST', 'vdc_db_query.php'); + xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); + xmlhttp.send(VMMG_list_query); + xmlhttp.onreadystatechange = function() + { + if (xmlhttp.readyState == 4 && xmlhttp.status == 200) + { + var VMMselectresponse = xmlhttp.responseText; + var regVMMerror = new RegExp("ERROR","ig"); + if (VMMselectresponse.match(regVMMerror)) + { + alert_box(VMMselectresponse); + button_click_log = button_click_log + "" + SQLdate + "-----VMMselectError---" + VMMselectresponse + "|"; + } + else + { + mainxfer_send_redirect('XfeRVMAIL',lastcustchannel,lastcustserverip,'',leave_vm_no_dispo,'',''); + } + } + } + delete xmlhttp; + } + + scroll(0,0); + } + + // ################################################################################ // Generate the Group Alias Chooser panel function GroupAliasSelectContent_create(task3way) @@ -14110,6 +14456,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) active_ingroup_dial=''; CalL_ScripT_id=''; CalL_ScripT_color=''; + CalL_ScripT_id_two=''; + CalL_ScripT_color_two=''; callback_gmt_offset=''; callback_timezone=''; document.getElementById("SBC_timezone_span").innerHTML = '...'; @@ -14151,6 +14499,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) trigger_manual_validation=0; manual_entry_dial=0; SCRIPTweb_form_vars=''; + SCRIPT2web_form_vars=''; MDcheck_for_answer=0; three_way_call_cid = orig_three_way_call_cid; if (manual_auto_next > 0) @@ -14215,7 +14564,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("ScriptPanel").style.zIndex = script_span_zindex; } if (clear_script == 'ENABLED') - {document.getElementById("ScriptContents").innerHTML = '';} + { + document.getElementById("ScriptContents").innerHTML = ''; + document.getElementById("Script2Contents").innerHTML = ''; + } parked_hangup='0'; // Set customer chat tab to OFF, just to be sure @@ -15825,6 +16177,7 @@ else "&owner=" + document.vicidial_form.owner.value + '' + "&camp_script=" + campaign_script + '' + "&in_script=" + CalL_ScripT_id + '' + + "&in_script_two=" + CalL_ScripT_id_two + '' + "&script_width=" + script_width + '' + "&script_height=" + script_height + '' + "&fullname=" + LOGfullname + '' + @@ -15896,6 +16249,7 @@ else } SCRIPTweb_form_vars = web_form_varsX; + SCRIPT2web_form_vars = web_form_varsX; web_form_varsX = web_form_varsX.replace(RGplus, '+'); web_form_varsX = web_form_varsX.replace(RGnl, '+'); @@ -16012,6 +16366,7 @@ else if (custom_field_names.length > 2) { SCRIPTweb_form_vars = web_form_varsX; + SCRIPT2web_form_vars = web_form_varsX; } if (webformnumber == '1') @@ -16073,6 +16428,7 @@ else var SCowner = document.vicidial_form.owner.value; var SCcamp_script = campaign_script; var SCin_script = CalL_ScripT_id; + var SCin_script_two = CalL_ScripT_id_two; var SCscript_width = script_width; var SCscript_height = script_height; var SCrecording_filename = recording_filename; @@ -17979,6 +18335,8 @@ function phone_number_format(formatphone) { hideDiv('MainCommit'); hideDiv('ScriptPanel'); hideDiv('ScriptRefresH'); + hideDiv('Script2Panel'); + hideDiv('Script2RefresH'); hideDiv('EmailPanel'); hideDiv('EmailRefresH'); hideDiv('CustomerChatPanel'); @@ -18006,6 +18364,7 @@ function phone_number_format(formatphone) { hideDiv('PauseCodeSelectBox'); hideDiv('PauseCodeMgrAprBox'); hideDiv('PresetsSelectBox'); + hideDiv('VMMessageSelectBox'); hideDiv('GroupAliasSelectBox'); hideDiv('DiaLInGrouPSelectBox'); hideDiv('AgentViewSpan'); @@ -18857,46 +19216,47 @@ function phone_number_format(formatphone) { if (Csec < 10) {Csec = "0" + Csec;} VDRP_stage_seconds=0; - var customer_date = ''; - var customer_time = Chours + ":" + Cmin + ":" + Csec; - if (vdc_customer_date_format.match(regMSdate)) - { - customer_date = Cyear + "-" + Cmon + "-" + Cdaym; - } - if (vdc_customer_date_format.match(regUSdate)) - { - customer_date = Cmon + "/" + Cdaym + "/" + Cyear; - } - if (vdc_customer_date_format.match(regEUdate)) - { - customer_date = Cdaym + "/" + Cmon + "/" + Cyear; - } - if (vdc_customer_date_format.match(regALdate)) - { - var customermon=''; - 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 = "";} + var customer_date = ''; + var customer_time = Chours + ":" + Cmin + ":" + Csec; + customer_HHMM = Chours + '' + Cmin; + if (vdc_customer_date_format.match(regMSdate)) + { + customer_date = Cyear + "-" + Cmon + "-" + Cdaym; + } + if (vdc_customer_date_format.match(regUSdate)) + { + customer_date = Cmon + "/" + Cdaym + "/" + Cyear; + } + if (vdc_customer_date_format.match(regEUdate)) + { + customer_date = Cdaym + "/" + Cmon + "/" + Cyear; + } + if (vdc_customer_date_format.match(regALdate)) + { + var customermon=''; + 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 + " "; - } - if (vdc_customer_date_format.match(regAMPMdate)) - { - var AMPM = 'AM'; - if (Chours == 12) {AMPM = 'PM';} - if (Chours == 0) {AMPM = 'AM'; Chours = '12';} - if (Chours > 12) {Chours = (Chours - 12); AMPM = 'PM';} - customer_time = Chours + ":" + Cmin + ":" + Csec + " " + AMPM; - } + customer_date = customermon + " " + Cdaym + " "; + } + if (vdc_customer_date_format.match(regAMPMdate)) + { + var AMPM = 'AM'; + if (Chours == 12) {AMPM = 'PM';} + if (Chours == 0) {AMPM = 'AM'; Chours = '12';} + if (Chours > 12) {Chours = (Chours - 12); AMPM = 'PM';} + customer_time = Chours + ":" + Cmin + ":" + Csec + " " + AMPM; + } var customer_local_time = customer_date + " " + customer_time; document.getElementById("custdatetime").innerHTML = customer_local_time; @@ -19243,6 +19603,8 @@ function phone_number_format(formatphone) { } hideDiv('ScriptPanel'); hideDiv('ScriptRefresH'); + hideDiv('Script2Panel'); + hideDiv('Script2RefresH'); hideDiv('FormPanel'); hideDiv('FormRefresH'); hideDiv('EmailPanel'); @@ -19305,7 +19667,7 @@ function phone_number_format(formatphone) { function ScriptPanelToFront(SPFclick) { if (SPFclick=='YES') - {button_click_log = button_click_log + "" + SQLdate + "-----ScriptPanelToFront---|";} + {button_click_log = button_click_log + "" + SQLdate + "-----ScriptPanelToFront---" + CalL_ScripT_id + " " + CalL_ScripT_color + "|";} var CBSPheight = 'px'; document.getElementById("CallbacksButtons").style.top = CBSPheight; document.getElementById("CallbacksButtons").style.left = '340px'; @@ -19320,6 +19682,43 @@ function phone_number_format(formatphone) { showDiv('OtherTabCommentsSpan'); } hideDiv('MainCommit'); + hideDiv('Script2Panel'); + hideDiv('Script2RefresH'); + hideDiv('FormPanel'); + hideDiv('FormRefresH'); + hideDiv('EmailPanel'); + hideDiv('EmailRefresH'); + hideDiv('CustomerChatPanel'); + hideDiv('CustomerChatRefresH'); + hideDiv('InternalChatPanel'); + document.getElementById("MainTable").style.backgroundColor=""; + document.getElementById("MaiNfooter").style.backgroundColor=""; + panel_bgcolor=''; + // document.getElementById("MainStatuSSpan").style.background = panel_bgcolor; + + HidEGenDerPulldown(); + } + + function ScriptPanel2ToFront(SPFclick) + { + if (SPFclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ScriptPanel2ToFront---" + CalL_ScripT_id_two + " " + CalL_ScripT_color_two + "|";} + var CBSPheight = 'px'; + document.getElementById("CallbacksButtons").style.top = CBSPheight; + document.getElementById("CallbacksButtons").style.left = '340px'; + showDiv('Script2Panel'); + showDiv('Script2RefresH'); + if ( (OtherTab == '0') && (comments_all_tabs == 'ENABLED') ) + { + OtherTab='1'; + var test_otc = document.vicidial_form.comments.value; + if (test_otc.length > 0) + {document.vicidial_form.other_tab_comments.value = document.vicidial_form.comments.value} + showDiv('OtherTabCommentsSpan'); + } + hideDiv('MainCommit'); + hideDiv('ScriptPanel'); + hideDiv('ScriptRefresH'); hideDiv('FormPanel'); hideDiv('FormRefresH'); hideDiv('EmailPanel'); @@ -19535,6 +19934,9 @@ $zi=2; MAIN " alt="SCRIPT" width="67px" height="30px" border="0" /> + 0) + {echo "\"SCRIPT\n";} + ?> 0) {echo "\"FORM\"\n";} ?> @@ -20225,6 +20627,18 @@ if ($agent_display_dialable_leads > 0) + +
\n";} + ?> +
+
+ + + + + 0) + +
:    
+
\n";} + ?> + +
+
+
+ "; $MAIN.="

$o) { if (preg_match("/\|$master_AMDSTATUS_array[$o]\|/",$AMDSTATUSes_string)) - {$MAIN.="\n";} + {$MAIN.="\n";} else - {$MAIN.="\n";} + {$MAIN.="\n";} $o++; } $MAIN.=""; @@ -461,9 +461,9 @@ $o=0; while ($AMDRESPONSEs_to_print > $o) { if (preg_match("/\|$master_AMDRESPONSE_array[$o]\|/",$AMDRESPONSEs_string)) - {$MAIN.="\n";} + {$MAIN.="\n";} else - {$MAIN.="\n";} + {$MAIN.="\n";} $o++; } $MAIN.=""; @@ -472,8 +472,8 @@ $MAIN.="
\n"; $MAIN.=_QXZ("Display as:")."
"; $MAIN.="\n

"; +if ($report_display_type) {$MAIN.="";} +$MAIN.="\n

"; $MAIN.="

\n"; $MAIN.="
\n"; if ($SUBMIT && $server_ip_ct>0) { diff --git a/www/vicidial/AST_API_log_report.php b/www/vicidial/AST_API_log_report.php index cc00a1c4..db3dcc58 100644 --- a/www/vicidial/AST_API_log_report.php +++ b/www/vicidial/AST_API_log_report.php @@ -592,7 +592,7 @@ $HTML_head.=""._QXZ("$report_name")." $NWB#api_log_report$NWE
"; $HTML_text.="\n"; @@ -680,8 +680,8 @@ else $o=0; for ($o=0; $o$results_array[$o]\n";} - else {$HTML_text.="\n";} + if (preg_match("/$results_array[$o]\|/i",$result_string)) {$HTML_text.="\n";} + else {$HTML_text.="\n";} } $HTML_text.="\n"; $HTML_text.="\n"; @@ -689,8 +689,8 @@ $HTML_text.="\n"; $HTML_text.=""; $HTML.=""; $HTML.=""; - $HTML.=""; - $HTML.=""; + $HTML.=""; + $HTML.=""; $HTML.=""; - $HTML.=""; - $HTML.=""; + $HTML.=""; + $HTML.=""; $HTML.=""; $HTML.=""; $HTML.=""; diff --git a/www/vicidial/AST_CLOSER_service_level.php b/www/vicidial/AST_CLOSER_service_level.php index 01bb87a6..c7d1ad10 100644 --- a/www/vicidial/AST_CLOSER_service_level.php +++ b/www/vicidial/AST_CLOSER_service_level.php @@ -404,7 +404,7 @@ while ($groups_to_print > $o) $MAIN.="\n"; $MAIN.=" "; $MAIN.="\n"; $MAIN.="   "; $MAIN.="\n"; -$MAIN.="\n"; +$MAIN.="\n"; $MAIN.="           "._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS").""; if ($archives_available=="Y") { diff --git a/www/vicidial/AST_CLOSERstats.php b/www/vicidial/AST_CLOSERstats.php index 0279c532..27fb4d10 100644 --- a/www/vicidial/AST_CLOSERstats.php +++ b/www/vicidial/AST_CLOSERstats.php @@ -311,6 +311,7 @@ $LISTgroups=array(); $LISTgroup_names=array(); $LISTgroup_ids=array(); $LISTgroups[$i]='---NONE---'; +$LISTgroup_names[$i]=_QXZ("None selected"); $i++; $groups_to_print++; $groups_string='|'; @@ -549,7 +550,7 @@ $MAIN.="\n"; $MAIN.="
"; $HTML_text.="
\n"; @@ -665,8 +665,8 @@ else {$HTML_text.="\n";} for ($o=0; $o$functions_array[$o]\n";} - else {$HTML_text.="\n";} + if (preg_match("/$functions_array[$o]\|/i",$function_string)) {$HTML_text.="\n";} + else {$HTML_text.="\n";} } $HTML_text.="\n"; $HTML_text.="
"; $HTML_text.=_QXZ("Display as:")."
"; $HTML_text.="\n

"; +if ($report_display_type) {$HTML_text.="";} +$HTML_text.="\n

"; $HTML_text.="\n"; $HTML_text.="

"._QXZ("Show URLs, slower")."\n"; if ($archives_available=="Y") @@ -805,10 +805,10 @@ if ($SUBMIT && $api_date_D && $api_date_T && $api_date_end_D && $api_date_end_T) $full_agent_user[$g] = substr($row["agent_user"].$user_directory[$row["agent_user"]], 0, 30); $api_id[$g] = $row["api_id"]; $api_date[$g] = sprintf("%-19s", $row["api_date"]); - $api_script[$g] = sprintf("%-10s", $row["api_script"]); - $function[$g] = sprintf("%-20s", $row["function"]); - $result[$g] = sprintf("%-10s", $row["result"]); - $source[$g] = sprintf("%-20s", $row["source"]); + $api_script[$g] = sprintf("%-10s", _QXZ($row["api_script"], 10)); + $function[$g] = sprintf("%-20s", _QXZ($row["function"], 20)); + $result[$g] = sprintf("%-10s", _QXZ($row["result"], 10)); + $source[$g] = sprintf("%-20s", _QXZ($row["source"], 20)); $run_time[$g] = sprintf("%-8s", substr($row["run_time"],0,8)); $webserver[$g] = sprintf("%-9s", $row["webserver"]); $api_url[$g] = sprintf("%-9s", $row["api_url"]); @@ -837,11 +837,11 @@ if ($SUBMIT && $api_date_D && $api_date_T && $api_date_end_D && $api_date_end_T) $HTML.="
".$api_date[$h]."".$full_user[$h]."".$api_script[$h]."".$function[$h].""._QXZ("$api_script[$h]").""._QXZ("$function[$h]")."".$full_agent_user[$h]."".$result[$h]."".$source[$h].""._QXZ("$result[$h]").""._QXZ("$source[$h]")."".$run_time[$h]."".$webserver[$h]."".sprintf("%-20s", substr($data[$h],0,20))."
\n"; # } #$MAIN.="\n"; $MAIN.=_QXZ("Shift").": \n"; $MAIN.="
"._QXZ("Display as").":  "; $MAIN.="\n
"; if ($archives_available=="Y") { @@ -928,8 +929,8 @@ if ($EMAIL=='Y') $MAIN.=_QXZ("Total DROP Emails:",47)."$DROPcalls $DROPpercent% "._QXZ("drop/answered").": $DROP_ANSWEREDpercent%\n"; $MAIN.=_QXZ("Average hold time for DROP Emails:",47)."$average_hold_seconds "._QXZ("seconds")."\n"; - $CSV_text1.="\"Total DROP Emails:\",\"$DROPcalls\",\"$DROPpercent%\",\""._QXZ("drop/answered").":\",\"$DROP_ANSWEREDpercent%\"\n"; - $CSV_text1.="\"Average hold time for DROP Emails:\",\"$average_hold_seconds "._QXZ("seconds")."\"\n"; + $CSV_text1.="\""._QXZ("Total DROP Emails").":\",\"$DROPcalls\",\"$DROPpercent%\",\""._QXZ("drop/answered").":\",\"$DROP_ANSWEREDpercent%\"\n"; + $CSV_text1.="\""._QXZ("Average hold time for DROP Emails").":\",\"$average_hold_seconds "._QXZ("seconds")."\"\n"; } else { @@ -1112,11 +1113,11 @@ $TOTALcalls = 0; $ASCII_text="\n"; $ASCII_text.="---------- $rpt_type_verbiage "._QXZ("HOLD TIME BREAKDOWN IN SECONDS",36)." "._QXZ("DOWNLOAD")."\n"; $ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n"; -$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | TOTAL |\n"; +$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | "._QXZ("TOTAL", 10)." |\n"; $ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n"; $CSV_text2.="\n\"$rpt_type_verbiage "._QXZ("HOLD TIME BREAKDOWN IN SECONDS")."\"\n"; -$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\"TOTAL\"\n"; +$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\""._QXZ("TOTAL")."\"\n"; $stmt="select count(*),queue_seconds from ".$vicidial_closer_log_table." where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) group by queue_seconds;"; diff --git a/www/vicidial/AST_CLOSERstats_v2.php b/www/vicidial/AST_CLOSERstats_v2.php index 67cb0e03..33710250 100644 --- a/www/vicidial/AST_CLOSERstats_v2.php +++ b/www/vicidial/AST_CLOSERstats_v2.php @@ -532,9 +532,9 @@ $o=0; while ($groups_to_print > $o) { if (preg_match("/\|$LISTgroups[$o]\|/",$group_string)) - {$MAIN.="\n";} + {$MAIN.="\n";} else - {$MAIN.="\n";} + {$MAIN.="\n";} $o++; } $MAIN.="\n"; @@ -562,9 +562,9 @@ $MAIN.="
\n"; # } #$MAIN.="\n"; $MAIN.=_QXZ("Shift/Call time").": \n"; $MAIN.="
      "._QXZ("Display as").":  "; $MAIN.="\n
"; if ($archives_available=="Y") { @@ -1459,7 +1459,7 @@ $TOTALcalls = 0; $ASCII_text="\n"; $ASCII_text.="---------- $rpt_type_verbiage "._QXZ("HOLD TIME BREAKDOWN IN SECONDS",36)." "._QXZ("DOWNLOAD")."\n"; $ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n"; -$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | TOTAL |\n"; +$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | "._QXZ("TOTAL", 10)." |\n"; $ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n"; $CSV_text2.="\n\"$rpt_type_verbiage "._QXZ("HOLD TIME BREAKDOWN IN SECONDS")."\"\n"; diff --git a/www/vicidial/AST_CLOSERsummary_hourly.php b/www/vicidial/AST_CLOSERsummary_hourly.php index f597ffb8..d0f2c394 100644 --- a/www/vicidial/AST_CLOSERsummary_hourly.php +++ b/www/vicidial/AST_CLOSERsummary_hourly.php @@ -500,11 +500,11 @@ if ($bareformat < 1) $MAIN.="\n"; $MAIN.="
  "._QXZ("Display as").": "; $MAIN.="\n
"; $MAIN.="   "._QXZ("Exclude Outbound Drop Groups").":
"; $MAIN.="   \n"; @@ -514,7 +514,7 @@ if ($bareformat < 1) } $MAIN.="
                      "; - $MAIN.="\n"; + $MAIN.="\n"; $MAIN.="
\n"; @@ -813,15 +813,15 @@ else $ASCII_text .= "\n"; ### hour by hour sumaries - $SUBoutput .= "\n---------- $group[$i] - $group_name[$i] HOURLY BREAKDOWN:\n"; + $SUBoutput .= "\n---------- $group[$i] - $group_name[$i] "._QXZ("HOURLY BREAKDOWN").":\n"; $SUBoutput .= "+------+--------+--------+-----------+---------+-----------+---------+---------+--------+\n"; - $SUBoutput .= "| | | | | | TOTAL | AVERAGE | MAXIMUM | TOTAL |\n"; - $SUBoutput .= "| | TOTAL | TOTAL | TOTAL | AVERAGE | QUEUE | QUEUE | QUEUE | ABANDON|\n"; - $SUBoutput .= "| HOUR | CALLS | ANSWER | TALK | TALK | TIME | TIME | TIME | CALLS |\n"; + $SUBoutput .= "| | | | | | "._QXZ("TOTAL", 9)." | "._QXZ("AVERAGE", 7)." | "._QXZ("MAXIMUM", 7)." | "._QXZ("TOTAL", 7)."|\n"; + $SUBoutput .= "| | "._QXZ("TOTAL", 6)." | "._QXZ("TOTAL", 6)." | "._QXZ("TOTAL", 9)." | "._QXZ("AVERAGE", 7)." | "._QXZ("QUEUE", 9)." | "._QXZ("QUEUE", 7)." | "._QXZ("QUEUE", 7)." | "._QXZ("ABANDON", 7)."|\n"; + $SUBoutput .= "| "._QXZ("HOUR", 4)." | "._QXZ("CALLS", 6)." | "._QXZ("ANSWER", 6)." | "._QXZ("TALK", 9)." | "._QXZ("TALK", 7)." | "._QXZ("TIME", 9)." | "._QXZ("TIME", 7)." | "._QXZ("TIME", 7)." | "._QXZ("CALLS", 7)."|\n"; $SUBoutput .= "+------+--------+--------+-----------+---------+-----------+---------+---------+--------+\n"; - $CSV_subreports.="\n\n\"$group[$i] - $group_name[$i]\"\n\"HOURLY BREAKDOWN:\"\n"; - $CSV_subreports.="\"HOUR\",\"TOTAL CALLS\",\"TOTAL ANSWER\",\" TOTAL TALK\",\" AVERAGE TALK\",\" TOTAL QUEUE TIME\",\" AVERAGE QUEUE TIME\",\" MAXIMUM QUEUE TIME\",\" TOTAL ABANDON CALLS\"\n"; + $CSV_subreports.="\n\n\"$group[$i] - $group_name[$i]\"\n\""._QXZ("HOURLY BREAKDOWN").":\"\n"; + $CSV_subreports.="\""._QXZ("HOUR")."\",\""._QXZ("TOTAL CALLS")."\",\""._QXZ("TOTAL ANSWER")."\",\" "._QXZ("TOTAL TALK")."\",\" "._QXZ("AVERAGE TALK")."\",\" "._QXZ("TOTAL QUEUE TIME")."\",\" "._QXZ("AVERAGE QUEUE TIME")."\",\" "._QXZ("MAXIMUM QUEUE TIME")."\",\" "._QXZ("TOTAL ABANDON CALLS")."\"\n"; $sub_graph_stats=array(); @@ -1203,7 +1203,7 @@ else $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); - echo "\n\nRun Time: $RUNtime seconds|$db_source\n"; + echo "\n\n"._QXZ("Run Time").": $RUNtime "._QXZ("seconds")."|$db_source\n"; echo ""; echo "
"; diff --git a/www/vicidial/AST_DIDstats.php b/www/vicidial/AST_DIDstats.php index bd29abc5..d0dbc862 100644 --- a/www/vicidial/AST_DIDstats.php +++ b/www/vicidial/AST_DIDstats.php @@ -471,9 +471,9 @@ $MAIN.="\n"; $MAIN.="\n"; $MAIN.="  "; $MAIN.="\n

"; -$MAIN.="\n"; +$MAIN.="\n"; $MAIN.="           "._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS")." \n"; $MAIN.="\n"; $MAIN.="\n"; diff --git a/www/vicidial/AST_DIDstats_v2.php b/www/vicidial/AST_DIDstats_v2.php index 70bffba0..82cbb35f 100644 --- a/www/vicidial/AST_DIDstats_v2.php +++ b/www/vicidial/AST_DIDstats_v2.php @@ -423,13 +423,13 @@ $MAIN.="\n"; $MAIN.=_QXZ("Display as:")."
"; $MAIN.="\n

"; if ($archives_available=="Y") { $MAIN.=""._QXZ("Search archived data")."

\n"; } -$MAIN.="\n"; +$MAIN.="\n"; $MAIN.="           "._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS")." \n"; $MAIN.="\n"; $MAIN.="\n"; diff --git a/www/vicidial/AST_IVRstats.php b/www/vicidial/AST_IVRstats.php index 85724f5e..5126e7ce 100644 --- a/www/vicidial/AST_IVRstats.php +++ b/www/vicidial/AST_IVRstats.php @@ -373,14 +373,14 @@ if ($type == 'inbound') if ($CALL_MENUdisplay > 0) { $LISTgroups[$i]='CALLMENU'; - $LISTgroups_names[$i]='IVR'; + $LISTgroups_names[$i]=_QXZ('IVR'); $i++; $groups_to_print++; } if ($XML_PULLdisplay > 0) { $LISTgroups[$i]='XMLPULL'; - $LISTgroups_names[$i]='Dynamic Application'; + $LISTgroups_names[$i]=_QXZ('Dynamic Application'); $i++; $groups_to_print++; } @@ -634,7 +634,7 @@ $MAIN.="\n"; # } #$MAIN.="\n"; $MAIN.=_QXZ("Shift").": "; -if ($report_display_type) {$MAIN.="";} +if ($report_display_type) {$MAIN.="";} $MAIN.="\n
"; if ($archives_available=="Y") { diff --git a/www/vicidial/AST_LISTS_campaign_stats.php b/www/vicidial/AST_LISTS_campaign_stats.php index 39ec4e84..52f58c52 100644 --- a/www/vicidial/AST_LISTS_campaign_stats.php +++ b/www/vicidial/AST_LISTS_campaign_stats.php @@ -498,7 +498,7 @@ $MAIN.="\n
\n"._QXZ("SWITCH T $MAIN.=""; $MAIN.=_QXZ("Display as").":
"; $MAIN.="  "; if ($archives_available=="Y") @@ -1233,7 +1233,7 @@ else $SC_count = sprintf("%9s", "$SC_count"); while(strlen($SC_count)>9) {$SC_count = substr("$SC_count", 0, -1);} $COMP_count = sprintf("%9s", "$COMP_count"); while(strlen($COMP_count)>9) {$COMP_count = substr("$COMP_count", 0, -1);} - $OUToutput .= "| "._QXZ("STATUS FLAGS BREAKDOWN",22).": "._QXZ("(and % of total leads in the list)",34)." |\n"; + $OUToutput .= "| "._QXZ("STATUS FLAGS BREAKDOWN",22).": "._QXZ("(and % of total leads in the list)",35)." |\n"; $OUToutput .= "| "._QXZ("Human Answer:",19)." $HA_count $HA_percent% |\n"; $OUToutput .= "| "._QXZ("Sale:",19)." $SALE_count $SALE_percent% |\n"; $OUToutput .= "| "._QXZ("DNC:",19)." $DNC_count $DNC_percent% |\n"; diff --git a/www/vicidial/AST_LISTS_pass_report.php b/www/vicidial/AST_LISTS_pass_report.php index dbc63e9c..716a7faa 100644 --- a/www/vicidial/AST_LISTS_pass_report.php +++ b/www/vicidial/AST_LISTS_pass_report.php @@ -517,7 +517,7 @@ else $MAIN.=""; $MAIN.=_QXZ("Display as").":
"; $MAIN.="  "; if ($archives_available=="Y") { diff --git a/www/vicidial/AST_OUTBOUNDsummary_interval.php b/www/vicidial/AST_OUTBOUNDsummary_interval.php index d881548f..0fc848ab 100644 --- a/www/vicidial/AST_OUTBOUNDsummary_interval.php +++ b/www/vicidial/AST_OUTBOUNDsummary_interval.php @@ -629,7 +629,7 @@ if ($bareformat < 1) $MAIN.=""; $MAIN.=_QXZ("Include Drop")."  
"._QXZ("Rollover").":
"; $MAIN.="
\n"; @@ -669,7 +669,7 @@ if ($bareformat < 1) $MAIN.="


\n"; $MAIN.=_QXZ("Display as").":
"; $MAIN.="\n
"; if ($archives_available=="Y") { diff --git a/www/vicidial/AST_VDADstats.php b/www/vicidial/AST_VDADstats.php index 5a99800e..74d02592 100644 --- a/www/vicidial/AST_VDADstats.php +++ b/www/vicidial/AST_VDADstats.php @@ -711,13 +711,13 @@ $MAIN.=$list_options; $MAIN.=""; $MAIN.=_QXZ("Include Drop")."  
"._QXZ("Rollover").":
"; $MAIN.="\n"; $MAIN.="
"._QXZ("Bottom Graph").":  
\n"; $MAIN.="
\n"; @@ -725,18 +725,18 @@ if ($carrier_logging_active > 0) { $MAIN.=""._QXZ("Carrier Stats").":  
"; $MAIN.="\n"; } $MAIN.="

"._QXZ("Display as").":
"; $MAIN.="\n
"; $MAIN.=""._QXZ("Shift").":  
"; $MAIN.="\n"; $MAIN.="

"; -$MAIN.="\n"; +$MAIN.="\n"; $MAIN.="          
"._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS")." \n"; $MAIN.="\n"; $MAIN.="\n"; diff --git a/www/vicidial/AST_agent_days_detail.php b/www/vicidial/AST_agent_days_detail.php index 5c1d7983..caa1153d 100644 --- a/www/vicidial/AST_agent_days_detail.php +++ b/www/vicidial/AST_agent_days_detail.php @@ -979,13 +979,13 @@ echo "\n"; echo ""; echo _QXZ("Display as").":   
"; echo "\n

"; echo ""._QXZ("User").":
"; echo "\n"; echo ""._QXZ("Shift").":
"; echo "\n"; echo ""._QXZ("Shift").":
"; echo "";} +$MAIN.="\n

"; /* diff --git a/www/vicidial/AST_agent_inbound_status.php b/www/vicidial/AST_agent_inbound_status.php index 18d96767..6b2c8ed8 100644 --- a/www/vicidial/AST_agent_inbound_status.php +++ b/www/vicidial/AST_agent_inbound_status.php @@ -414,7 +414,7 @@ if ($file_download < 1) echo "\n"; echo "\n"; - echo "$report_name\n"; + echo ""._QXZ("$report_name")."\n"; echo ""; $short_header=1; @@ -430,8 +430,8 @@ if ($file_download < 1) if ( (strlen($group[0]) < 1) or (strlen($user_group[0]) < 1) ) { echo "
";
-	echo "PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME BELOW AND CLICK SUBMIT\n";
-	echo " NOTE: stats taken from shift specified\n";
+	echo _QXZ("PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME BELOW AND CLICK SUBMIT")."\n";
+	echo " "._QXZ("NOTE: stats taken from shift specified")."\n";
 	}
 
 else
@@ -460,15 +460,15 @@ else
 
 	if ($file_download < 1)
 		{
-		$ASCII_text.=_QXZ("$report_name")." Report                     $NOW_TIME ($db_source)\n";
-		$ASCII_text.="Time range: $query_date_BEGIN to $query_date_END\n\n";
-		$HTML_text.=_QXZ("$report_name")." Report                     $NOW_TIME ($db_source)\n";
-		$HTML_text.="Time range: $query_date_BEGIN to $query_date_END\n\n";
+		$ASCII_text.=_QXZ("$report_name")." "._QXZ("Report")."                     $NOW_TIME ($db_source)\n";
+		$ASCII_text.=_QXZ("Time range").": $query_date_BEGIN to $query_date_END\n\n";
+		$HTML_text.=_QXZ("$report_name")." "._QXZ("Report")."                     $NOW_TIME ($db_source)\n";
+		$HTML_text.=_QXZ("Time range").": $query_date_BEGIN to $query_date_END\n\n";
 		}
 	else
 		{
-		$file_output .= _QXZ("$report_name")." Report                     $NOW_TIME\n";
-		$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
+		$file_output .= _QXZ("$report_name")." "._QXZ("Report")."                     $NOW_TIME\n";
+		$file_output .= _QXZ("Time range").": $query_date_BEGIN to $query_date_END\n\n";
 		}
 
 	$statuses='-';
@@ -630,18 +630,18 @@ else
 
 	if ($file_download < 1)
 		{
-		$ASCII_text.="INBOUND CALLS STATS BREAKDOWN:\n";
+		$ASCII_text.=_QXZ("INBOUND CALLS STATS BREAKDOWN").":\n";
 		$ASCII_text.="+---------------------------+----------+--------+--------+--------+$statusesHEAD\n";
-		$ASCII_text.="| USER NAME                 | ID       | CALLS  | CIcalls| DNC/CI%|$statusesHTML\n";
+		$ASCII_text.="| "._QXZ("USER NAME", 9)."                 | "._QXZ("ID", 2)."       | "._QXZ("CALLS", 5)."  | "._QXZ("CIcalls", 7)."| DNC/CI%|$statusesHTML\n";
 		$ASCII_text.="+---------------------------+----------+--------+--------+--------+$statusesHEAD\n";
 
-		$HTML_text.="INBOUND CALLS STATS BREAKDOWN:
\n"; + $HTML_text.=_QXZ("INBOUND CALLS STATS BREAKDOWN").":\n"; $HTML_text.=""; $HTML_text.=""; - $HTML_text.=""; - $HTML_text.=""; - $HTML_text.=""; - $HTML_text.=""; + $HTML_text.=""; + $HTML_text.=""; + $HTML_text.=""; + $HTML_text.=""; $HTML_text.=""; $HTML_text.=$HTML_statuses; $HTML_text.=""; @@ -649,7 +649,7 @@ else } else { - $file_output .= "USER,ID,CALLS,CIcalls,DNC-CI%,$statusesFILE\n"; + $file_output .= _QXZ("USER").","._QXZ("ID").","._QXZ("CALLS").","._QXZ("CIcalls").",DNC-CI%,$statusesFILE\n"; } @@ -987,14 +987,14 @@ else if ($file_download < 1) { $ASCII_text.="+---------------------------+----------+--------+--------+--------+$statusesHEAD\n"; - $ASCII_text.="| TOTALS AGENTS:$TOT_AGENTS | $TOTcalls| $CIScountTOT| $DNCcountPCT%|$SUMstatusesHTML\n"; + $ASCII_text.="| "._QXZ("TOTALS", 6)." "._QXZ("AGENTS", 6).":$TOT_AGENTS | $TOTcalls| $CIScountTOT| $DNCcountPCT%|$SUMstatusesHTML\n"; $ASCII_text.="| ".sprintf("%-36s", " ")." | ".sprintf("%-6s", " ")." | ".sprintf("%-6s", " ")." | ".sprintf("%-6s", " ")." |$SUMstatusesHTMLpct\n"; $ASCII_text.="+--------------------------------------+--------+--------+--------+$statusesHEAD\n"; $ASCII_text.="\n\n"; $HTML_text.=""; - $HTML_text.=""; + $HTML_text.=""; $HTML_text.=""; $HTML_text.=""; $HTML_text.=""; @@ -1100,7 +1100,7 @@ else } else { - $file_output .= "TOTALS,$TOT_AGENTS,$TOTcalls,$CIScountTOT,$DNCcountPCT%,$SUMstatusesFILE\n"; + $file_output .= _QXZ("TOTALS").",$TOT_AGENTS,$TOTcalls,$CIScountTOT,$DNCcountPCT%,$SUMstatusesFILE\n"; $file_output .= ",,,,,$SUMstatusesFILEpct\n"; } } @@ -1150,7 +1150,7 @@ if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo ""; -echo "
 USER NAME  ID  CALLS  CIcalls  "._QXZ("USER NAME")."  "._QXZ("ID")."  "._QXZ("CALLS")."  "._QXZ("CIcalls")."  DNC/CI% 
TOTALS      AGENTS:$TOT_AGENTS"._QXZ("TOTALS")."      "._QXZ("AGENTS").":$TOT_AGENTS$TOTcalls$CIScountTOT$DNCcountPCT%
"; + $GRAPH_header.=""; } $i=0; @@ -484,12 +484,12 @@ if ( (preg_match('/\-\-ALL\-\-/',$inbound_group_string) ) or ($inbound_group_ct else { # $group_string=preg_replace("/^\||\|$/", "", $group_string); - $ASCII_rpt_header.="Inbound groups: ".preg_replace("/\|/", ", ", $inbound_group_string); + $ASCII_rpt_header.=_QXZ("Inbound groups", 22).": ".preg_replace("/\|/", ", ", $inbound_group_string); $inbound_group_SQL = preg_replace('/,$/i', '',$inbound_group_SQL); $inbound_group_SQL = "and group_id in ($inbound_group_SQL)"; $ASCII_border_header.="----------------------------------------------------+"; $ASCII_header .=" ".sprintf("%-50s", "SELECTED INBOUND GROUPS")." |"; - $GRAPH_header.=""; + $GRAPH_header.=""; } @@ -665,7 +665,7 @@ $HTML_text.=_QXZ("Chat text").":
"; $HTML_text.="

"; $HTML_text.=_QXZ("Display as").":
"; $HTML_text.="

\n"; $HTML_text.="$NWB#agent_performance_detail$NWE\n"; $HTML_text.=""; + $GRAPH_text.=""; if (!preg_match("/\-\-ALL\-\-/", $user_string)) { $ASCII_text.="| ".sprintf("%-50s", $selected_agents)." "; $GRAPH_text.=""; diff --git a/www/vicidial/AST_dial_log_report.php b/www/vicidial/AST_dial_log_report.php index 6eb856fe..173dbc4d 100644 --- a/www/vicidial/AST_dial_log_report.php +++ b/www/vicidial/AST_dial_log_report.php @@ -487,8 +487,8 @@ $MAIN.=""; $MAIN.="
Dates:
"; +echo "
"._QXZ("Dates").":
"; echo "\n"; echo ""; @@ -1171,7 +1171,7 @@ o_cal.a_tpl.yearscroll = false; to
"; +echo "
"._QXZ("to")."
"; ?>
Inbound groups:
"; +echo "
"._QXZ("Inbound groups").":
"; echo "\n"; -echo "
User Groups:
"; +echo "
"._QXZ("User Groups").":
"; echo "\n"; -echo "
Shift:
"; +echo "
"._QXZ("Shift").":
"; echo "

\n"; -echo "Display as:
"; +echo _QXZ("Display as").":
"; echo "\n

"; echo "

"; echo ""._QXZ("Search archived data")."
\n"; echo ""._QXZ("Show defunct users")."

\n"; -echo "       \n"; +echo "       \n"; echo "
        "; echo "          \n"; -echo " DOWNLOAD | \n"; -echo " REPORTS "; +echo " "._QXZ("DOWNLOAD")." | \n"; +echo " "._QXZ("REPORTS")." "; echo "\n"; echo "
"; diff --git a/www/vicidial/AST_agent_status_detail.php b/www/vicidial/AST_agent_status_detail.php index b2c1cdd7..1db68a3b 100644 --- a/www/vicidial/AST_agent_status_detail.php +++ b/www/vicidial/AST_agent_status_detail.php @@ -448,7 +448,7 @@ if ($file_download < 1) echo "\n"; echo "\n"; - echo "$report_name\n"; + echo ""._QXZ("$report_name")."\n"; echo ""; $short_header=1; @@ -464,8 +464,8 @@ if ($file_download < 1) if ( (strlen($group[0]) < 1) or (strlen($user_group[0]) < 1) ) { echo "
";
-	echo "PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME BELOW AND CLICK SUBMIT\n";
-	echo " NOTE: stats taken from shift specified\n";
+	echo _QXZ("PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME BELOW AND CLICK SUBMIT")."\n";
+	echo " "._QXZ("NOTE: stats taken from shift specified")."\n";
 	}
 
 else
@@ -494,15 +494,15 @@ else
 
 	if ($file_download < 1)
 		{
-		$ASCII_text.=_QXZ("$report_name")." Report                     $NOW_TIME ($db_source)\n";
-		$ASCII_text.="Time range: $query_date_BEGIN to $query_date_END\n\n";
-		$GRAPH.=_QXZ("$report_name")." Report                     $NOW_TIME\n";
-		$GRAPH.="Time range: $query_date_BEGIN to $query_date_END\n\n";
+		$ASCII_text.=_QXZ("$report_name")." "._QXZ("Report")."                     $NOW_TIME ($db_source)\n";
+		$ASCII_text.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
+		$GRAPH.=_QXZ("$report_name")." "._QXZ("Report")."                     $NOW_TIME\n";
+		$GRAPH.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
 		}
 	else
 		{
-		$file_output .= _QXZ("$report_name")." Report                     $NOW_TIME\n";
-		$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
+		$file_output .= _QXZ("$report_name")." "._QXZ("Report")."                     $NOW_TIME\n";
+		$file_output .= _QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
 		}
 
 	$statuses='-';
@@ -663,15 +663,15 @@ else
 
 	if ($file_download < 1)
 		{
-		$ASCII_text.="CALLS STATS BREAKDOWN:\n";
+		$ASCII_text.=_QXZ("CALLS STATS BREAKDOWN").":\n";
 		$ASCII_text.="+---------------------------+----------+--------+--------+--------+$statusesHEAD\n";
-		$ASCII_text.="| USER NAME                 | ID       | CALLS  | CIcalls| DNC/CI%|$statusesHTML\n";
+		$ASCII_text.="| "._QXZ("USER NAME", 9)."                 | "._QXZ("ID", 2)."       | "._QXZ("CALLS", 5)."  | "._QXZ("CIcalls", 7)."| DNC/CI%|$statusesHTML\n";
 		$ASCII_text.="+---------------------------+----------+--------+--------+--------+$statusesHEAD\n";
 
 		}
 	else
 		{
-		$file_output .= "USER,ID,CALLS,CIcalls,DNC-CI%,$statusesFILE\n";
+		$file_output .= _QXZ("USER").","._QXZ("ID").","._QXZ("CALLS").","._QXZ("CIcalls").",DNC-CI%,$statusesFILE\n";
 		}
 
 
@@ -918,7 +918,7 @@ else
 	if ($file_download < 1)
 		{
 		$ASCII_text.="+---------------------------+----------+--------+--------+--------+$statusesHEAD\n";
-		$ASCII_text.="|  TOTALS        AGENTS:$TOT_AGENTS           | $TOTcalls| $CIScountTOT| $DNCcountPCT%|$SUMstatusesHTML\n";
+		$ASCII_text.="|  "._QXZ("TOTALS", 6)."        "._QXZ("AGENTS", 6).":$TOT_AGENTS           | $TOTcalls| $CIScountTOT| $DNCcountPCT%|$SUMstatusesHTML\n";
 		$ASCII_text.="+--------------------------------------+--------+--------+--------+$statusesHEAD\n";
 
 		$ASCII_text.="\n\n
"; @@ -1016,7 +1016,7 @@ else } else { - $file_output .= "TOTALS,$TOT_AGENTS,$TOTcalls,$CIScountTOT,$DNCcountPCT%,$SUMstatusesFILE\n"; + $file_output .= _QXZ("TOTALS").",$TOT_AGENTS,$TOTcalls,$CIScountTOT,$DNCcountPCT%,$SUMstatusesFILE\n"; } } @@ -1065,7 +1065,7 @@ if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo ""; -echo "
Dates:
"; +echo "
"._QXZ("Dates").":
"; echo "\n"; echo ""; @@ -1086,7 +1086,7 @@ o_cal.a_tpl.yearscroll = false; to
"; +echo "
"._QXZ("to")."
"; ?>
Campaigns:
"; +echo "
"._QXZ("Campaigns").":
"; echo "\n"; -echo "
User Groups:
"; +echo "
"._QXZ("User Groups").":
"; echo "\n"; -echo "
Shift:
"; +echo "
"._QXZ("Shift").":
"; echo "

\n"; -echo "Display as:
"; +echo _QXZ("Display as").":
"; echo "\n

"; echo "

"; echo ""._QXZ("Search archived data")."
\n"; @@ -1149,8 +1149,8 @@ echo "       \n"; echo "
        "; echo "          \n"; -echo " DOWNLOAD | \n"; -echo " REPORTS "; +echo " "._QXZ("DOWNLOAD")." | \n"; +echo " "._QXZ("REPORTS")." "; echo "\n"; echo "
"; diff --git a/www/vicidial/AST_agent_time_detail.php b/www/vicidial/AST_agent_time_detail.php index 59f7488f..bf5d2d21 100644 --- a/www/vicidial/AST_agent_time_detail.php +++ b/www/vicidial/AST_agent_time_detail.php @@ -1545,7 +1545,7 @@ while ($user_groups_to_print > $o) echo "\n"; echo "
"._QXZ("Shift").":
"; echo ""._ echo ""._QXZ("Search archived data")."
\n"; echo "
"._QXZ("Display as").":
"; echo "\n

"; echo "\n"; echo "
        "; diff --git a/www/vicidial/AST_agent_timeclock_detail.php b/www/vicidial/AST_agent_timeclock_detail.php index cb3d44a1..43477f86 100644 --- a/www/vicidial/AST_agent_timeclock_detail.php +++ b/www/vicidial/AST_agent_timeclock_detail.php @@ -495,11 +495,11 @@ window.open(url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes' echo ""; echo _QXZ("Display as").":   
"; echo "\n

"; echo "
"._QXZ("Shift").":
"; echo "
 \n"; $HTML_text.="\n"; $HTML_text.=_QXZ("Display as").":
"; $HTML_text.="\n

"; if ($archives_available=="Y") @@ -596,7 +596,7 @@ while($i < $group_ct) $SC_count = sprintf("%9s", "$SC_count"); while(strlen($SC_count)>9) {$SC_count = substr("$SC_count", 0, -1);} $COMP_count = sprintf("%9s", "$COMP_count"); while(strlen($COMP_count)>9) {$COMP_count = substr("$COMP_count", 0, -1);} - if ($list_active=='Y') {$list_active = 'ACTIVE ';} else {$list_active = 'INACTIVE';} + if ($list_active=='Y') {$list_active = _QXZ('ACTIVE', 8);} else {$list_active = _QXZ('INACTIVE', 8);} $header_list_id = "$list_id - $list_name"; $header_list_id = sprintf("%-51s", $header_list_id); while(strlen($header_list_id)>51) {$header_list_id = substr("$header_list_id", 0, -1);} $header_list_count = sprintf("%10s", $total_calls); while(strlen($header_list_count)>10) {$header_list_count = substr("$header_list_count", 0, -1);} diff --git a/www/vicidial/AST_carrier_log_report.php b/www/vicidial/AST_carrier_log_report.php index c9357871..3d8c478a 100644 --- a/www/vicidial/AST_carrier_log_report.php +++ b/www/vicidial/AST_carrier_log_report.php @@ -365,8 +365,8 @@ while ($servers_to_print > $o) $MAIN.="
\n"; $MAIN.=_QXZ("Display as:")."
"; $MAIN.="\n

"; +if ($report_display_type) {$MAIN.="";} +$MAIN.="\n

"; $MAIN.="\n"; $MAIN.="
\n"; if ($SUBMIT && $server_ip_ct>0) { diff --git a/www/vicidial/AST_chat_log_report.php b/www/vicidial/AST_chat_log_report.php index 86dd167c..55325a10 100644 --- a/www/vicidial/AST_chat_log_report.php +++ b/www/vicidial/AST_chat_log_report.php @@ -458,12 +458,12 @@ if ( (preg_match('/\-\-ALL\-\-/',$group_string) ) or ($group_ct < 1) ) else { # $group_string=preg_replace("/^\||\|$/", "", $group_string); - $ASCII_rpt_header.=" Campaigns: ".preg_replace("/\|/", ", ", $group_string); + $ASCII_rpt_header.=" "._QXZ("Campaigns", 9).": ".preg_replace("/\|/", ", ", $group_string); $group_SQL = preg_replace('/ or $/i', '',$group_SQL); $group_SQL = "and ($group_SQL or selected_campaigns='|')"; $ASCII_border_header.="----------------------------------------------------+"; $ASCII_header .=" ".sprintf("%-50s", "SELECTED CAMPAIGNS")." |"; - $GRAPH_header.="
SELECTED CAMPAIGNS"._QXZ("SELECTED CAMPAIGNS")."SELECTED INBOUND GROUPS"._QXZ("SELECTED INBOUND GROUPS")."         "; @@ -734,7 +734,7 @@ else $colspan='6'; $ASCII_text.="| ".sprintf("%7s", $row["manager_chat_id"])." "; $ASCII_text.="| ".$row["chat_start_date"]." "; - $ASCII_text.="| ".sprintf("%9s", $row["internal_chat_type"])." "; + $ASCII_text.="| ".sprintf("%9s", _QXZ($row["internal_chat_type"], 9))." "; $ASCII_text.="| ".sprintf("%-10s", $row["manager"])." "; $ASCII_text.="| ".$row["allow_replies"]." "; $selected_agents=preg_replace('/^\|$/', "ALL", $row["selected_agents"]); @@ -747,7 +747,7 @@ else $selected_user_groups=preg_replace('/\|/', ', ', $selected_user_groups); $selected_campaigns=preg_replace('/\|/', ', ', $selected_campaigns); - $GRAPH_text.="
$row[manager_chat_id]$row[chat_start_date]$row[manager]$row[allow_replies]
$row[manager_chat_id]$row[chat_start_date]"._QXZ("$row[manager]")."$row[allow_replies]$selected_agents\n"; $MAIN.=_QXZ("Display as:")."
"; $MAIN.="\n

"; +if ($report_display_type) {$MAIN.="";} +$MAIN.="\n

"; $MAIN.="

\n"; $MAIN.="
\n"; $TEXT.="
\n";
diff --git a/www/vicidial/AST_email_log_report.php b/www/vicidial/AST_email_log_report.php
index a69d43ff..8ceac585 100644
--- a/www/vicidial/AST_email_log_report.php
+++ b/www/vicidial/AST_email_log_report.php
@@ -531,10 +531,10 @@ if ($shift == 'ALL')
 $query_date_BEGIN = "$query_date 00:00:00";   
 $query_date_END = "$end_date 23:59:59";
 
-$rpt_title=_QXZ("Showing emails")." $email_title "._QXZ("that were")." $date_title "._QXZ("from")." $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
+$rpt_title=_QXZ("Showing emails")." "._QXZ("$email_title")." "._QXZ("that were")." "._QXZ("$date_title")." "._QXZ("from")." $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
 $MAIN.=$rpt_title;
 $MAIN.=_QXZ("Email log results").": $group_string          $NOW_TIME        "._QXZ("DOWNLOAD")."\n";
-$CSV_text1.="\""._QXZ("Showing emails")." $email_title "._QXZ("that were")." $date_title "._QXZ("from")." $query_date_BEGIN "._QXZ("to")." $query_date_END\"\n\n";
+$CSV_text1.="\""._QXZ("Showing emails")." "._QXZ("$email_title")." "._QXZ("that were")." "._QXZ("$date_title")." "._QXZ("from")." $query_date_BEGIN "._QXZ("to")." $query_date_END\"\n\n";
 
 if ($email_type=="received") 
 	{
diff --git a/www/vicidial/AST_hangup_cause_report.php b/www/vicidial/AST_hangup_cause_report.php
index 0bf1130c..15889a6d 100644
--- a/www/vicidial/AST_hangup_cause_report.php
+++ b/www/vicidial/AST_hangup_cause_report.php
@@ -692,8 +692,8 @@ $MAIN.="";
 $MAIN.="\n";
 $MAIN.=_QXZ("Display as:")."
"; $MAIN.="\n

"; +if ($report_display_type) {$MAIN.="";} +$MAIN.="\n

"; $MAIN.="

\n"; $MAIN.="\n"; if ($SUBMIT && $server_ip_ct>0) { diff --git a/www/vicidial/AST_inbound_forecasting.php b/www/vicidial/AST_inbound_forecasting.php index e176c383..979d32a6 100644 --- a/www/vicidial/AST_inbound_forecasting.php +++ b/www/vicidial/AST_inbound_forecasting.php @@ -569,7 +569,7 @@ $MAIN.="});\n"; $MAIN.="o_cal.a_tpl.yearscroll = false;\n"; $MAIN.="// o_cal.a_tpl.weekstart = 1; // Monday week start\n"; $MAIN.="

"; -$MAIN.=""._QXZ("Target drop rate").":
% (optional)"; +$MAIN.=""._QXZ("Target drop rate").":
% ("._QXZ("optional").")"; # $MAIN.=""._QXZ("Target queue prob.").":% (C report)"; $MAIN.="\n"; diff --git a/www/vicidial/AST_parkstats.php b/www/vicidial/AST_parkstats.php index afba7ab4..a8771805 100644 --- a/www/vicidial/AST_parkstats.php +++ b/www/vicidial/AST_parkstats.php @@ -352,10 +352,10 @@ $MAIN.="\n"; $MAIN.=_QXZ("Display as:")." "; $MAIN.=""; +if ($report_display_type) {$MAIN.="";} +$MAIN.=""; $MAIN.="\n"; -$MAIN.="Show details\n"; +$MAIN.=""._QXZ("Show details")."\n"; $MAIN.="\n"; $MAIN.="\n"; $MAIN.="           "._QXZ("MODIFY")." | "._QXZ("REPORTS")." \n"; diff --git a/www/vicidial/AST_performance_comparison_report.php b/www/vicidial/AST_performance_comparison_report.php index 25a51fc6..f3246bb0 100644 --- a/www/vicidial/AST_performance_comparison_report.php +++ b/www/vicidial/AST_performance_comparison_report.php @@ -571,7 +571,7 @@ while ($users_to_print > $o) $HTML_text.="\n"; $HTML_text.=""._QXZ("Shift").":
"; $HTML_text.="\n"; $HTML_text.=""; $HTML_text.=_QXZ("Display as").":
"; $HTML_text.="\n"; if ($archives_available=="Y") diff --git a/www/vicidial/AST_recording_log_report.php b/www/vicidial/AST_recording_log_report.php index f6dd3a45..7ee5f4fe 100644 --- a/www/vicidial/AST_recording_log_report.php +++ b/www/vicidial/AST_recording_log_report.php @@ -568,8 +568,8 @@ $HTML_text.="\n"; $HTML_text.=""; $HTML_text.=_QXZ("Display as:")."
"; $HTML_text.="\n

"; +if ($report_display_type) {$HTML_text.="";} +$HTML_text.="\n

"; $HTML_text.="\n"; if ($archives_available=="Y") { @@ -607,10 +607,10 @@ if ($SUBMIT) $HTML.="\n"; $TEXT.=$ASCII_border; - $TEXT.="| RECORDING ID | RECORDING DATE/TIME | LEAD ID | USER | DATE/TIME ACCESSED | ACCESS RESULT | IP |\n"; + $TEXT.="| "._QXZ("RECORDING ID", 12)." | "._QXZ("RECORDING DATE/TIME", 19)." | "._QXZ("LEAD ID", 10)." | "._QXZ("USER", 30)." | "._QXZ("DATE/TIME ACCESSED", 19)." | "._QXZ("ACCESS RESULT", 19)." | "._QXZ("IP", 15)." |\n"; $TEXT.=$ASCII_border; - $CSV_text.="\n\"RECORDING ID\",\"RECORDING DATE/TIME\",\"LEAD ID\",\"USER\",\"DATE/TIME ACCESSED\",\"ACCESS RESULT\",\"IP\"\n"; + $CSV_text.="\n\""._QXZ("RECORDING ID")."\",\""._QXZ("RECORDING DATE/TIME")."\",\""._QXZ("LEAD ID")."\",\""._QXZ("USER")."\",\""._QXZ("DATE/TIME ACCESSED")."\",\""._QXZ("ACCESS RESULT")."\",\""._QXZ("IP")."\"\n"; $rslt=mysql_to_mysqli($stmt, $link); while ($row=mysqli_fetch_array($rslt)) @@ -622,7 +622,7 @@ if ($SUBMIT) $TEXT.=sprintf("%-10s", $row["lead_id"])." | "; $TEXT.=sprintf("%-30s", $full_user)." | "; $TEXT.=sprintf("%-19s", $row["access_datetime"])." | "; - $TEXT.=sprintf("%-19s", $row["access_result"])." | "; + $TEXT.=sprintf("%-19s", _QXZ($row["access_result"], 19))." | "; $TEXT.=sprintf("%-15s", $row["ip"])." |\n"; $HTML.=""; @@ -631,7 +631,7 @@ if ($SUBMIT) $HTML.="".$row["lead_id"].""; $HTML.="".$row["user"]." - ".$row["full_name"].""; $HTML.="".$row["access_datetime"].""; - $HTML.="".$row["access_result"].""; + $HTML.=""._QXZ($row["access_result"]).""; $HTML.="".$row["ip"].""; $HTML.="\n"; diff --git a/www/vicidial/AST_rt_monitor_log_report.php b/www/vicidial/AST_rt_monitor_log_report.php index 71bf70e5..355aa108 100644 --- a/www/vicidial/AST_rt_monitor_log_report.php +++ b/www/vicidial/AST_rt_monitor_log_report.php @@ -630,7 +630,7 @@ $MAIN.="\n"; $MAIN.="\n"; $MAIN.=""; -$MAIN.="Display as:
"; if ($report_display_type) {$MAIN.="";} $MAIN.="  "; $MAIN.="



"._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS")."\n"; @@ -664,15 +664,19 @@ else $users_string=preg_replace("/^\||\|$/", "", $users_string); $manager_string=preg_replace("/^\||\|$/", "", $manager_string); - $MAIN.=" Date range : $query_date to $end_date\n"; - $MAIN.=" Campaigns : ".preg_replace("/\|/", ", ", $campaign_string)."\n"; - $MAIN.=" Managers : ".preg_replace("/\|/", ", ", $manager_string)."\n"; - $MAIN.=" Agents : ".preg_replace("/\|/", ", ", $users_string)."\n\n"; + $campaign_string=preg_replace("/\-\-ALL\-\-/", "--"._QXZ("ALL")."--", $campaign_string); + $users_string=preg_replace("/\-\-ALL\-\-/", "--"._QXZ("ALL")."--", $users_string); + $manager_string=preg_replace("/\-\-ALL\-\-/", "--"._QXZ("ALL")."--", $manager_string); - $CSV_text.="\"Date range:\",\"$query_date to $end_date\"\n"; - $CSV_text.="\"Campaigns:\",\"".preg_replace("/\|/", ", ", $campaign_string)."\"\n"; - $CSV_text.="\"Managers:\",\"".preg_replace("/\|/", ", ", $manager_string)."\"\n"; - $CSV_text.="\"Agents:\",\"".preg_replace("/\|/", ", ", $users_string)."\"\n\n"; + $MAIN.=" "._QXZ("Date range", 11).": $query_date "._QXZ("to")." $end_date\n"; + $MAIN.=" "._QXZ("Campaigns", 11).": ".preg_replace("/\|/", ", ", $campaign_string)."\n"; + $MAIN.=" "._QXZ("Managers", 11).": ".preg_replace("/\|/", ", ", $manager_string)."\n"; + $MAIN.=" "._QXZ("Agents", 11).": ".preg_replace("/\|/", ", ", $users_string)."\n\n"; + + $CSV_text.="\""._QXZ("Date range").":\",\"$query_date "._QXZ("to")." $end_date\"\n"; + $CSV_text.="\""._QXZ("Campaigns").":\",\"".preg_replace("/\|/", ", ", $campaign_string)."\"\n"; + $CSV_text.="\""._QXZ("Managers").":\",\"".preg_replace("/\|/", ", ", $manager_string)."\"\n"; + $CSV_text.="\""._QXZ("Agents").":\",\"".preg_replace("/\|/", ", ", $users_string)."\"\n\n"; $order_by=preg_replace('/\-/', ' ', $order_by); @@ -685,7 +689,7 @@ else $ASCII_header="+---------------------+--------------------------------+-----------------+---------------+-----------------+--------------------------------+-----------------+--------------+---------------+---------+----------+---------------------+----------+---------+\n"; $ASCII_text2="| "._QXZ("START TIME", 19)." | "._QXZ("MANAGER", 30)." | "._QXZ("MANAGER SERVER", 15)." | "._QXZ("MANAGER PHONE", 13)." | "._QXZ("MANAGER IP", 15)." | "._QXZ("AGENT MONITORED", 30)." | "._QXZ("AGENT SERVER", 15)." | "._QXZ("AGENT STATUS", 12)." | "._QXZ("AGENT SESSION", 13)." | "._QXZ("LEAD ID", 7)." | "._QXZ("CAMPAIGN", 8)." | "._QXZ("END TIME", 19)." | "._QXZ("LENGTH", 8)." | "._QXZ("TYPE", 7)." |\n"; - $CSV_text.="\"START TIME\",\"MANAGER\",\"MANAGER SERVER\",\"MANAGER PHONE\",\"MANAGER IP\",\"AGENT MONITORED\",\"AGENT SERVER\",\"AGENT STATUS\",\"AGENT SESSION\",\"LEAD ID\",\"CAMPAIGN\",\"END TIME\",\"LENGTH\",\"TYPE\"\n"; + $CSV_text.="\""._QXZ("START TIME")."\",\""._QXZ("MANAGER")."\",\""._QXZ("MANAGER SERVER")."\",\""._QXZ("MANAGER PHONE")."\",\""._QXZ("MANAGER IP")."\",\""._QXZ("AGENT MONITORED")."\",\""._QXZ("AGENT SERVER")."\",\""._QXZ("AGENT STATUS")."\",\""._QXZ("AGENT SESSION")."\",\""._QXZ("LEAD ID")."\",\""._QXZ("CAMPAIGN")."\",\""._QXZ("END TIME")."\",\""._QXZ("LENGTH")."\",\""._QXZ("TYPE")."\"\n"; $ASCII_text=$ASCII_header.$ASCII_text2.$ASCII_header; @@ -718,13 +722,13 @@ else $HTML_text.="".$log_row["manager_ip"]."\n"; $HTML_text.="".$log_row["agent_user"]." - ".$user_array["$log_row[agent_user]"]."\n"; $HTML_text.="".$log_row["agent_server_ip"]."\n"; - $HTML_text.="".$log_row["agent_status"]."\n"; + $HTML_text.=""._QXZ($log_row["agent_status"])."\n"; $HTML_text.="".$log_row["agent_session"]."\n"; $HTML_text.="".$log_row["lead_id"]."\n"; $HTML_text.="".$log_row["campaign_id"]."\n"; $HTML_text.="".$log_row["monitor_end_time"]."\n"; $HTML_text.="".$log_row["monitor_sec"]."\n"; - $HTML_text.="".$log_row["monitor_type"]."\n"; + $HTML_text.=""._QXZ("$log_row[monitor_type]")."\n"; $HTML_text.="\n"; $q++; @@ -735,13 +739,13 @@ else $ASCII_text.="| ".sprintf("%-15s", $log_row["manager_ip"])." "; $ASCII_text.="| ".sprintf("%-30s", substr($log_row["agent_user"]." - ".$user_array["$log_row[agent_user]"], 0, 30))." "; $ASCII_text.="| ".sprintf("%-15s", $log_row["agent_server_ip"])." "; - $ASCII_text.="| ".sprintf("%-12s", $log_row["agent_status"])." "; + $ASCII_text.="| ".sprintf("%-12s", _QXZ($log_row["agent_status"]))." "; $ASCII_text.="| ".sprintf("%-13s", $log_row["agent_session"])." "; $ASCII_text.="| ".sprintf("%-7s", $log_row["lead_id"])." "; $ASCII_text.="| ".sprintf("%-8s", $log_row["campaign_id"])." "; $ASCII_text.="| ".sprintf("%-19s", $log_row["monitor_end_time"])." "; $ASCII_text.="| ".sprintf("%-8s", $log_row["monitor_sec"])." "; - $ASCII_text.="| ".sprintf("%-7s", $log_row["monitor_type"])." |\n"; + $ASCII_text.="| ".sprintf("%-7s", _QXZ("$log_row[monitor_type]", 7))." |\n"; $CSV_text.="\"".$log_row["monitor_start_time"]."\","; $CSV_text.="\"".substr($log_row["manager_user"]." - ".$manager_array["$log_row[manager_user]"], 0, 30)."\","; @@ -756,7 +760,7 @@ else $CSV_text.="\"".$log_row["campaign_id"]."\","; $CSV_text.="\"".$log_row["monitor_end_time"]."\","; $CSV_text.="\"".$log_row["monitor_sec"]."\","; - $CSV_text.="\"".$log_row["monitor_type"]."\"\n"; + $CSV_text.="\""._QXZ("$log_row[monitor_type]")."\"\n"; } diff --git a/www/vicidial/AST_source_vlc_status_report.php b/www/vicidial/AST_source_vlc_status_report.php index 0f9012ff..6a034dae 100644 --- a/www/vicidial/AST_source_vlc_status_report.php +++ b/www/vicidial/AST_source_vlc_status_report.php @@ -413,7 +413,7 @@ $HTML_text.=" \n"; $HTML_text.="\n"; $HTML_text.=_QXZ("Display as").":
"; $HTML_text.="\n

"; if ($archives_available=="Y") @@ -504,10 +504,10 @@ while($i < $group_ct) } $HTML_body.=""; - $HTML_body.=""; + $HTML_body.=""; $HTML_body.=""; - $ASCII_text.=""._QXZ("$rpt_group_title")." : ".($key !="" ? $key : "(NONE)")."\n"; + $ASCII_text.=""._QXZ("$rpt_group_title")." : ".($key !="" ? $key : "("._QXZ("NONE").")")."\n"; $ASCII_text.="+------------------------------------------+--------+----------+\n"; $ASCII_text.="| "._QXZ("DISPOSITION",40)." | "._QXZ("CALLS",6)." | "._QXZ("PERCENT", 8)." |\n"; $ASCII_text.="+------------------------------------------+--------+----------+\n"; @@ -530,7 +530,7 @@ while($i < $group_ct) $percent=sprintf("%.2f", 100*MathZDC($val2, $total_ary["$key"])); $HTML_body.=""; $ASCII_text.="| ".sprintf("%-40s", ($dispo_ary["$key2"] !="" ? $dispo_ary["$key2"] : $key2))." | ".sprintf("%6s", $val2)." | ".sprintf("%7s", $percent)."% |\n"; - $CSV_text.="\"".($key !="" ? $key : "(NONE)")."\",\"".($dispo_ary["$key2"] !="" ? $dispo_ary["$key2"] : $key2)."\",\"".$val2."\",\"".$percent." %\"\n"; + $CSV_text.="\"".($key !="" ? $key : "("._QXZ("NONE").")")."\",\"".($dispo_ary["$key2"] !="" ? $dispo_ary["$key2"] : $key2)."\",\"".$val2."\",\"".$percent." %\"\n"; $j++; } @@ -539,15 +539,15 @@ while($i < $group_ct) $ASCII_text.="+------------------------------------------+--------+----------+\n"; $ASCII_text.="| "._QXZ("TOTAL",40)." | ".sprintf("%6s", $total_ary["$key"])." | ".sprintf("%8s", " ")." |\n"; $ASCII_text.="+------------------------------------------+--------+----------+\n\n"; - $CSV_text.="\"".($key !="" ? $key : "(NONE)")."\",\""._QXZ("TOTAL")."\",\"".$total_ary["$key"]."\",\"\"\n\n"; + $CSV_text.="\"".($key !="" ? $key : "("._QXZ("NONE").")")."\",\""._QXZ("TOTAL")."\",\"".$total_ary["$key"]."\",\"\"\n\n"; } $i++; $HTML_body.="
"._QXZ("$rpt_group_title")." : ".($key !="" ? $key : "(NONE)")."
"._QXZ("$rpt_group_title")." : ".($key !="" ? $key : "("._QXZ("NONE").")")."
"._QXZ("DISPOSITION",40).""._QXZ("CALLS",6).""._QXZ("PERCENT", 7)."
".($dispo_ary["$key2"] !="" ? $dispo_ary["$key2"] : $key2)."".$val2."".$percent." %
"; - $HTML_body.=""; + $HTML_body.=""; $HTML_body.=""; - $ASCII_text.=""._QXZ("$rpt_group_title")." : TOTALS\n"; + $ASCII_text.=""._QXZ("$rpt_group_title")." : "._QXZ("TOTALS")."\n"; $ASCII_text.="+------------------------------------------+--------+----------+\n"; $ASCII_text.="| "._QXZ("DISPOSITION",40)." | "._QXZ("CALLS",6)." | "._QXZ("PERCENT", 8)." |\n"; $ASCII_text.="+------------------------------------------+--------+----------+\n"; diff --git a/www/vicidial/AST_team_performance_detail.php b/www/vicidial/AST_team_performance_detail.php index df26f8de..d9dab11e 100644 --- a/www/vicidial/AST_team_performance_detail.php +++ b/www/vicidial/AST_team_performance_detail.php @@ -509,7 +509,7 @@ $HTML_text.="\n"; $HTML_text.="\n"; $HTML_text.="
"._QXZ("$rpt_group_title")." : TOTALS
"._QXZ("$rpt_group_title")." : "._QXZ("TOTALS")."
"._QXZ("DISPOSITION",40).""._QXZ("CALLS",6).""._QXZ("PERCENT", 7)."
"; $HTML_text.="\n"; $HTML_text.="\n"; -$HTML_text.="Date Range:
\n"; +$HTML_text.=_QXZ("Date Range").":
\n"; $HTML_text.="\n"; $HTML_text.="\n"; @@ -611,7 +611,7 @@ $HTML_text.="
\n"; $HTML_text.=_QXZ("Display as").":
"; $HTML_text.="\n

"; $HTML_text.="\n"; $HTML_text.="
        "; diff --git a/www/vicidial/AST_timeonVDADall.php b/www/vicidial/AST_timeonVDADall.php index ef041e9d..30553a7a 100644 --- a/www/vicidial/AST_timeonVDADall.php +++ b/www/vicidial/AST_timeonVDADall.php @@ -2040,7 +2040,7 @@ else echo "
"; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -2070,7 +2070,7 @@ else echo ""; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; @@ -2104,7 +2104,7 @@ else echo ""; - echo ""; + echo ""; echo ""; if ($AGENTtimeSTATS>0) diff --git a/www/vicidial/AST_timeonVDADallSUMMARY.php b/www/vicidial/AST_timeonVDADallSUMMARY.php index 481dd66f..0e52ad9f 100644 --- a/www/vicidial/AST_timeonVDADallSUMMARY.php +++ b/www/vicidial/AST_timeonVDADallSUMMARY.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2017 Matt Florell LICENSE: AGPLv2 # # Summary for all campaigns live real-time stats for the VICIDIAL Auto-Dialer all servers # @@ -252,7 +252,7 @@ $HEADER.=" \n"; $HEADER.="\n"; -$HEADER.="$report_name\n"; +$HEADER.=""._QXZ("$report_name")."\n"; $short_header=1; diff --git a/www/vicidial/AST_url_log_report.php b/www/vicidial/AST_url_log_report.php index ee6c5fe1..178802e8 100644 --- a/www/vicidial/AST_url_log_report.php +++ b/www/vicidial/AST_url_log_report.php @@ -305,7 +305,7 @@ $MAIN.="

"; -$MAIN.="
"._QXZ("DIAL LEVEL").":  $DIALlev    "._QXZ("TRUNK SHORT/FILL").":  $balanceSHORT / $balanceFILL     "._QXZ("FILTER").":  $DIALfilter   "._QXZ("FILTER").":  "._QXZ("$DIALfilter")."   "._QXZ("TIME").":   $NOW_TIME
"._QXZ("DIALABLE LEADS").":  $DAleads     "._QXZ("CALLS TODAY").":  $callsTODAY     "._QXZ("AVG AGENTS").":  $agentsONEMIN     "._QXZ("DIAL METHOD").":  $DIALmethod     "._QXZ("DIAL METHOD").":  "._QXZ("$DIALmethod")."    
"._QXZ("DIFF").":  $diffpctONEMIN%     "._QXZ("ORDER").":  $DIALorder     "._QXZ("ORDER").":  "._QXZ("$DIALorder")."    
URL type:
\n"; +$MAIN.="
"._QXZ("URL type").":
\n"; $MAIN.="
\n"; -$MAIN.="Display as:
"; +$MAIN.=_QXZ("Display as").":
"; $MAIN.="\n

"; $MAIN.="

\n"; $MAIN.="
\n"; @@ -363,7 +363,7 @@ if ($SUBMIT && $url_type_ct>0) { if (!$lower_limit) {$lower_limit=1;} if ($lower_limit+999>=mysqli_num_rows($rpt_rslt)) {$upper_limit=($lower_limit+mysqli_num_rows($rpt_rslt)%1000)-1;} else {$upper_limit=$lower_limit+999;} - $ASCII_text.="--- "._QXZ("URL LOG RECORDS FOR")." $query_date, $query_date_D TO $query_date_T $server_rpt_string, "._QXZ("RECORDS")." #$lower_limit-$upper_limit ["._QXZ("DOWNLOAD")."]\n"; + $ASCII_text.="--- "._QXZ("URL LOG RECORDS FOR")." $query_date, $query_date_D "._QXZ("TO")." $query_date_T $server_rpt_string, "._QXZ("RECORDS")." #$lower_limit-$upper_limit ["._QXZ("DOWNLOAD")."]\n"; $url_rpt.="+----------------------+---------------------+--------------+----------+----------------------------------------------------------------------------------+----------------------------------------------------------------------------------+\n"; $url_rpt.="| "._QXZ("UNIQUE ID",20)." | "._QXZ("URL DATE",19)." | "._QXZ("URL TYPE",12)." | "._QXZ("RESP SEC",8)." | "._QXZ("URL",80)." | "._QXZ("URL RESPONSE",80)." |\n"; $url_rpt.="+----------------------+---------------------+--------------+----------+----------------------------------------------------------------------------------+----------------------------------------------------------------------------------+\n"; diff --git a/www/vicidial/AST_user_group_hourly_detail.php b/www/vicidial/AST_user_group_hourly_detail.php index 6d8c4192..b74c4020 100644 --- a/www/vicidial/AST_user_group_hourly_detail.php +++ b/www/vicidial/AST_user_group_hourly_detail.php @@ -425,18 +425,18 @@ if ($SUBMIT && $query_date && $start_hour && $end_hour) { $CSV_text .= "\""._QXZ("$report_name",24).": $NOW_TIME ($db_source)\"\n\n"; $CSV_text .= "\""._QXZ("Time range").": $query_date $start_hour:00:00 "._QXZ("to")." $query_date $end_hour:59:59\"\n"; - $CSV_text .= "\""._QXZ("User groups").": ".implode(', ', $user_group)."\"\n"; - $CSV_text .= "\""._QXZ("Campaigns").": ".implode(', ', $group)."\"\n\n"; + $CSV_text .= "\""._QXZ("User groups").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $user_group))."\"\n"; + $CSV_text .= "\""._QXZ("Campaigns").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $group))."\"\n\n"; $ASCII_text .= _QXZ("$report_name",24).": $user $NOW_TIME ($db_source)\n\n"; $ASCII_text .= _QXZ("Time range").": $query_date $start_hour:00:00 "._QXZ("to")." $query_date $end_hour:59:59\n"; - $ASCII_text .= _QXZ("User groups").": ".implode(', ', $user_group)."\n"; - $ASCII_text .= _QXZ("Campaigns").": ".implode(', ', $group)."\n\n"; + $ASCII_text .= _QXZ("User groups").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $user_group))."\n"; + $ASCII_text .= _QXZ("Campaigns").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $group))."\n\n"; $HTML_text .= _QXZ("$report_name",24).": $user $NOW_TIME ($db_source)\n\n"; $HTML_text .= _QXZ("Time range").": $query_date $start_hour:00:00 "._QXZ("to")." $query_date $end_hour:59:59\n"; - $HTML_text .= _QXZ("User groups").": ".implode(', ', $user_group)."\n"; - $HTML_text .= _QXZ("Campaigns").": ".implode(', ', $group)."\n\n"; + $HTML_text .= _QXZ("User groups").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $user_group))."\n"; + $HTML_text .= _QXZ("Campaigns").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $group))."\n\n"; $stmt="select user_group, substr(event_time, 12,2) as hour, count(distinct user) as ct from ".$vicidial_agent_log_table." where event_time>='$query_date $start_hour:00:00' and event_time<='$query_date $end_hour:59:59' $group_SQL $user_group_SQL group by user_group, hour order by hour, user_group"; if ($DB) {$ASCII_text.=$stmt."\n";} @@ -665,8 +665,8 @@ echo "
\n"; echo _QXZ("Display as:")."
"; echo "\n

"; +if ($report_display_type) {echo "";} +echo "\n

"; if ($archives_available=="Y") { diff --git a/www/vicidial/AST_user_group_hourly_detail_v2.php b/www/vicidial/AST_user_group_hourly_detail_v2.php index c02fc433..e02c4df0 100644 --- a/www/vicidial/AST_user_group_hourly_detail_v2.php +++ b/www/vicidial/AST_user_group_hourly_detail_v2.php @@ -413,18 +413,18 @@ if ($SUBMIT && $query_date && $start_hour && $end_hour) { $CSV_text .= "\""._QXZ("$report_name",24).": $NOW_TIME ($db_source)\"\n\n"; $CSV_text .= "\""._QXZ("Time range").": $query_date $start_hour:00:00 "._QXZ("to")." $query_date $end_hour:59:59\"\n"; - $CSV_text .= "\""._QXZ("User groups").": ".implode(', ', $user_group)."\"\n"; - $CSV_text .= "\""._QXZ("Campaigns").": ".implode(', ', $group)."\"\n\n"; + $CSV_text .= "\""._QXZ("User groups").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $user_group))."\"\n"; + $CSV_text .= "\""._QXZ("Campaigns").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $group))."\"\n\n"; $ASCII_text .= _QXZ("$report_name",24).": $user $NOW_TIME ($db_source)\n\n"; $ASCII_text .= _QXZ("Time range").": $query_date $start_hour:00:00 "._QXZ("to")." $query_date $end_hour:59:59\n"; - $ASCII_text .= _QXZ("User groups").": ".implode(', ', $user_group)."\n"; - $ASCII_text .= _QXZ("Campaigns").": ".implode(', ', $group)."\n\n"; + $ASCII_text .= _QXZ("User groups").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $user_group))."\n"; + $ASCII_text .= _QXZ("Campaigns").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $group))."\n\n"; $HTML_text .= _QXZ("$report_name",24).": $user $NOW_TIME ($db_source)\n\n"; $HTML_text .= _QXZ("Time range").": $query_date $start_hour:00:00 "._QXZ("to")." $query_date $end_hour:59:59\n"; - $HTML_text .= _QXZ("User groups").": ".implode(', ', $user_group)."\n"; - $HTML_text .= _QXZ("Campaigns").": ".implode(', ', $group)."\n\n"; + $HTML_text .= _QXZ("User groups").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $user_group))."\n"; + $HTML_text .= _QXZ("Campaigns").": ".preg_replace('/\-\-ALL\-\-/', "--"._QXZ("ALL")."--", implode(', ', $group))."\n\n"; $stmt="select distinct log.user_group, substr(log.event_time, 12, 2) AS hour,log.user user from ".$vicidial_agent_log_table." log join vicidial_users u using(user) where log.event_time>='$query_date $start_hour:00:00' and log.event_time<='$query_date $end_hour:59:59' $group_SQL $user_group_SQL"; if ($DB) {$ASCII_text.="* ".$stmt."\n";} @@ -698,7 +698,7 @@ if ($archives_available=="Y") echo "

"._QXZ("Display as:")."
"; echo "\n

"; echo "

\n"; diff --git a/www/vicidial/AST_usergroup_login_report.php b/www/vicidial/AST_usergroup_login_report.php index d1f6a316..2bb028c3 100644 --- a/www/vicidial/AST_usergroup_login_report.php +++ b/www/vicidial/AST_usergroup_login_report.php @@ -377,8 +377,8 @@ $HTML_text.="
\n"; $HTML_text.=_QXZ("Display as:")."
"; $HTML_text.="\n

"; +if ($report_display_type) {$HTML_text.="";} +$HTML_text.="\n

"; if ($archives_available=="Y") { diff --git a/www/vicidial/AST_webserver_url_report.php b/www/vicidial/AST_webserver_url_report.php index b19c29cb..fabb6497 100644 --- a/www/vicidial/AST_webserver_url_report.php +++ b/www/vicidial/AST_webserver_url_report.php @@ -438,8 +438,8 @@ $MAIN.="
\n"; $MAIN.=_QXZ("Display as:"); $MAIN.="\n

"; +if ($report_display_type) {$MAIN.="";} +$MAIN.="\n

"; $MAIN.="

\n"; $MAIN.="
\n"; diff --git a/www/vicidial/Erlang_report.php b/www/vicidial/Erlang_report.php index 4583efcd..08215055 100644 --- a/www/vicidial/Erlang_report.php +++ b/www/vicidial/Erlang_report.php @@ -566,8 +566,8 @@ $MAIN.="});\n"; $MAIN.="o_cal.a_tpl.yearscroll = false;\n"; $MAIN.="// o_cal.a_tpl.weekstart = 1; // Monday week start\n"; $MAIN.="

"; -$MAIN.=""._QXZ("Target drop rate").":% (B report)
"; -$MAIN.=""._QXZ("Target queue prob.").":% (C report)"; +$MAIN.=""._QXZ("Target drop rate").":% (B "._QXZ("report").")
"; +$MAIN.=""._QXZ("Target queue prob.").":% (C "._QXZ("report").")"; $MAIN.="\n"; $MAIN.=" "._QXZ("Campaigns").":
"; diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index 57c0f8a1..35184ec2 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -105,6 +105,8 @@ $reports_color = '#E6E6E6'; $sg_color = '#C6C6C6'; $ar_color = '#C6C6C6'; $il_color = '#C6C6C6'; + $cg_color = '#C6C6C6'; + $vmmg_color = '#C6C6C6'; $subcamp_color = '#C6C6C6'; $Msubhead_color = '#E6E6E6'; @@ -2445,6 +2447,29 @@ if (isset($_GET["max_inbound_filter_ingroups"])) {$max_inbound_filter_ingroups elseif (isset($_POST["max_inbound_filter_ingroups"])) {$max_inbound_filter_ingroups=$_POST["max_inbound_filter_ingroups"];} if (isset($_GET["max_inbound_filter_min_sec"])) {$max_inbound_filter_min_sec=$_GET["max_inbound_filter_min_sec"];} elseif (isset($_POST["max_inbound_filter_min_sec"])) {$max_inbound_filter_min_sec=$_POST["max_inbound_filter_min_sec"];} +if (isset($_GET["enable_second_script"])) {$enable_second_script=$_GET["enable_second_script"];} + elseif (isset($_POST["enable_second_script"])) {$enable_second_script=$_POST["enable_second_script"];} +if (isset($_GET["ingroup_script_two"])) {$ingroup_script_two=$_GET["ingroup_script_two"];} + elseif (isset($_POST["ingroup_script_two"])) {$ingroup_script_two=$_POST["ingroup_script_two"];} +if (isset($_GET["campaign_script_two"])) {$campaign_script_two=$_GET["campaign_script_two"];} + elseif (isset($_POST["campaign_script_two"])) {$campaign_script_two=$_POST["campaign_script_two"];} +if (isset($_GET["leave_vm_message_group_id"])) {$leave_vm_message_group_id=$_GET["leave_vm_message_group_id"];} + elseif (isset($_POST["leave_vm_message_group_id"])) {$leave_vm_message_group_id=$_POST["leave_vm_message_group_id"];} +if (isset($_GET["leave_vm_message_group_notes"])) {$leave_vm_message_group_notes=$_GET["leave_vm_message_group_notes"];} + elseif (isset($_POST["leave_vm_message_group_notes"])) {$leave_vm_message_group_notes=$_POST["leave_vm_message_group_notes"];} +if (isset($_GET["audio_filename"])) {$audio_filename=$_GET["audio_filename"];} + elseif (isset($_POST["audio_filename"])) {$audio_filename=$_POST["audio_filename"];} +if (isset($_GET["audio_name"])) {$audio_name=$_GET["audio_name"];} + elseif (isset($_POST["audio_name"])) {$audio_name=$_POST["audio_name"];} +if (isset($_GET["time_start"])) {$time_start=$_GET["time_start"];} + elseif (isset($_POST["time_start"])) {$time_start=$_POST["time_start"];} +if (isset($_GET["time_end"])) {$time_end=$_GET["time_end"];} + elseif (isset($_POST["time_end"])) {$time_end=$_POST["time_end"];} +if (isset($_GET["leave_vm_no_dispo"])) {$leave_vm_no_dispo=$_GET["leave_vm_no_dispo"];} + elseif (isset($_POST["leave_vm_no_dispo"])) {$leave_vm_no_dispo=$_POST["leave_vm_no_dispo"];} +if (isset($_GET["leave_vm_message_group_id"])) {$leave_vm_message_group_id=$_GET["leave_vm_message_group_id"];} + elseif (isset($_POST["leave_vm_message_group_id"])) {$leave_vm_message_group_id=$_POST["leave_vm_message_group_id"];} + if (isset($script_id)) {$script_id= strtoupper($script_id);} if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);} @@ -2458,7 +2483,7 @@ if (strlen($dial_status) > 0) ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled,admin_web_directory,webphone_url,first_login_trigger,hosted_settings,default_phone_registration_password,default_phone_login_password,default_server_password,test_campaign_calls,active_voicemail_server,voicemail_timezones,default_voicemail_timezone,default_local_gmt,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,allow_emails,level_8_disable_add,pass_key,pass_hash_enabled,disable_auto_dial,country_code_list_stats,frozen_server_call_clear,active_modules,allow_chats,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,default_language,user_hide_realtime_enabled,log_recording_access,alt_ivr_logging,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,agent_soundboards,web_loader_phone_length,agent_script,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,enable_gdpr_download_deletion,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled,admin_web_directory,webphone_url,first_login_trigger,hosted_settings,default_phone_registration_password,default_phone_login_password,default_server_password,test_campaign_calls,active_voicemail_server,voicemail_timezones,default_voicemail_timezone,default_local_gmt,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,allow_emails,level_8_disable_add,pass_key,pass_hash_enabled,disable_auto_dial,country_code_list_stats,frozen_server_call_clear,active_modules,allow_chats,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,default_language,user_hide_realtime_enabled,log_recording_access,alt_ivr_logging,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,agent_soundboards,web_loader_phone_length,agent_script,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,enable_gdpr_download_deletion,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking,enable_second_script FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); @@ -2545,6 +2570,7 @@ if ($qm_conf_ct > 0) $SSlist_status_modification_confirmation = $row[77]; $SSsip_event_logging = $row[78]; $SScall_quota_lead_ranking = $row[79]; + $SSenable_second_script = $row[80]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -2879,6 +2905,9 @@ if ($non_latin < 1) $user_admin_redirect = preg_replace('/[^0-9]/','',$user_admin_redirect); $list_status_modification_confirmation = preg_replace('/[^0-9]/','',$list_status_modification_confirmation); $max_inbound_filter_enabled = preg_replace('/[^0-9]/','',$max_inbound_filter_enabled); + $enable_second_script = preg_replace('/[^0-9]/','',$enable_second_script); + $time_start = preg_replace('/[^0-9]/','',$time_start); + $time_end = preg_replace('/[^0-9]/','',$time_end); $user_new_lead_limit = preg_replace('/[^-0-9]/','',$user_new_lead_limit); $drop_call_seconds = preg_replace('/[^-0-9]/','',$drop_call_seconds); @@ -3024,7 +3053,6 @@ if ($non_latin < 1) $manual_dial_validation = preg_replace('/[^0-9NY]/','',$manual_dial_validation); ### ALPHA-NUMERIC ONLY ### - $script_id = preg_replace('/[^0-9a-zA-Z]/','',$script_id); $agent_script_override = preg_replace('/[^0-9a-zA-Z]/','',$agent_script_override); $campaign_script = preg_replace('/[^0-9a-zA-Z]/','',$campaign_script); $submit = preg_replace('/[^0-9a-zA-Z]/','',$submit); @@ -3112,6 +3140,7 @@ if ($non_latin < 1) $areacode = preg_replace('/[^0-9a-zA-Z]/','',$areacode); $require_mgr_approval = preg_replace('/[^0-9a-zA-Z]/','',$require_mgr_approval); $mute_recordings = preg_replace('/[^0-9a-zA-Z]/','',$mute_recordings); + $leave_vm_no_dispo = preg_replace('/[^0-9a-zA-Z]/','',$leave_vm_no_dispo); ### DIGITS and Dots $server_ip = preg_replace('/[^\.0-9]/','',$server_ip); @@ -3428,6 +3457,12 @@ if ($non_latin < 1) $call_quota_lead_ranking = preg_replace('/[^-_0-9a-zA-Z]/','',$call_quota_lead_ranking); $sip_event_logging = preg_replace('/[^-_0-9a-zA-Z]/','',$sip_event_logging); $auto_active_list_new = preg_replace('/[^-_0-9a-zA-Z]/','',$auto_active_list_new); + $script_id = preg_replace('/[^-_0-9a-zA-Z]/','',$script_id); + $ingroup_script = preg_replace('/[^-_0-9a-zA-Z]/','',$ingroup_script); + $ingroup_script_two = preg_replace('/[^-_0-9a-zA-Z]/','',$ingroup_script_two); + $campaign_script = preg_replace('/[^-_0-9a-zA-Z]/','',$campaign_script); + $campaign_script_two = preg_replace('/[^-_0-9a-zA-Z]/','',$campaign_script_two); + $leave_vm_message_group_id = preg_replace('/[^-_0-9a-zA-Z]/','',$leave_vm_message_group_id); ### ALPHA-NUMERIC and underscore and dash and slash and dot $menu_timeout_prompt = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$menu_timeout_prompt); @@ -3489,6 +3524,7 @@ if ($non_latin < 1) $cid_cb_error_filename = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$cid_cb_error_filename); $place_in_line_caller_number_filename = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$place_in_line_caller_number_filename); $place_in_line_you_next_filename = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$place_in_line_you_next_filename); + $audio_filename = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$audio_filename); ### ALPHA-NUMERIC and underscore and dash and slash and dot and comma $menu_prompt = preg_replace('/[^-\/\|\,\._0-9a-zA-Z]/','',$menu_prompt); @@ -3626,6 +3662,8 @@ if ($non_latin < 1) $ip_list_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$ip_list_name); $cid_group_notes = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$cid_group_notes); $populate_lead_vendor = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$populate_lead_vendor); + $leave_vm_message_group_notes = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$leave_vm_message_group_notes); + $audio_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$audio_name); ### ALPHA-NUMERIC and underscore and dash and slash and at and dot $call_out_number_group = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$call_out_number_group); @@ -4535,12 +4573,13 @@ else # 190930-2110 - More PHP7 fixes # 191014-1816 - Additional PHP7 fixes # 191015-1620 - Added user inbound call count filters +# 191101-1149 - Added 2nd script tab, voicemail message groups and fixed translation issues # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-721a'; -$build = '191015-1620'; +$admin_version = '2.14-722a'; +$build = '191101-1149'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -4580,11 +4619,11 @@ $dtmf[12]='A'; $dtmf_key[12]='A'; $dtmf[13]='B'; $dtmf_key[13]='B'; $dtmf[14]='C'; $dtmf_key[14]='C'; $dtmf[15]='D'; $dtmf_key[15]='D'; -$dtmf[16]='TIMECHECK'; $dtmf_key[16]='TIMECHECK'; -$dtmf[17]='TIMEOUT'; $dtmf_key[17]='TIMEOUT'; -$dtmf[18]='INVALID'; $dtmf_key[18]='INVALID'; -$dtmf[19]='INVALID_2ND'; $dtmf_key[19]='INVALID_2ND'; -$dtmf[20]='INVALID_3RD'; $dtmf_key[20]='INVALID_3RD'; +$dtmf[16]='TIMECHECK'; $dtmf_key[16]=_QXZ('TIMECHECK'); +$dtmf[17]='TIMEOUT'; $dtmf_key[17]=_QXZ('TIMEOUT'); +$dtmf[18]='INVALID'; $dtmf_key[18]=_QXZ('INVALID'); +$dtmf[19]='INVALID_2ND'; $dtmf_key[19]=_QXZ('INVALID_2ND'); +$dtmf[20]='INVALID_3RD'; $dtmf_key[20]=_QXZ('INVALID_3RD'); $stmt="SELECT selected_language,user_admin_redirect_url from vicidial_users where user='$PHP_AUTH_USER';"; if ($DB) {echo "|$stmt|\n";} @@ -5130,6 +5169,7 @@ if ($ADD==193111111111) {$hh='admin'; $sh='sg'; echo _QXZ("ADD STATUS GROUP");} if ($ADD==194111111111) {$hh='admin'; $sh='ar'; echo _QXZ("ADD AUTOMATED REPORT");} if ($ADD==195111111111) {$hh='admin'; $sh='il'; echo _QXZ("ADD IP LIST");} if ($ADD==196111111111) {$hh='admin'; $sh='cg'; echo _QXZ("ADD CID GROUP");} +if ($ADD==197111111111) {$hh='admin'; $sh='vmmg'; echo _QXZ("ADD VM MESSAGE GROUP");} if ($ADD==1111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("ADD NEW CONFERENCE");} if ($ADD==11111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("ADD NEW AGENT CONFERENCE");} if ($ADD=='2') {$hh='users'; $sh='new'; echo _QXZ("New User Addition");} @@ -5185,6 +5225,7 @@ if ($ADD==293111111111) {$hh='admin'; $sh='sg'; echo _QXZ("ADDING NEW STATUS GRO if ($ADD==294111111111) {$hh='admin'; $sh='ar'; echo _QXZ("ADDING NEW AUTOMATED REPORT");} if ($ADD==295111111111) {$hh='admin'; $sh='il'; echo _QXZ("ADDING NEW IP LIST");} if ($ADD==296111111111) {$hh='admin'; $sh='cg'; echo _QXZ("ADDING NEW CID GROUP");} +if ($ADD==297111111111) {$hh='admin'; $sh='vmmg'; echo _QXZ("ADDING NEW VM MESSAGE GROUP");} if ($ADD==2111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("ADDING NEW CONFERENCE");} if ($ADD==21111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("ADDING NEW AGENT CONFERENCE");} if ($ADD==221111111111111) {$hh='admin'; $sh='status'; echo _QXZ("ADDING SYSTEM STATUSES");} @@ -5268,6 +5309,7 @@ if ($ADD==393111111111) {$hh='admin'; $sh='sg'; echo _QXZ("MODIFY STATUS GROUP") if ($ADD==394111111111) {$hh='admin'; $sh='ar'; echo _QXZ("MODIFY AUTOMATED REPORT");} if ($ADD==395111111111) {$hh='admin'; $sh='il'; echo _QXZ("MODIFY IP LIST");} if ($ADD==396111111111) {$hh='admin'; $sh='cg'; echo _QXZ("MODIFY CID GROUP");} +if ($ADD==397111111111) {$hh='admin'; $sh='vmmg'; echo _QXZ("MODIFY VM MESSAGE GROUP");} if ($ADD==3111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("MODIFY CONFERENCE");} if ($ADD==31111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("MODIFY AGENT CONFERENCE");} if ($ADD==311111111111111) {$hh='admin'; $sh='settings'; echo _QXZ("MODIFY SYSTEM SETTINGS");} @@ -5321,6 +5363,7 @@ if ($ADD==492111111111) {$hh='admin'; $sh='sc'; echo _QXZ("MODIFY SETTINGS CONTA if ($ADD==493111111111) {$hh='admin'; $sh='sg'; echo _QXZ("MODIFY STATUS GROUP");} if ($ADD==494111111111) {$hh='admin'; $sh='ar'; echo _QXZ("MODIFY AUTOMATED REPORT");} if ($ADD==496111111111) {$hh='admin'; $sh='cg'; echo _QXZ("MODIFY CID GROUP");} +if ($ADD==497111111111) {$hh='admin'; $sh='vmmg'; echo _QXZ("MODIFY VM MESSAGE GROUP");} if ($ADD==4111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("MODIFY CONFERENCE");} if ($ADD==41111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("MODIFY CONFERENCE");} if ($ADD==411111111111111) {$hh='admin'; $sh='settings'; echo _QXZ("MODIFY SYSTEM SETTINGS");} @@ -5365,6 +5408,7 @@ if ($ADD==593111111111) {$hh='admin'; $sh='sg'; echo _QXZ("DELETE STATUS GROUP") if ($ADD==594111111111) {$hh='admin'; $sh='ar'; echo _QXZ("DELETE AUTOMATED REPORT");} if ($ADD==595111111111) {$hh='admin'; $sh='il'; echo _QXZ("DELETE IP LIST");} if ($ADD==596111111111) {$hh='admin'; $sh='cg'; echo _QXZ("DELETE CID GROUP");} +if ($ADD==597111111111) {$hh='admin'; $sh='vmmg'; echo _QXZ("DELETE VM MESSAGE GROUP");} if ($ADD==5111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("DELETE CONFERENCE");} if ($ADD==51111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("DELETE AGENT CONFERENCE");} if ($ADD==6) {$hh='users'; $sh='list'; echo _QXZ("Delete User");} @@ -5412,6 +5456,7 @@ if ($ADD==693111111111) {$hh='admin'; $sh='sg'; echo _QXZ("DELETE STATUS GROUP") if ($ADD==694111111111) {$hh='admin'; $sh='ar'; echo _QXZ("DELETE AUTOMATED REPORT");} if ($ADD==695111111111) {$hh='admin'; $sh='il'; echo _QXZ("DELETE IP LIST");} if ($ADD==696111111111) {$hh='admin'; $sh='cg'; echo _QXZ("DELETE CID GROUP");} +if ($ADD==697111111111) {$hh='admin'; $sh='vmmg'; echo _QXZ("DELETE VM MESSAGE GROUP");} if ($ADD==6111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("DELETE CONFERENCE");} if ($ADD==61111111111111) {$hh='admin'; $sh='conference'; echo _QXZ("DELETE AGENT CONFERENCE");} if ($ADD==73) {$hh='campaigns'; echo _QXZ("Dialable Lead Count");} @@ -5464,6 +5509,7 @@ if ($ADD==193000000000) {$hh='admin'; $sh='sg'; echo _QXZ("STATUS GROUP LIST");} if ($ADD==194000000000) {$hh='admin'; $sh='ar'; echo _QXZ("AUTOMATED REPORTS LIST");} if ($ADD==195000000000) {$hh='admin'; $sh='il'; echo _QXZ("IP LISTS");} if ($ADD==196000000000) {$hh='admin'; $sh='cg'; echo _QXZ("CID GROUP LIST");} +if ($ADD==197000000000) {$hh='admin'; $sh='vmmg'; echo _QXZ("VM MESSAGE GROUPS LIST");} if ($ADD==1000000000000) {$hh='admin'; $sh='conference'; echo _QXZ("CONFERENCE LIST");} if ($ADD==10000000000000) {$hh='admin'; $sh='conference'; echo _QXZ("AGENT CONFERENCE LIST");} if ($ADD==100000000000000) {$hh='qc'; $sh='list'; echo _QXZ("Quality Control");} @@ -5563,7 +5609,7 @@ if ( ($ADD>2) and ($ADD < 99998) ) $stmt="SELECT lead_filter_id,lead_filter_name,lead_filter_sql from vicidial_lead_filters $whereLOGadmin_viewable_groupsSQL order by lead_filter_id;"; $rslt=mysql_to_mysqli($stmt, $link); $filters_to_print = mysqli_num_rows($rslt); - $filters_list="\n"; + $filters_list="\n"; $o=0; while ($filters_to_print > $o) @@ -5616,8 +5662,8 @@ if ( ( (strlen($ADD)>4) and ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($AD $campaigns_value=''; $RANKcampaigns_list=''; $RANKcampaigns_list.="   "._QXZ("CAMPAIGN")."\n"; - $RANKcampaigns_list.="   "._QXZ("RANK")."  
change\n"; - $RANKcampaigns_list.="   "._QXZ("GRADE")."  
change\n"; + $RANKcampaigns_list.="   "._QXZ("RANK")."  
"._QXZ("change")."\n"; + $RANKcampaigns_list.="   "._QXZ("GRADE")."  
"._QXZ("change")."\n"; $RANKcampaigns_list.="   "._QXZ("CALLS")."   "._QXZ("WEB VARS")."\n"; $o=0; @@ -5855,8 +5901,8 @@ if ( ( (strlen($ADD)>4) and ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($AD $XFERgroups_list=''; $RANKgroups_list=''; $RANKgroups_list.="   "._QXZ("INBOUND GROUP")."\n"; - $RANKgroups_list.="   "._QXZ("RANK")."  
change\n"; - $RANKgroups_list.="   "._QXZ("GRADE")."  
change\n"; + $RANKgroups_list.="   "._QXZ("RANK")."  
"._QXZ("change")."\n"; + $RANKgroups_list.="   "._QXZ("GRADE")."  
"._QXZ("change")."\n"; $RANKgroups_list.="   "._QXZ("CALLS")."   "._QXZ("WEB VARS")."\n"; $o=0; @@ -6787,8 +6833,16 @@ if ($ADD==11) echo ""._QXZ("Script").": $NWB#campaigns-campaign_script$NWE\n"; + if ($SSenable_second_script > 0) + { + echo ""._QXZ("Script Two").": $NWB#campaigns-campaign_script$NWE\n"; + } $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= "";} if ($SSenable_third_webform > 0) @@ -7543,7 +7597,15 @@ if ($ADD==1111) echo ""._QXZ("Script").": $NWB#inbound_groups-ingroup_script$NWE\n"; + if ($SSenable_second_script > 0) + { + echo ""._QXZ("Script Two").": $NWB#inbound_groups-ingroup_script$NWE\n"; + } $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= "";} if ($SSenable_third_webform > 0) @@ -7625,7 +7687,15 @@ if ($ADD==1811) echo ""._QXZ("Script").": $NWB#inbound_groups-ingroup_script$NWE\n"; + if ($SSenable_second_script > 0) + { + echo ""._QXZ("Script Two").": $NWB#inbound_groups-ingroup_script$NWE\n"; + } $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= "";} if ($SSenable_third_webform > 0) @@ -7677,11 +7747,11 @@ if ($ADD==18111) echo "
\n"; if ($voi_count > 0) { - echo "\n"; + echo "\n"; } else { - echo "\n"; + echo "\n"; } echo "\n"; echo "\n"; @@ -7698,7 +7768,15 @@ if ($ADD==18111) echo "\n"; + if ($SSenable_second_script > 0) + { + echo "\n"; + } $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= "";} if ($SSenable_third_webform > 0) @@ -7878,7 +7956,7 @@ if ($ADD==19111) } else { - echo "\n"; + echo "\n"; } echo "\n"; @@ -8709,7 +8787,7 @@ if ($ADD==13111111111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "
"._QXZ("Group ID").": Auto-Generated $NWB#inbound_groups-group_id$NWE
"._QXZ("Group ID").": "._QXZ("Auto-Generated")."$NWB#inbound_groups-group_id$NWE
"._QXZ("Group ID").": (no spaces)$NWB#inbound_groups-group_id$NWE
"._QXZ("Group ID").": ("._QXZ("no spaces").")$NWB#inbound_groups-group_id$NWE
"._QXZ("Group Name").": $NWB#inbound_groups-group_name$NWE
"._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE
"._QXZ("Script").": $NWB#inbound_groups-ingroup_script$NWE
"._QXZ("Script Two").": $NWB#inbound_groups-ingroup_script$NWE
"._QXZ("Chat Group ID").": (no spaces)$NWB#inbound_groups-group_id$NWE
"._QXZ("Chat Group ID").": ("._QXZ("no spaces").")$NWB#inbound_groups-group_id$NWE
"._QXZ("Chat Group Name").": $NWB#inbound_groups-group_name$NWE
"._QXZ("Group Alias Name").": $NWB#phones-group_alias_name$NWE
"._QXZ("CallerID Number").": $NWB#phones-caller_id_number$NWE
"._QXZ("CallerID Name").": $NWB#phones-caller_id_name$NWE
"._QXZ("Active").":
"._QXZ("Active").":
"._QXZ("Admin User Group").": \n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; if ($SSallow_emails > 0) { echo "\n"; @@ -21690,7 +22038,7 @@ if ($ADD==3) echo "\n"; @@ -22088,7 +22436,7 @@ if ($ADD==3) trim($Afunctions_ARY[$b]); if (preg_match("/ $Afunctions_ARY[$b] /",$api_allowed_functions)) {$field_selected = 'SELECTED';} - echo "\n"; + echo "\n"; $b++; } echo "$NWB#users-api_allowed_functions$NWE\n"; @@ -22192,7 +22540,7 @@ if ($ADD==31) $enable_vtiger_integration_LU = $row[0]; $vtiger_url_LU = $row[1]; - $stmt="SELECT campaign_id,campaign_name,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias,vtiger_search_dead,vtiger_status_call,survey_third_digit,survey_third_audio_file,survey_third_status,survey_third_exten,survey_fourth_digit,survey_fourth_audio_file,survey_fourth_status,survey_fourth_exten,drop_lockout_time,quick_transfer_button,prepopulate_transfer_preset,drop_rate_group,view_calls_in_queue,view_calls_in_queue_launch,grab_calls_in_queue,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,waitforsilence_options,agent_select_territories,campaign_calldate,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,queuemetrics_callstatus_override,extension_appended_cidname,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,inbound_queue_no_dial,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,ivr_park_call_agi,manual_preview_dial,realtime_agent_time_stats,use_auto_hopper,auto_hopper_multi,auto_trim_hopper,api_manual_dial,manual_dial_call_time_check,display_leads_count,lead_order_randomize,lead_order_secondary,per_call_notes,my_callback_option,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_resume_precall,auto_pause_precall_code,manual_dial_cid,post_phone_time_diff_alert,custom_3way_button_transfer,available_only_tally_threshold,available_only_tally_threshold_agents,dial_level_threshold,dial_level_threshold_agents,safe_harbor_audio,safe_harbor_menu_id,survey_menu_id,callback_days_limit,dl_diff_target_method,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,na_call_url,survey_recording,pllb_grouping,pllb_grouping_limit,call_count_limit,call_count_target,callback_hours_block,callback_list_calltime,user_group,hopper_vlc_dup_check,in_group_dial,in_group_dial_select,safe_harbor_audio_field,pause_after_next_call,owner_populate,use_other_campaign_dnc,allow_emails,amd_inbound_group,amd_callmenu,survey_wait_sec,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,allow_chats,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,cpd_unknown_action,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,am_message_wildcards,manual_dial_timeout,routing_initiated_recordings,manual_dial_hopper_check,callback_useronly_move_minutes,ofcom_uk_drop_calc,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,scheduled_callbacks_email_alert,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,next_dial_my_callbacks,inbound_no_agents_no_dial_container,inbound_no_agents_no_dial_threshold,cid_group_id,pause_max_dispo,script_top_dispo,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,dead_trigger_url,scheduled_callbacks_force_dial,scheduled_callbacks_auto_reschedule,scheduled_callbacks_timezones_container,three_way_volume_buttons,callback_dnc,manual_dial_validation,mute_recordings,auto_active_list_new,call_quota_lead_ranking,call_quota_process_running,sip_event_logging from vicidial_campaigns where campaign_id='$campaign_id' $LOGallowed_campaignsSQL;"; + $stmt="SELECT campaign_id,campaign_name,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias,vtiger_search_dead,vtiger_status_call,survey_third_digit,survey_third_audio_file,survey_third_status,survey_third_exten,survey_fourth_digit,survey_fourth_audio_file,survey_fourth_status,survey_fourth_exten,drop_lockout_time,quick_transfer_button,prepopulate_transfer_preset,drop_rate_group,view_calls_in_queue,view_calls_in_queue_launch,grab_calls_in_queue,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,waitforsilence_options,agent_select_territories,campaign_calldate,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,queuemetrics_callstatus_override,extension_appended_cidname,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,inbound_queue_no_dial,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,ivr_park_call_agi,manual_preview_dial,realtime_agent_time_stats,use_auto_hopper,auto_hopper_multi,auto_trim_hopper,api_manual_dial,manual_dial_call_time_check,display_leads_count,lead_order_randomize,lead_order_secondary,per_call_notes,my_callback_option,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_resume_precall,auto_pause_precall_code,manual_dial_cid,post_phone_time_diff_alert,custom_3way_button_transfer,available_only_tally_threshold,available_only_tally_threshold_agents,dial_level_threshold,dial_level_threshold_agents,safe_harbor_audio,safe_harbor_menu_id,survey_menu_id,callback_days_limit,dl_diff_target_method,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,na_call_url,survey_recording,pllb_grouping,pllb_grouping_limit,call_count_limit,call_count_target,callback_hours_block,callback_list_calltime,user_group,hopper_vlc_dup_check,in_group_dial,in_group_dial_select,safe_harbor_audio_field,pause_after_next_call,owner_populate,use_other_campaign_dnc,allow_emails,amd_inbound_group,amd_callmenu,survey_wait_sec,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,allow_chats,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,cpd_unknown_action,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,am_message_wildcards,manual_dial_timeout,routing_initiated_recordings,manual_dial_hopper_check,callback_useronly_move_minutes,ofcom_uk_drop_calc,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,scheduled_callbacks_email_alert,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,next_dial_my_callbacks,inbound_no_agents_no_dial_container,inbound_no_agents_no_dial_threshold,cid_group_id,pause_max_dispo,script_top_dispo,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,dead_trigger_url,scheduled_callbacks_force_dial,scheduled_callbacks_auto_reschedule,scheduled_callbacks_timezones_container,three_way_volume_buttons,callback_dnc,manual_dial_validation,mute_recordings,auto_active_list_new,call_quota_lead_ranking,call_quota_process_running,sip_event_logging,campaign_script_two,leave_vm_no_dispo,leave_vm_message_group_id from vicidial_campaigns where campaign_id='$campaign_id' $LOGallowed_campaignsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $campaign_name = $row[1]; @@ -22478,7 +22826,9 @@ if ($ADD==31) $call_quota_lead_ranking=$row[281]; $call_quota_process_running=$row[282]; $sip_event_logging=$row[283]; - + $campaign_script_two=$row[284]; + $leave_vm_no_dispo=$row[285]; + $leave_vm_message_group_id=$row[286]; if (preg_match('/DISABLED/', $list_order_mix)) {$DEFlistDISABLE = ''; $DEFstatusDISABLED=0;} @@ -22716,6 +23066,31 @@ if ($ADD==31) $o++; } + ##### get VM Message Groups listings for dynamic pulldown menu + $stmt="SELECT leave_vm_message_group_id,leave_vm_message_group_notes from leave_vm_message_groups where active='Y' $LOGadmin_viewable_groupsSQL order by leave_vm_message_group_id;"; + $rslt=mysql_to_mysqli($stmt, $link); + $VMMGmenus_to_print = mysqli_num_rows($rslt); + $VMMGmenus_menu=''; + $VMMGmenus_selected=0; + $o=0; + while ($VMMGmenus_to_print > $o) + { + $rowx=mysqli_fetch_row($rslt); + $VMMGmenus_menu .= "\n"; + $o++; + } + if ($VMMGmenus_selected < 1) + {$VMMGmenus_menu .= "\n";} + else + {$VMMGmenus_menu .= "\n";} + + $stmt="SELECT status,status_name,selectable,campaign_id,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed,min_sec,max_sec,answering_machine from vicidial_campaign_statuses where campaign_id IN($camp_status_groups'$campaign_id') $LOGallowed_campaignsSQL order by status;"; $rslt=mysql_to_mysqli($stmt, $link); $Cstatuses_to_print = mysqli_num_rows($rslt); @@ -22846,7 +23221,7 @@ if ($ADD==31) echo "\n"; echo "\n"; echo "\n"; @@ -23506,9 +23881,23 @@ if ($ADD==31) {echo " "._QXZ("LIST OVERRIDE ACTIVE")."";} echo "\n"; + if ($SSenable_second_script > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } + echo "\n"; $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= '';} if ($SSenable_third_webform > 0) @@ -23543,7 +23932,7 @@ if ($ADD==31) $vam_count = $rowx[0]; } - echo "\n"; + echo "\n"; } else { @@ -23568,6 +23957,17 @@ if ($ADD==31) echo "$NWB#campaigns-amd_callmenu$NWE\n"; echo "\n"; } + + echo "\n"; + + echo "\n"; + echo "\n"; echo "\n"; @@ -23915,7 +24315,7 @@ if ($ADD==31) echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; @@ -24170,7 +24570,7 @@ if ($ADD==31) {echo "";} else {echo "";} - echo ""; + echo ""; echo "\n"; } else - {echo "$rowx[5]\n";} + {echo ""._QXZ("$rowx[5]")."\n";} echo "\n"; echo "\n"; @@ -26168,7 +26568,7 @@ if ( ($ADD==34) or ($ADD==31) ) echo "\n"; @@ -26755,7 +27155,7 @@ if ($ADD==302) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=31&SUB=202&campaign_id=$campaigns_id_list[$o]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo "\n"; @@ -33247,7 +33677,7 @@ if ($ADD==311111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; } @@ -33335,7 +33765,7 @@ if ($ADD==3111111) echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -33431,7 +33861,7 @@ if ($ADD==3111111) echo " "._QXZ("CAMPAIGNS USING THIS SCRIPT").":
\n"; echo "
\n"; + echo "\"VM "; + + echo "
"._QXZ("ADD NEW VM MESSAGE GROUP")."\n"; + echo "\n"; + echo "
\n"; + + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + echo "\n"; + echo "
"._QXZ("VM Message Group ID").": $NWB#vm_message_groups$NWE
"._QXZ("VM Message Group Notes").": $NWB#vm_message_groups$NWE
"._QXZ("Active").": $NWB#vm_message_groups$NWE
"._QXZ("Admin User Group").": $NWB#vm_message_groups$NWE
\n"; + } + else + { + echo _QXZ("You do not have permission to view this page")."\n"; + exit; + } + } + + ###################### # ADD=1111111111111 display the ADD NEW CONFERENCE SCREEN ###################### @@ -10035,7 +10149,7 @@ if ($ADD==21) $rslt=mysql_to_mysqli($stmt, $link); } - $stmt="INSERT INTO vicidial_campaigns (campaign_id,campaign_name,campaign_description,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch,campaign_changedate,campaign_stats_refresh,list_order_mix,web_form_address_two,start_call_url,dispo_call_url,na_call_url,user_group,web_form_address_three) values('$campaign_id','$campaign_name','$campaign_description','$active','NEW','DOWN','$park_ext','$park_file_name','" . mysqli_real_escape_string($link, $web_form_address) . "','$allow_closers','$hopper_level','$auto_dial_level','$next_agent_call','$local_call_time','$voicemail_ext','$script_id','$get_call_launch','$SQLdate','Y','DISABLED','','','','','$user_group','');"; + $stmt="INSERT INTO vicidial_campaigns (campaign_id,campaign_name,campaign_description,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch,campaign_changedate,campaign_stats_refresh,list_order_mix,web_form_address_two,start_call_url,dispo_call_url,na_call_url,user_group,web_form_address_three,campaign_script_two) values('$campaign_id','$campaign_name','$campaign_description','$active','NEW','DOWN','$park_ext','$park_file_name','" . mysqli_real_escape_string($link, $web_form_address) . "','$allow_closers','$hopper_level','$auto_dial_level','$next_agent_call','$local_call_time','$voicemail_ext','$script_id','$get_call_launch','$SQLdate','Y','DISABLED','','','','','$user_group','','$campaign_script_two');"; $rslt=mysql_to_mysqli($stmt, $link); $stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');"; @@ -10133,7 +10247,7 @@ if ($ADD==20) $rslt=mysql_to_mysqli($stmtX, $link); } - $stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,qc_get_record_launch,qc_show_recording,qc_shift_id,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias,vtiger_search_dead,vtiger_status_call,survey_third_digit,survey_fourth_digit,survey_third_audio_file,survey_fourth_audio_file,survey_third_status,survey_fourth_status,survey_third_exten,survey_fourth_exten,drop_lockout_time,quick_transfer_button,prepopulate_transfer_preset,drop_rate_group,view_calls_in_queue,view_calls_in_queue_launch,grab_calls_in_queue,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,waitforsilence_options,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,queuemetrics_callstatus_override,extension_appended_cidname,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,inbound_queue_no_dial,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,ivr_park_call_agi,manual_preview_dial,realtime_agent_time_stats,use_auto_hopper,auto_hopper_multi,auto_trim_hopper,api_manual_dial,manual_dial_call_time_check,display_leads_count,lead_order_randomize,lead_order_secondary,per_call_notes,my_callback_option,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_resume_precall,auto_pause_precall_code,manual_dial_cid,post_phone_time_diff_alert,custom_3way_button_transfer,available_only_tally_threshold,available_only_tally_threshold_agents,dial_level_threshold,dial_level_threshold_agents,safe_harbor_audio,safe_harbor_menu_id,survey_menu_id,callback_days_limit,dl_diff_target_method,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,na_call_url,survey_recording,pllb_grouping,pllb_grouping_limit,call_count_limit,call_count_target,callback_hours_block,callback_list_calltime,user_group,hopper_vlc_dup_check,safe_harbor_audio_field,pause_after_next_call,owner_populate,use_other_campaign_dnc,allow_emails,allow_chats,amd_inbound_group,amd_callmenu,survey_wait_sec,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,cpd_unknown_action,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,am_message_wildcards,manual_dial_timeout,routing_initiated_recordings,manual_dial_hopper_check,callback_useronly_move_minutes,ofcom_uk_drop_calc,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,scheduled_callbacks_email_alert,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,next_dial_my_callbacks,inbound_no_agents_no_dial_container,inbound_no_agents_no_dial_threshold,cid_group_id,pause_max_dispo,script_top_dispo,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,dead_trigger_url,scheduled_callbacks_force_dial,scheduled_callbacks_auto_reschedule,scheduled_callbacks_timezones_container,three_way_volume_buttons,callback_dnc,manual_dial_validation,mute_recordings,auto_active_list_new,call_quota_lead_ranking,sip_event_logging) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,qc_get_record_launch,qc_show_recording,qc_shift_id,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias,vtiger_search_dead,vtiger_status_call,survey_third_digit,survey_fourth_digit,survey_third_audio_file,survey_fourth_audio_file,survey_third_status,survey_fourth_status,survey_third_exten,survey_fourth_exten,drop_lockout_time,quick_transfer_button,prepopulate_transfer_preset,drop_rate_group,view_calls_in_queue,view_calls_in_queue_launch,grab_calls_in_queue,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,waitforsilence_options,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,queuemetrics_callstatus_override,extension_appended_cidname,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,inbound_queue_no_dial,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,ivr_park_call_agi,manual_preview_dial,realtime_agent_time_stats,use_auto_hopper,auto_hopper_multi,auto_trim_hopper,api_manual_dial,manual_dial_call_time_check,display_leads_count,lead_order_randomize,lead_order_secondary,per_call_notes,my_callback_option,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_resume_precall,auto_pause_precall_code,manual_dial_cid,post_phone_time_diff_alert,custom_3way_button_transfer,available_only_tally_threshold,available_only_tally_threshold_agents,dial_level_threshold,dial_level_threshold_agents,safe_harbor_audio,safe_harbor_menu_id,survey_menu_id,callback_days_limit,dl_diff_target_method,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,na_call_url,survey_recording,pllb_grouping,pllb_grouping_limit,call_count_limit,call_count_target,callback_hours_block,callback_list_calltime,user_group,hopper_vlc_dup_check,safe_harbor_audio_field,pause_after_next_call,owner_populate,use_other_campaign_dnc,allow_emails,allow_chats,amd_inbound_group,amd_callmenu,survey_wait_sec,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,cpd_unknown_action,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,am_message_wildcards,manual_dial_timeout,routing_initiated_recordings,manual_dial_hopper_check,callback_useronly_move_minutes,ofcom_uk_drop_calc,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,scheduled_callbacks_email_alert,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,next_dial_my_callbacks,inbound_no_agents_no_dial_container,inbound_no_agents_no_dial_threshold,cid_group_id,pause_max_dispo,script_top_dispo,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,dead_trigger_url,scheduled_callbacks_force_dial,scheduled_callbacks_auto_reschedule,scheduled_callbacks_timezones_container,three_way_volume_buttons,callback_dnc,manual_dial_validation,mute_recordings,auto_active_list_new,call_quota_lead_ranking,sip_event_logging from vicidial_campaigns where campaign_id='$source_campaign_id';"; + $stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,qc_get_record_launch,qc_show_recording,qc_shift_id,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias,vtiger_search_dead,vtiger_status_call,survey_third_digit,survey_fourth_digit,survey_third_audio_file,survey_fourth_audio_file,survey_third_status,survey_fourth_status,survey_third_exten,survey_fourth_exten,drop_lockout_time,quick_transfer_button,prepopulate_transfer_preset,drop_rate_group,view_calls_in_queue,view_calls_in_queue_launch,grab_calls_in_queue,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,waitforsilence_options,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,queuemetrics_callstatus_override,extension_appended_cidname,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,inbound_queue_no_dial,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,ivr_park_call_agi,manual_preview_dial,realtime_agent_time_stats,use_auto_hopper,auto_hopper_multi,auto_trim_hopper,api_manual_dial,manual_dial_call_time_check,display_leads_count,lead_order_randomize,lead_order_secondary,per_call_notes,my_callback_option,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_resume_precall,auto_pause_precall_code,manual_dial_cid,post_phone_time_diff_alert,custom_3way_button_transfer,available_only_tally_threshold,available_only_tally_threshold_agents,dial_level_threshold,dial_level_threshold_agents,safe_harbor_audio,safe_harbor_menu_id,survey_menu_id,callback_days_limit,dl_diff_target_method,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,na_call_url,survey_recording,pllb_grouping,pllb_grouping_limit,call_count_limit,call_count_target,callback_hours_block,callback_list_calltime,user_group,hopper_vlc_dup_check,safe_harbor_audio_field,pause_after_next_call,owner_populate,use_other_campaign_dnc,allow_emails,allow_chats,amd_inbound_group,amd_callmenu,survey_wait_sec,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,cpd_unknown_action,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,am_message_wildcards,manual_dial_timeout,routing_initiated_recordings,manual_dial_hopper_check,callback_useronly_move_minutes,ofcom_uk_drop_calc,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,scheduled_callbacks_email_alert,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,next_dial_my_callbacks,inbound_no_agents_no_dial_container,inbound_no_agents_no_dial_threshold,cid_group_id,pause_max_dispo,script_top_dispo,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,dead_trigger_url,scheduled_callbacks_force_dial,scheduled_callbacks_auto_reschedule,scheduled_callbacks_timezones_container,three_way_volume_buttons,callback_dnc,manual_dial_validation,mute_recordings,auto_active_list_new,call_quota_lead_ranking,sip_event_logging,campaign_script_two,leave_vm_no_dispo,leave_vm_message_group_id) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,qc_get_record_launch,qc_show_recording,qc_shift_id,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias,vtiger_search_dead,vtiger_status_call,survey_third_digit,survey_fourth_digit,survey_third_audio_file,survey_fourth_audio_file,survey_third_status,survey_fourth_status,survey_third_exten,survey_fourth_exten,drop_lockout_time,quick_transfer_button,prepopulate_transfer_preset,drop_rate_group,view_calls_in_queue,view_calls_in_queue_launch,grab_calls_in_queue,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,waitforsilence_options,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,queuemetrics_callstatus_override,extension_appended_cidname,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,inbound_queue_no_dial,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,ivr_park_call_agi,manual_preview_dial,realtime_agent_time_stats,use_auto_hopper,auto_hopper_multi,auto_trim_hopper,api_manual_dial,manual_dial_call_time_check,display_leads_count,lead_order_randomize,lead_order_secondary,per_call_notes,my_callback_option,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_resume_precall,auto_pause_precall_code,manual_dial_cid,post_phone_time_diff_alert,custom_3way_button_transfer,available_only_tally_threshold,available_only_tally_threshold_agents,dial_level_threshold,dial_level_threshold_agents,safe_harbor_audio,safe_harbor_menu_id,survey_menu_id,callback_days_limit,dl_diff_target_method,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,na_call_url,survey_recording,pllb_grouping,pllb_grouping_limit,call_count_limit,call_count_target,callback_hours_block,callback_list_calltime,user_group,hopper_vlc_dup_check,safe_harbor_audio_field,pause_after_next_call,owner_populate,use_other_campaign_dnc,allow_emails,allow_chats,amd_inbound_group,amd_callmenu,survey_wait_sec,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,cpd_unknown_action,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,am_message_wildcards,manual_dial_timeout,routing_initiated_recordings,manual_dial_hopper_check,callback_useronly_move_minutes,ofcom_uk_drop_calc,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,scheduled_callbacks_email_alert,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,next_dial_my_callbacks,inbound_no_agents_no_dial_container,inbound_no_agents_no_dial_threshold,cid_group_id,pause_max_dispo,script_top_dispo,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,dead_trigger_url,scheduled_callbacks_force_dial,scheduled_callbacks_auto_reschedule,scheduled_callbacks_timezones_container,three_way_volume_buttons,callback_dnc,manual_dial_validation,mute_recordings,auto_active_list_new,call_quota_lead_ranking,sip_event_logging,campaign_script_two,leave_vm_no_dispo,leave_vm_message_group_id from vicidial_campaigns where campaign_id='$source_campaign_id';"; $rslt=mysql_to_mysqli($stmt, $link); $affected_rows = mysqli_affected_rows($link); @@ -13167,6 +13281,48 @@ if ($ADD==296111111111) } +###################### +# ADD=297111111111 adds new VM Message group to the system +###################### +if ($ADD==297111111111) + { + if ( ($LOGmodify_statuses!=1) or ($add_copy_disabled > 0) ) + { + echo "
"._QXZ("You do not have permission to add records on this system")." -system_settings-\n"; + } + else + { + echo ""; + $stmt="SELECT count(*) from leave_vm_message_groups where leave_vm_message_group_id='$leave_vm_message_group_id';"; + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + if ($row[0] > 0) + {echo "
"._QXZ("VM MESSAGE GROUP NOT ADDED - there is already a VM MESSAGE GROUP in the system with this ID")."\n";} + else + { + if ( (strlen($leave_vm_message_group_id) < 2) or (strlen($leave_vm_message_group_notes) < 2) or (strlen($active) < 1) ) + {echo "
"._QXZ("VM MESSAGE GROUP NOT ADDED - Please go back and look at the data you entered")."\n";} + else + { + echo "
"._QXZ("VM MESSAGE GROUP ADDED")."\n"; + + $stmt="INSERT INTO leave_vm_message_groups SET leave_vm_message_group_id='$leave_vm_message_group_id',leave_vm_message_group_notes='$leave_vm_message_group_notes',active='$active',user_group='$user_group';"; + $rslt=mysql_to_mysqli($stmt, $link); + + ### LOG INSERTION Admin Log Table ### + $SQL_log = "$stmt|"; + $SQL_log = preg_replace('/;/', '', $SQL_log); + $SQL_log = addslashes($SQL_log); + $stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='VMMGROUPS', event_type='ADD', record_id='$leave_vm_message_group_id', event_code='ADMIN ADD VMM GROUP', event_sql=\"$SQL_log\", event_notes='';"; + if ($DB) {echo "|$stmt|\n";} + $rslt=mysql_to_mysqli($stmt, $link); + } + } + } + $ADD=397111111111; + } + + ###################### # ADD=2111111111111 adds new conference to the system ###################### @@ -14518,7 +14674,7 @@ if ($ADD==41) if ( ($agent_select_territories != 'Y') and ($agent_select_territories != 'N') ) {$agent_select_territories='N';} if (strlen($max_inbound_calls_outcome) < 1) {$max_inbound_calls_outcome='DEFAULT';} - $stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', auto_trim_hopper='$auto_trim_hopper', use_auto_hopper='$use_auto_hopper', auto_hopper_multi='$auto_hopper_multi', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysqli_real_escape_string($link, $web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number',xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns=$closer_campaignsSQL,use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id',default_xfer_group='$default_xfer_group',xfer_groups='$XFERgroups_value',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',disable_alter_custphone='$disable_alter_custphone',display_queue_count='$display_queue_count',manual_dial_filter='$manual_dial_filter',agent_clipboard_copy='$agent_clipboard_copy',agent_extended_alt_dial='$agent_extended_alt_dial',use_campaign_dnc='$use_campaign_dnc',three_way_call_cid='$three_way_call_cid',three_way_dial_prefix='$three_way_dial_prefix',web_form_target='$web_form_target',vtiger_search_category='$vtiger_search_category',vtiger_create_call_record='$vtiger_create_call_record',vtiger_create_lead_record='$vtiger_create_lead_record',vtiger_screen_login='$vtiger_screen_login',cpd_amd_action='$cpd_amd_action',agent_allow_group_alias='$agent_allow_group_alias',default_group_alias='$default_group_alias',vtiger_search_dead='$vtiger_search_dead',vtiger_status_call='$vtiger_status_call',drop_lockout_time='$drop_lockout_time',quick_transfer_button='$quick_transfer_button',prepopulate_transfer_preset='$prepopulate_transfer_preset',drop_rate_group='$drop_rate_group',view_calls_in_queue='$view_calls_in_queue',view_calls_in_queue_launch='$view_calls_in_queue_launch',grab_calls_in_queue='$grab_calls_in_queue',call_requeue_button='$call_requeue_button',pause_after_each_call='$pause_after_each_call',no_hopper_dialing='$no_hopper_dialing',agent_dial_owner_only='$agent_dial_owner_only',agent_display_dialable_leads='$agent_display_dialable_leads',web_form_address_two='" . mysqli_real_escape_string($link, $web_form_address_two) . "',waitforsilence_options='$waitforsilence_options',agent_select_territories='$agent_select_territories',crm_popup_login='$crm_popup_login',crm_login_address='" . mysqli_real_escape_string($link, $crm_login_address) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysqli_real_escape_string($link, $start_call_url) . "',dispo_call_url='" . mysqli_real_escape_string($link, $dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',use_custom_cid='$use_custom_cid',scheduled_callbacks_alert='$scheduled_callbacks_alert',queuemetrics_callstatus_override='$queuemetrics_callstatus',extension_appended_cidname='$extension_appended_cidname',scheduled_callbacks_count='$scheduled_callbacks_count',manual_dial_override='$manual_dial_override',blind_monitor_warning='$blind_monitor_warning',blind_monitor_message='" . mysqli_real_escape_string($link, $blind_monitor_message) . "',blind_monitor_filename='$blind_monitor_filename',inbound_queue_no_dial='$inbound_queue_no_dial',timer_action_destination='$timer_action_destination',enable_xfer_presets='$enable_xfer_presets',hide_xfer_number_to_dial='$hide_xfer_number_to_dial',manual_dial_prefix='$manual_dial_prefix',customer_3way_hangup_logging='$customer_3way_hangup_logging',customer_3way_hangup_seconds='$customer_3way_hangup_seconds',customer_3way_hangup_action='$customer_3way_hangup_action',ivr_park_call='$ivr_park_call',ivr_park_call_agi='$ivr_park_call_agi',manual_preview_dial='$manual_preview_dial',realtime_agent_time_stats='$realtime_agent_time_stats',api_manual_dial='$api_manual_dial',manual_dial_call_time_check='$manual_dial_call_time_check',lead_order_randomize='$lead_order_randomize',lead_order_secondary='$lead_order_secondary',per_call_notes='$per_call_notes',my_callback_option='$my_callback_option',agent_lead_search='$agent_lead_search',agent_lead_search_method='$agent_lead_search_method',queuemetrics_phone_environment='$queuemetrics_phone_environment',auto_pause_precall='$auto_pause_precall',auto_resume_precall='$auto_resume_precall',auto_pause_precall_code='$auto_pause_precall_code',manual_dial_cid='$manual_dial_cid',post_phone_time_diff_alert='$post_phone_time_diff_alert',custom_3way_button_transfer='$custom_3way_button_transfer',available_only_tally_threshold='$available_only_tally_threshold',available_only_tally_threshold_agents='$available_only_tally_threshold_agents',dial_level_threshold='$dial_level_threshold',dial_level_threshold_agents='$dial_level_threshold_agents',safe_harbor_audio='$safe_harbor_audio',safe_harbor_menu_id='$safe_harbor_menu_id',callback_days_limit='$callback_days_limit',dl_diff_target_method='$dl_diff_target_method',disable_dispo_screen='$disable_dispo_screen',disable_dispo_status='$disable_dispo_status',screen_labels='$screen_labels',status_display_fields='$status_display_fields',na_call_url='" . mysqli_real_escape_string($link, $na_call_url) . "',pllb_grouping='$pllb_grouping',pllb_grouping_limit='$pllb_grouping_limit',call_count_limit='$call_count_limit',call_count_target='$call_count_target',callback_hours_block='$callback_hours_block',callback_list_calltime='$callback_list_calltime',user_group='$user_group',hopper_vlc_dup_check='$hopper_vlc_dup_check',in_group_dial='$in_group_dial',in_group_dial_select='$in_group_dial_select',safe_harbor_audio_field='$safe_harbor_audio_field',pause_after_next_call='$pause_after_next_call',owner_populate='$owner_populate',use_other_campaign_dnc='$use_other_campaign_dnc',allow_emails='$allow_emails',allow_chats='$allow_chats',amd_inbound_group='$amd_inbound_group',amd_callmenu='$amd_callmenu',manual_dial_lead_id='$manual_dial_lead_id',dead_max='$dead_max',dispo_max='$dispo_max',pause_max='$pause_max',dead_max_dispo='$dead_max_dispo',dispo_max_dispo='$dispo_max_dispo',max_inbound_calls='$max_inbound_calls',manual_dial_search_checkbox='$manual_dial_search_checkbox',hide_call_log_info='$hide_call_log_info',timer_alt_seconds='$timer_alt_seconds',wrapup_bypass='$wrapup_bypass',wrapup_after_hotkey='$wrapup_after_hotkey',callback_active_limit='$callback_active_limit',callback_active_limit_override='$callback_active_limit_override',comments_all_tabs='$comments_all_tabs',comments_dispo_screen='$comments_dispo_screen',comments_callback_screen='$comments_callback_screen',qc_comment_history='$qc_comment_history',show_previous_callback='$show_previous_callback',clear_script='$clear_script',cpd_unknown_action='$cpd_unknown_action',manual_dial_search_filter='$manual_dial_search_filter',web_form_address_three='" . mysqli_real_escape_string($link, $web_form_address_three) . "',manual_dial_override_field='$manual_dial_override_field',status_display_ingroup='$status_display_ingroup',customer_gone_seconds='$customer_gone_seconds',agent_display_fields='$agent_display_fields',am_message_wildcards='$am_message_wildcards',manual_dial_timeout='$manual_dial_timeout',routing_initiated_recordings='$routing_initiated_recordings',manual_dial_hopper_check='$manual_dial_hopper_check',callback_useronly_move_minutes='$callback_useronly_move_minutes',ofcom_uk_drop_calc='$ofcom_uk_drop_calc',manual_auto_next='$manual_auto_next',manual_auto_show='$manual_auto_show',allow_required_fields='$allow_required_fields',dead_to_dispo='$dead_to_dispo',agent_xfer_validation='$agent_xfer_validation',ready_max_logout='$ready_max_logout',callback_display_days='$callback_display_days',three_way_record_stop='$three_way_record_stop',hangup_xfer_record_start='$hangup_xfer_record_start',scheduled_callbacks_email_alert='$scheduled_callbacks_email_alert',max_inbound_calls_outcome='$max_inbound_calls_outcome',manual_auto_next_options='$manual_auto_next_options',agent_screen_time_display='$agent_screen_time_display',next_dial_my_callbacks='$next_dial_my_callbacks',inbound_no_agents_no_dial_container='$inbound_no_agents_no_dial_container',inbound_no_agents_no_dial_threshold='$inbound_no_agents_no_dial_threshold',cid_group_id='$cid_group_id',pause_max_dispo='$pause_max_dispo',script_top_dispo='$script_top_dispo',dead_trigger_seconds='$dead_trigger_seconds',dead_trigger_action='$dead_trigger_action',dead_trigger_repeat='$dead_trigger_repeat',dead_trigger_filename='$dead_trigger_filename',dead_trigger_url='" . mysqli_real_escape_string($link, $dead_trigger_url) . "',scheduled_callbacks_force_dial='$scheduled_callbacks_force_dial',scheduled_callbacks_auto_reschedule='$scheduled_callbacks_auto_reschedule',scheduled_callbacks_timezones_container='$scheduled_callbacks_timezones_container',three_way_volume_buttons='$three_way_volume_buttons',callback_dnc='$callback_dnc',manual_dial_validation='$manual_dial_validation',mute_recordings='$mute_recordings',auto_active_list_new='$auto_active_list_new',call_quota_lead_ranking='$call_quota_lead_ranking',sip_event_logging='$sip_event_logging' where campaign_id='$campaign_id';"; + $stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', auto_trim_hopper='$auto_trim_hopper', use_auto_hopper='$use_auto_hopper', auto_hopper_multi='$auto_hopper_multi', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysqli_real_escape_string($link, $web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number',xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns=$closer_campaignsSQL,use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id',default_xfer_group='$default_xfer_group',xfer_groups='$XFERgroups_value',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',disable_alter_custphone='$disable_alter_custphone',display_queue_count='$display_queue_count',manual_dial_filter='$manual_dial_filter',agent_clipboard_copy='$agent_clipboard_copy',agent_extended_alt_dial='$agent_extended_alt_dial',use_campaign_dnc='$use_campaign_dnc',three_way_call_cid='$three_way_call_cid',three_way_dial_prefix='$three_way_dial_prefix',web_form_target='$web_form_target',vtiger_search_category='$vtiger_search_category',vtiger_create_call_record='$vtiger_create_call_record',vtiger_create_lead_record='$vtiger_create_lead_record',vtiger_screen_login='$vtiger_screen_login',cpd_amd_action='$cpd_amd_action',agent_allow_group_alias='$agent_allow_group_alias',default_group_alias='$default_group_alias',vtiger_search_dead='$vtiger_search_dead',vtiger_status_call='$vtiger_status_call',drop_lockout_time='$drop_lockout_time',quick_transfer_button='$quick_transfer_button',prepopulate_transfer_preset='$prepopulate_transfer_preset',drop_rate_group='$drop_rate_group',view_calls_in_queue='$view_calls_in_queue',view_calls_in_queue_launch='$view_calls_in_queue_launch',grab_calls_in_queue='$grab_calls_in_queue',call_requeue_button='$call_requeue_button',pause_after_each_call='$pause_after_each_call',no_hopper_dialing='$no_hopper_dialing',agent_dial_owner_only='$agent_dial_owner_only',agent_display_dialable_leads='$agent_display_dialable_leads',web_form_address_two='" . mysqli_real_escape_string($link, $web_form_address_two) . "',waitforsilence_options='$waitforsilence_options',agent_select_territories='$agent_select_territories',crm_popup_login='$crm_popup_login',crm_login_address='" . mysqli_real_escape_string($link, $crm_login_address) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysqli_real_escape_string($link, $start_call_url) . "',dispo_call_url='" . mysqli_real_escape_string($link, $dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',use_custom_cid='$use_custom_cid',scheduled_callbacks_alert='$scheduled_callbacks_alert',queuemetrics_callstatus_override='$queuemetrics_callstatus',extension_appended_cidname='$extension_appended_cidname',scheduled_callbacks_count='$scheduled_callbacks_count',manual_dial_override='$manual_dial_override',blind_monitor_warning='$blind_monitor_warning',blind_monitor_message='" . mysqli_real_escape_string($link, $blind_monitor_message) . "',blind_monitor_filename='$blind_monitor_filename',inbound_queue_no_dial='$inbound_queue_no_dial',timer_action_destination='$timer_action_destination',enable_xfer_presets='$enable_xfer_presets',hide_xfer_number_to_dial='$hide_xfer_number_to_dial',manual_dial_prefix='$manual_dial_prefix',customer_3way_hangup_logging='$customer_3way_hangup_logging',customer_3way_hangup_seconds='$customer_3way_hangup_seconds',customer_3way_hangup_action='$customer_3way_hangup_action',ivr_park_call='$ivr_park_call',ivr_park_call_agi='$ivr_park_call_agi',manual_preview_dial='$manual_preview_dial',realtime_agent_time_stats='$realtime_agent_time_stats',api_manual_dial='$api_manual_dial',manual_dial_call_time_check='$manual_dial_call_time_check',lead_order_randomize='$lead_order_randomize',lead_order_secondary='$lead_order_secondary',per_call_notes='$per_call_notes',my_callback_option='$my_callback_option',agent_lead_search='$agent_lead_search',agent_lead_search_method='$agent_lead_search_method',queuemetrics_phone_environment='$queuemetrics_phone_environment',auto_pause_precall='$auto_pause_precall',auto_resume_precall='$auto_resume_precall',auto_pause_precall_code='$auto_pause_precall_code',manual_dial_cid='$manual_dial_cid',post_phone_time_diff_alert='$post_phone_time_diff_alert',custom_3way_button_transfer='$custom_3way_button_transfer',available_only_tally_threshold='$available_only_tally_threshold',available_only_tally_threshold_agents='$available_only_tally_threshold_agents',dial_level_threshold='$dial_level_threshold',dial_level_threshold_agents='$dial_level_threshold_agents',safe_harbor_audio='$safe_harbor_audio',safe_harbor_menu_id='$safe_harbor_menu_id',callback_days_limit='$callback_days_limit',dl_diff_target_method='$dl_diff_target_method',disable_dispo_screen='$disable_dispo_screen',disable_dispo_status='$disable_dispo_status',screen_labels='$screen_labels',status_display_fields='$status_display_fields',na_call_url='" . mysqli_real_escape_string($link, $na_call_url) . "',pllb_grouping='$pllb_grouping',pllb_grouping_limit='$pllb_grouping_limit',call_count_limit='$call_count_limit',call_count_target='$call_count_target',callback_hours_block='$callback_hours_block',callback_list_calltime='$callback_list_calltime',user_group='$user_group',hopper_vlc_dup_check='$hopper_vlc_dup_check',in_group_dial='$in_group_dial',in_group_dial_select='$in_group_dial_select',safe_harbor_audio_field='$safe_harbor_audio_field',pause_after_next_call='$pause_after_next_call',owner_populate='$owner_populate',use_other_campaign_dnc='$use_other_campaign_dnc',allow_emails='$allow_emails',allow_chats='$allow_chats',amd_inbound_group='$amd_inbound_group',amd_callmenu='$amd_callmenu',manual_dial_lead_id='$manual_dial_lead_id',dead_max='$dead_max',dispo_max='$dispo_max',pause_max='$pause_max',dead_max_dispo='$dead_max_dispo',dispo_max_dispo='$dispo_max_dispo',max_inbound_calls='$max_inbound_calls',manual_dial_search_checkbox='$manual_dial_search_checkbox',hide_call_log_info='$hide_call_log_info',timer_alt_seconds='$timer_alt_seconds',wrapup_bypass='$wrapup_bypass',wrapup_after_hotkey='$wrapup_after_hotkey',callback_active_limit='$callback_active_limit',callback_active_limit_override='$callback_active_limit_override',comments_all_tabs='$comments_all_tabs',comments_dispo_screen='$comments_dispo_screen',comments_callback_screen='$comments_callback_screen',qc_comment_history='$qc_comment_history',show_previous_callback='$show_previous_callback',clear_script='$clear_script',cpd_unknown_action='$cpd_unknown_action',manual_dial_search_filter='$manual_dial_search_filter',web_form_address_three='" . mysqli_real_escape_string($link, $web_form_address_three) . "',manual_dial_override_field='$manual_dial_override_field',status_display_ingroup='$status_display_ingroup',customer_gone_seconds='$customer_gone_seconds',agent_display_fields='$agent_display_fields',am_message_wildcards='$am_message_wildcards',manual_dial_timeout='$manual_dial_timeout',routing_initiated_recordings='$routing_initiated_recordings',manual_dial_hopper_check='$manual_dial_hopper_check',callback_useronly_move_minutes='$callback_useronly_move_minutes',ofcom_uk_drop_calc='$ofcom_uk_drop_calc',manual_auto_next='$manual_auto_next',manual_auto_show='$manual_auto_show',allow_required_fields='$allow_required_fields',dead_to_dispo='$dead_to_dispo',agent_xfer_validation='$agent_xfer_validation',ready_max_logout='$ready_max_logout',callback_display_days='$callback_display_days',three_way_record_stop='$three_way_record_stop',hangup_xfer_record_start='$hangup_xfer_record_start',scheduled_callbacks_email_alert='$scheduled_callbacks_email_alert',max_inbound_calls_outcome='$max_inbound_calls_outcome',manual_auto_next_options='$manual_auto_next_options',agent_screen_time_display='$agent_screen_time_display',next_dial_my_callbacks='$next_dial_my_callbacks',inbound_no_agents_no_dial_container='$inbound_no_agents_no_dial_container',inbound_no_agents_no_dial_threshold='$inbound_no_agents_no_dial_threshold',cid_group_id='$cid_group_id',pause_max_dispo='$pause_max_dispo',script_top_dispo='$script_top_dispo',dead_trigger_seconds='$dead_trigger_seconds',dead_trigger_action='$dead_trigger_action',dead_trigger_repeat='$dead_trigger_repeat',dead_trigger_filename='$dead_trigger_filename',dead_trigger_url='" . mysqli_real_escape_string($link, $dead_trigger_url) . "',scheduled_callbacks_force_dial='$scheduled_callbacks_force_dial',scheduled_callbacks_auto_reschedule='$scheduled_callbacks_auto_reschedule',scheduled_callbacks_timezones_container='$scheduled_callbacks_timezones_container',three_way_volume_buttons='$three_way_volume_buttons',callback_dnc='$callback_dnc',manual_dial_validation='$manual_dial_validation',mute_recordings='$mute_recordings',auto_active_list_new='$auto_active_list_new',call_quota_lead_ranking='$call_quota_lead_ranking',sip_event_logging='$sip_event_logging',campaign_script_two='$campaign_script_two',leave_vm_no_dispo='$leave_vm_no_dispo',leave_vm_message_group_id='$leave_vm_message_group_id' where campaign_id='$campaign_id';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmtA, $link); @@ -15643,7 +15799,7 @@ if ($ADD==4111 || $ADD==4811 || $ADD==4911) echo "
"._QXZ("GROUP MODIFIED ").": $group_id\n"; - $stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysqli_real_escape_string($link, $web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', group_handling='$group_handling', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias',no_agent_no_queue='$no_agent_no_queue',no_agent_action='$no_agent_action',no_agent_action_value='$no_agent_action_value',web_form_address_two='" . mysqli_real_escape_string($link, $web_form_address_two) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysqli_real_escape_string($link, $start_call_url) . "',dispo_call_url='" . mysqli_real_escape_string($link, $dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',ignore_list_script_override='$ignore_list_script_override',extension_appended_cidname='$extension_appended_cidname',uniqueid_status_display='$uniqueid_status_display',uniqueid_status_prefix='$uniqueid_status_prefix',hold_time_option_minimum='$hold_time_option_minimum',hold_time_option_press_filename='$hold_time_option_press_filename',hold_time_option_callmenu='$hold_time_option_callmenu',onhold_prompt_no_block='$onhold_prompt_no_block',onhold_prompt_seconds='$onhold_prompt_seconds',hold_time_option_no_block='$hold_time_option_no_block',hold_time_option_prompt_seconds='$hold_time_option_prompt_seconds',hold_time_second_option='$hold_time_second_option',hold_time_third_option='$hold_time_third_option',wait_hold_option_priority='$wait_hold_option_priority',wait_time_option='$wait_time_option',wait_time_second_option='$wait_time_second_option',wait_time_third_option='$wait_time_third_option',wait_time_option_seconds='$wait_time_option_seconds',wait_time_option_exten='$wait_time_option_exten',wait_time_option_voicemail='$wait_time_option_voicemail',wait_time_option_xfer_group='$wait_time_option_xfer_group',wait_time_option_callmenu='$wait_time_option_callmenu',wait_time_option_callback_filename='$wait_time_option_callback_filename',wait_time_option_callback_list_id='$wait_time_option_callback_list_id',wait_time_option_press_filename='$wait_time_option_press_filename',wait_time_option_no_block='$wait_time_option_no_block',wait_time_option_prompt_seconds='$wait_time_option_prompt_seconds',timer_action_destination='$timer_action_destination',calculate_estimated_hold_seconds='$calculate_estimated_hold_seconds',add_lead_url='" . mysqli_real_escape_string($link, $add_lead_url) . "',eht_minimum_prompt_filename='$eht_minimum_prompt_filename',eht_minimum_prompt_no_block='$eht_minimum_prompt_no_block',eht_minimum_prompt_seconds='$eht_minimum_prompt_seconds',on_hook_ring_time='$on_hook_ring_time',na_call_url='" . mysqli_real_escape_string($link, $na_call_url) . "',on_hook_cid='$on_hook_cid',action_xfer_cid='$action_xfer_cid',drop_callmenu='$drop_callmenu',after_hours_callmenu='$after_hours_callmenu',user_group='$user_group',max_calls_method='$max_calls_method',max_calls_count='$max_calls_count',max_calls_action='$max_calls_action',dial_ingroup_cid='$dial_ingroup_cid',web_form_address_three='" . mysqli_real_escape_string($link, $web_form_address_three) . "',populate_lead_ingroup='$populate_lead_ingroup',drop_lead_reset='$drop_lead_reset',after_hours_lead_reset='$after_hours_lead_reset',nanq_lead_reset='$nanq_lead_reset',wait_time_lead_reset='$wait_time_lead_reset',hold_time_lead_reset='$hold_time_lead_reset',status_group_id='$status_group_id',routing_initiated_recordings='$routing_initiated_recordings',on_hook_cid_number='$on_hook_cid_number',customer_chat_screen_colors='$customer_chat_screen_colors',customer_chat_survey_link='" . mysqli_real_escape_string($link, $customer_chat_survey_link) . "',customer_chat_survey_text='$customer_chat_survey_text',populate_lead_province='$populate_lead_province',areacode_filter='$areacode_filter',areacode_filter_seconds='$areacode_filter_seconds',areacode_filter_action='$areacode_filter_action',areacode_filter_action_value='$areacode_filter_action_value',populate_state_areacode='$populate_state_areacode',inbound_survey='$inbound_survey',inbound_survey_filename='$inbound_survey_filename',inbound_survey_accept_digit='$inbound_survey_accept_digit',inbound_survey_question_filename='$inbound_survey_question_filename',inbound_survey_callmenu='$inbound_survey_callmenu',icbq_expiration_hours='$icbq_expiration_hours',closing_time_action='$closing_time_action',closing_time_now_trigger='$closing_time_now_trigger',closing_time_filename='$closing_time_filename',closing_time_end_filename='$closing_time_end_filename',closing_time_lead_reset='$closing_time_lead_reset',closing_time_option_exten='$closing_time_option_exten',closing_time_option_callmenu='$closing_time_option_callmenu',closing_time_option_voicemail='$closing_time_option_voicemail',closing_time_option_xfer_group='$closing_time_option_xfer_group',closing_time_option_callback_list_id='$closing_time_option_callback_list_id',icbq_call_time_id='$icbq_call_time_id',add_lead_timezone='$add_lead_timezone',icbq_dial_filter='$icbq_dial_filter',populate_lead_source='$populate_lead_source',populate_lead_vendor='$populate_lead_vendor',park_file_name='$park_file_name',waiting_call_url_on='" . mysqli_real_escape_string($link, $waiting_call_url_on) . "',waiting_call_url_off='" . mysqli_real_escape_string($link, $waiting_call_url_off) . "',enter_ingroup_url='" . mysqli_real_escape_string($link, $enter_ingroup_url) . "',cid_cb_confirm_number='$cid_cb_confirm_number',cid_cb_invalid_filter_phone_group='$cid_cb_invalid_filter_phone_group',cid_cb_valid_length='$cid_cb_valid_length',cid_cb_valid_filename='$cid_cb_valid_filename',cid_cb_confirmed_filename='$cid_cb_confirmed_filename',cid_cb_enter_filename='$cid_cb_enter_filename',cid_cb_you_entered_filename='$cid_cb_you_entered_filename',cid_cb_press_to_confirm_filename='$cid_cb_press_to_confirm_filename',cid_cb_invalid_filename='$cid_cb_invalid_filename',cid_cb_reenter_filename='$cid_cb_reenter_filename',cid_cb_error_filename='$cid_cb_error_filename',place_in_line_caller_number_filename='$place_in_line_caller_number_filename',place_in_line_you_next_filename='$place_in_line_you_next_filename' where group_id='$group_id';"; + $stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysqli_real_escape_string($link, $web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', group_handling='$group_handling', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias',no_agent_no_queue='$no_agent_no_queue',no_agent_action='$no_agent_action',no_agent_action_value='$no_agent_action_value',web_form_address_two='" . mysqli_real_escape_string($link, $web_form_address_two) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysqli_real_escape_string($link, $start_call_url) . "',dispo_call_url='" . mysqli_real_escape_string($link, $dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',ignore_list_script_override='$ignore_list_script_override',extension_appended_cidname='$extension_appended_cidname',uniqueid_status_display='$uniqueid_status_display',uniqueid_status_prefix='$uniqueid_status_prefix',hold_time_option_minimum='$hold_time_option_minimum',hold_time_option_press_filename='$hold_time_option_press_filename',hold_time_option_callmenu='$hold_time_option_callmenu',onhold_prompt_no_block='$onhold_prompt_no_block',onhold_prompt_seconds='$onhold_prompt_seconds',hold_time_option_no_block='$hold_time_option_no_block',hold_time_option_prompt_seconds='$hold_time_option_prompt_seconds',hold_time_second_option='$hold_time_second_option',hold_time_third_option='$hold_time_third_option',wait_hold_option_priority='$wait_hold_option_priority',wait_time_option='$wait_time_option',wait_time_second_option='$wait_time_second_option',wait_time_third_option='$wait_time_third_option',wait_time_option_seconds='$wait_time_option_seconds',wait_time_option_exten='$wait_time_option_exten',wait_time_option_voicemail='$wait_time_option_voicemail',wait_time_option_xfer_group='$wait_time_option_xfer_group',wait_time_option_callmenu='$wait_time_option_callmenu',wait_time_option_callback_filename='$wait_time_option_callback_filename',wait_time_option_callback_list_id='$wait_time_option_callback_list_id',wait_time_option_press_filename='$wait_time_option_press_filename',wait_time_option_no_block='$wait_time_option_no_block',wait_time_option_prompt_seconds='$wait_time_option_prompt_seconds',timer_action_destination='$timer_action_destination',calculate_estimated_hold_seconds='$calculate_estimated_hold_seconds',add_lead_url='" . mysqli_real_escape_string($link, $add_lead_url) . "',eht_minimum_prompt_filename='$eht_minimum_prompt_filename',eht_minimum_prompt_no_block='$eht_minimum_prompt_no_block',eht_minimum_prompt_seconds='$eht_minimum_prompt_seconds',on_hook_ring_time='$on_hook_ring_time',na_call_url='" . mysqli_real_escape_string($link, $na_call_url) . "',on_hook_cid='$on_hook_cid',action_xfer_cid='$action_xfer_cid',drop_callmenu='$drop_callmenu',after_hours_callmenu='$after_hours_callmenu',user_group='$user_group',max_calls_method='$max_calls_method',max_calls_count='$max_calls_count',max_calls_action='$max_calls_action',dial_ingroup_cid='$dial_ingroup_cid',web_form_address_three='" . mysqli_real_escape_string($link, $web_form_address_three) . "',populate_lead_ingroup='$populate_lead_ingroup',drop_lead_reset='$drop_lead_reset',after_hours_lead_reset='$after_hours_lead_reset',nanq_lead_reset='$nanq_lead_reset',wait_time_lead_reset='$wait_time_lead_reset',hold_time_lead_reset='$hold_time_lead_reset',status_group_id='$status_group_id',routing_initiated_recordings='$routing_initiated_recordings',on_hook_cid_number='$on_hook_cid_number',customer_chat_screen_colors='$customer_chat_screen_colors',customer_chat_survey_link='" . mysqli_real_escape_string($link, $customer_chat_survey_link) . "',customer_chat_survey_text='$customer_chat_survey_text',populate_lead_province='$populate_lead_province',areacode_filter='$areacode_filter',areacode_filter_seconds='$areacode_filter_seconds',areacode_filter_action='$areacode_filter_action',areacode_filter_action_value='$areacode_filter_action_value',populate_state_areacode='$populate_state_areacode',inbound_survey='$inbound_survey',inbound_survey_filename='$inbound_survey_filename',inbound_survey_accept_digit='$inbound_survey_accept_digit',inbound_survey_question_filename='$inbound_survey_question_filename',inbound_survey_callmenu='$inbound_survey_callmenu',icbq_expiration_hours='$icbq_expiration_hours',closing_time_action='$closing_time_action',closing_time_now_trigger='$closing_time_now_trigger',closing_time_filename='$closing_time_filename',closing_time_end_filename='$closing_time_end_filename',closing_time_lead_reset='$closing_time_lead_reset',closing_time_option_exten='$closing_time_option_exten',closing_time_option_callmenu='$closing_time_option_callmenu',closing_time_option_voicemail='$closing_time_option_voicemail',closing_time_option_xfer_group='$closing_time_option_xfer_group',closing_time_option_callback_list_id='$closing_time_option_callback_list_id',icbq_call_time_id='$icbq_call_time_id',add_lead_timezone='$add_lead_timezone',icbq_dial_filter='$icbq_dial_filter',populate_lead_source='$populate_lead_source',populate_lead_vendor='$populate_lead_vendor',park_file_name='$park_file_name',waiting_call_url_on='" . mysqli_real_escape_string($link, $waiting_call_url_on) . "',waiting_call_url_off='" . mysqli_real_escape_string($link, $waiting_call_url_off) . "',enter_ingroup_url='" . mysqli_real_escape_string($link, $enter_ingroup_url) . "',cid_cb_confirm_number='$cid_cb_confirm_number',cid_cb_invalid_filter_phone_group='$cid_cb_invalid_filter_phone_group',cid_cb_valid_length='$cid_cb_valid_length',cid_cb_valid_filename='$cid_cb_valid_filename',cid_cb_confirmed_filename='$cid_cb_confirmed_filename',cid_cb_enter_filename='$cid_cb_enter_filename',cid_cb_you_entered_filename='$cid_cb_you_entered_filename',cid_cb_press_to_confirm_filename='$cid_cb_press_to_confirm_filename',cid_cb_invalid_filename='$cid_cb_invalid_filename',cid_cb_reenter_filename='$cid_cb_reenter_filename',cid_cb_error_filename='$cid_cb_error_filename',place_in_line_caller_number_filename='$place_in_line_caller_number_filename',place_in_line_you_next_filename='$place_in_line_you_next_filename', ingroup_script_two='$ingroup_script_two' where group_id='$group_id';"; $rslt=mysql_to_mysqli($stmt, $link); switch($group_handling) @@ -16988,6 +17144,9 @@ if ($ADD==461111111111) $rslt=mysql_to_mysqli($stmt, $link); $stmtLIST = $stmt; + $mohfiles = $MT; + $mohranks = $MT; + $stmt="SELECT filename,rank from vicidial_music_on_hold_files where moh_id='$moh_id' order by rank;"; $rsltx=mysql_to_mysqli($stmt, $link); $mohfiles_to_print = mysqli_num_rows($rsltx); @@ -17046,6 +17205,130 @@ if ($ADD==461111111111) } +###################### +# ADD=497111111111 modify VM Message Group record in the system +###################### +if ($ADD==497111111111) + { + if ($LOGmodify_statuses==1) + { + echo ""; + + if ($stage == "FILEDELETE") + { + if ( (strlen($leave_vm_message_group_id) < 2) or (strlen($audio_filename) < 1) or ($leave_vm_message_group_id=='sounds') or ($leave_vm_message_group_id=='agi-bin') or ($leave_vm_message_group_id=='astdb') or ($leave_vm_message_group_id=='keys') ) + {echo "
"._QXZ("VM MESSAGE GROUP ENTRY NOT MODIFIED - Please go back and look at the data you entered")."\n";} + else + { + $stmt="DELETE FROM leave_vm_message_groups_entries where leave_vm_message_group_id='$leave_vm_message_group_id' and audio_filename='$audio_filename';"; + $rslt=mysql_to_mysqli($stmt, $link); + $affected_rowsA = mysqli_affected_rows($link); + if ($DB > 0) {echo "|$affected_rowsA|$stmt|\n";} + + echo "
"._QXZ("VM MESSAGE GROUP ENTRY MODIFIED").": $leave_vm_message_group_id - $filename\n"; + + ### LOG INSERTION Admin Log Table ### + $SQL_log = "$stmt|$stmtA|"; + $SQL_log = preg_replace('/;/', '', $SQL_log); + $SQL_log = addslashes($SQL_log); + $stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='VMMGROUP', event_type='MODIFY', record_id='$leave_vm_message_group_id', event_code='ADMIN MODIFY VMM GROUP', event_sql=\"$SQL_log\", event_notes='FILE DELETE $affected_rowsA';"; + if ($DB) {echo "|$stmt|\n";} + $rslt=mysql_to_mysqli($stmt, $link); + } + } + else + { + if ( (strlen($leave_vm_message_group_id) < 2) or (strlen($leave_vm_message_group_notes) < 5) or ($leave_vm_message_group_id=='sounds') or ($leave_vm_message_group_id=='agi-bin') or ($leave_vm_message_group_id=='astdb') or ($leave_vm_message_group_id=='keys') ) + {echo "
VM MESSAGE GROUP ENTRY NOT MODIFIED - Please go back and look at the data you entered\n";} + else + { + $stmt="UPDATE leave_vm_message_groups set leave_vm_message_group_notes='$leave_vm_message_group_notes',active='$active',user_group='$user_group' where leave_vm_message_group_id='$leave_vm_message_group_id';"; + $rslt=mysql_to_mysqli($stmt, $link); + $affected_rowsA = mysqli_affected_rows($link); + if ($DB > 0) {echo "|$affected_rowsA|$stmt|\n";} + $stmtLIST = $stmt; + + $vmmgfiles = $MT; + $vmmgname = $MT; + $vmmgrank = $MT; + $vmmgstart = $MT; + $vmmgend = $MT; + + $stmt="SELECT audio_filename,audio_name,rank,time_start,time_end from leave_vm_message_groups_entries where leave_vm_message_group_id='$leave_vm_message_group_id' order by rank;"; + $rsltx=mysql_to_mysqli($stmt, $link); + $vmmgfiles_to_print = mysqli_num_rows($rsltx); + $ranks = ($vmmgfiles_to_print + 1); + $o=0; + while ($vmmgfiles_to_print > $o) + { + $rowx=mysqli_fetch_row($rsltx); + $vmmgfiles[$o] = $rowx[0]; + $vmmgname[$o] = $rowx[1]; + $vmmgrank[$o] = $rowx[2]; + $vmmgstart[$o] = $rowx[3]; + $vmmgend[$o] = $rowx[4]; + $o++; + } + + $o=0; + while ($vmmgfiles_to_print > $o) + { + $new_rank=0; + $Ffilename = $vmmgfiles[$o]; + $Ffilename_start = "TM_START_$vmmgfiles[$o]"; + $Ffilename_end = "TM_END_$vmmgfiles[$o]"; + $Ffilename_name = "DS_NAME_$vmmgfiles[$o]"; + if (isset($_GET[$Ffilename])) {$new_rank=$_GET[$Ffilename];} + elseif (isset($_POST[$Ffilename])) {$new_rank=$_POST[$Ffilename];} + if (isset($_GET[$Ffilename_start])) {$new_start=$_GET[$Ffilename_start];} + elseif (isset($_POST[$Ffilename_start])) {$new_start=$_POST[$Ffilename_start];} + if (isset($_GET[$Ffilename_end])) {$new_end=$_GET[$Ffilename_end];} + elseif (isset($_POST[$Ffilename_end])) {$new_end=$_POST[$Ffilename_end];} + if (isset($_GET[$Ffilename_name])) {$new_name=$_GET[$Ffilename_name];} + elseif (isset($_POST[$Ffilename_name])) {$new_name=$_POST[$Ffilename_name];} + $new_rank = preg_replace('/[^0-9]/','',$new_rank); + $new_start = preg_replace('/[^0-9]/','',$new_start); + $new_end = preg_replace('/[^0-9]/','',$new_end); + $new_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$new_name); + + $stmt="UPDATE leave_vm_message_groups_entries set rank='$new_rank',time_start='$new_start',time_end='$new_end',audio_name='$new_name' where leave_vm_message_group_id='$leave_vm_message_group_id' and audio_filename='$vmmgfiles[$o]';"; + $rslt=mysql_to_mysqli($stmt, $link); + $affected_rowsB = mysqli_affected_rows($link); + if ($DB > 0) {echo "|$affected_rowsB|$stmt|\n";} + $stmtLIST .= "|$stmt"; + $o++; + } + + if (strlen($audio_filename) > 0) + { + $stmt="INSERT INTO leave_vm_message_groups_entries set audio_filename='$audio_filename',rank='$ranks',leave_vm_message_group_id='$leave_vm_message_group_id',audio_name='$audio_name',time_start='$time_start',time_end='$time_end';"; + $rslt=mysql_to_mysqli($stmt, $link); + $affected_rowsC = mysqli_affected_rows($link); + if ($DB > 0) {echo "|$affected_rowsC|$stmt|\n";} + $stmtLIST .= "|$stmt"; + } + + echo "
"._QXZ("VM MESSAGE GROUP ENTRY MODIFIED").": $leave_vm_message_group_id\n"; + + ### LOG INSERTION Admin Log Table ### + $SQL_log = "$stmtLIST|$stmtA|"; + $SQL_log = preg_replace('/;/', '', $SQL_log); + $SQL_log = addslashes($SQL_log); + $stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='VMMGROUP', event_type='MODIFY', record_id='$leave_vm_message_group_id', event_code='ADMIN MODIFY VMM GROUP', event_sql=\"$SQL_log\", event_notes='$affected_rowsA $affected_rowsB $affected_rowsC';"; + if ($DB) {echo "|$stmt|\n";} + $rslt=mysql_to_mysqli($stmt, $link); + } + } + } + else + { + echo _QXZ("You do not have permission to view this page")."\n"; + exit; + } + $ADD=397111111111; # go to VM Message Group entry modification form below + } + + ###################### # ADD=471111111111 modify voicemail record in the system ###################### @@ -17754,7 +18037,7 @@ if ($ADD==411111111111111) } } - $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='" . mysqli_real_escape_string($link, $webphone_url) . "',enable_agc_dispo_log='$enable_agc_dispo_log',queuemetrics_loginout='$queuemetrics_loginout',callcard_enabled='$callcard_enabled',queuemetrics_callstatus='$queuemetrics_callstatus',default_codecs='$default_codecs',admin_web_directory='$admin_web_directory',label_title='$label_title',label_first_name='$label_first_name',label_middle_initial='$label_middle_initial',label_last_name='$label_last_name',label_address1='$label_address1',label_address2='$label_address2',label_address3='$label_address3',label_city='$label_city',label_state='$label_state',label_province='$label_province',label_postal_code='$label_postal_code',label_vendor_lead_code='$label_vendor_lead_code',label_gender='$label_gender',label_phone_number='$label_phone_number',label_phone_code='$label_phone_code',label_alt_phone='$label_alt_phone',label_security_phrase='$label_security_phrase',label_email='$label_email',label_comments='$label_comments',custom_fields_enabled='$custom_fields_enabled',slave_db_server='$slave_db_server',reports_use_slave_db='$reports_use_slave_db'$custom_reports_slave_SQL,webphone_systemkey='$webphone_systemkey',first_login_trigger='$first_login_trigger',default_phone_registration_password='$default_phone_registration_password',default_phone_login_password='$default_phone_login_password',default_server_password='$default_server_password',admin_modify_refresh='$admin_modify_refresh',nocache_admin='$nocache_admin',generate_cross_server_exten='$generate_cross_server_exten',queuemetrics_addmember_enabled='$queuemetrics_addmember_enabled',queuemetrics_dispo_pause='$queuemetrics_dispo_pause',label_hide_field_logs='$label_hide_field_logs',queuemetrics_pe_phone_append='$queuemetrics_pe_phone_append',test_campaign_calls='$test_campaign_calls',agents_calls_reset='$agents_calls_reset',default_voicemail_timezone='$default_voicemail_timezone',default_local_gmt='$default_local_gmt',noanswer_log='$noanswer_log',alt_log_server_ip='$alt_log_server_ip',alt_log_dbname='$alt_log_dbname',alt_log_login='$alt_log_login',alt_log_pass='$alt_log_pass',tables_use_alt_log_db='$tables_use_alt_log_db',did_agent_log='$did_agent_log',campaign_cid_areacodes_enabled='$campaign_cid_areacodes_enabled',pllb_grouping_limit='$pllb_grouping_limit',did_ra_extensions_enabled='$did_ra_extensions_enabled',expanded_list_stats='$expanded_list_stats',contacts_enabled='$contacts_enabled',call_menu_qualify_enabled='$call_menu_qualify_enabled',admin_list_counts='$admin_list_counts',allow_voicemail_greeting='$allow_voicemail_greeting',queuemetrics_socket='$queuemetrics_socket',queuemetrics_socket_url='$queuemetrics_socket_url',enhanced_disconnect_logging='$enhanced_disconnect_logging',allow_emails='$allow_emails',level_8_disable_add='$level_8_disable_add',queuemetrics_record_hold='$queuemetrics_record_hold',country_code_list_stats='$country_code_list_stats',queuemetrics_pause_type='$queuemetrics_pause_type',frozen_server_call_clear='$frozen_server_call_clear',callback_time_24hour='$callback_time_24hour',enable_languages='$enable_languages',language_method='$language_method',meetme_enter_login_filename='$meetme_enter_login_filename',meetme_enter_leave3way_filename='$meetme_enter_leave3way_filename',enable_did_entry_list_id='$enable_did_entry_list_id',enable_third_webform='$enable_third_webform',allow_chats='$allow_chats',chat_url='$chat_url',chat_timeout='$chat_timeout',agent_debug_logging='$agent_debug_logging',default_language='$default_language',agent_whisper_enabled='$agent_whisper_enabled',user_hide_realtime_enabled='$user_hide_realtime_enabled',usacan_phone_dialcode_fix='$usacan_phone_dialcode_fix',cache_carrier_stats_realtime='$cache_carrier_stats_realtime',log_recording_access='$log_recording_access',report_default_format='$report_default_format',alt_ivr_logging='$alt_ivr_logging',default_phone_code='$default_phone_code',admin_row_click='$admin_row_click',admin_screen_colors='$admin_screen_colors',ofcom_uk_drop_calc='$ofcom_uk_drop_calc',agent_screen_colors='$agent_screen_colors',script_remove_js='$script_remove_js',manual_auto_next='$manual_auto_next',user_new_lead_limit='$user_new_lead_limit',agent_xfer_park_3way='$agent_xfer_park_3way',agent_soundboards='$agent_soundboards',web_loader_phone_length='$web_loader_phone_length',agent_script='$agent_script',agent_chat_screen_colors='$agent_chat_screen_colors',enable_auto_reports='$enable_auto_reports',enable_pause_code_limits='$enable_pause_code_limits',enable_drop_lists='$enable_drop_lists',allow_ip_lists='$allow_ip_lists',system_ip_blacklist='$system_ip_blacklist',agent_push_events='$agent_push_events',agent_push_url='$agent_push_url',hide_inactive_lists='$hide_inactive_lists',allow_manage_active_lists='$allow_manage_active_lists',expired_lists_inactive='$expired_lists_inactive',did_system_filter='$did_system_filter',anyone_callback_inactive_lists='$anyone_callback_inactive_lists',enable_gdpr_download_deletion='$enable_gdpr_download_deletion',source_id_display='$source_id_display',agent_logout_link='$agent_logout_link',manual_dial_validation='$manual_dial_validation',mute_recordings='$mute_recordings',user_admin_redirect='$user_admin_redirect',list_status_modification_confirmation='$list_status_modification_confirmation',sip_event_logging='$sip_event_logging',call_quota_lead_ranking='$call_quota_lead_ranking'$custom_dialplanSQL;"; + $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='" . mysqli_real_escape_string($link, $webphone_url) . "',enable_agc_dispo_log='$enable_agc_dispo_log',queuemetrics_loginout='$queuemetrics_loginout',callcard_enabled='$callcard_enabled',queuemetrics_callstatus='$queuemetrics_callstatus',default_codecs='$default_codecs',admin_web_directory='$admin_web_directory',label_title='$label_title',label_first_name='$label_first_name',label_middle_initial='$label_middle_initial',label_last_name='$label_last_name',label_address1='$label_address1',label_address2='$label_address2',label_address3='$label_address3',label_city='$label_city',label_state='$label_state',label_province='$label_province',label_postal_code='$label_postal_code',label_vendor_lead_code='$label_vendor_lead_code',label_gender='$label_gender',label_phone_number='$label_phone_number',label_phone_code='$label_phone_code',label_alt_phone='$label_alt_phone',label_security_phrase='$label_security_phrase',label_email='$label_email',label_comments='$label_comments',custom_fields_enabled='$custom_fields_enabled',slave_db_server='$slave_db_server',reports_use_slave_db='$reports_use_slave_db'$custom_reports_slave_SQL,webphone_systemkey='$webphone_systemkey',first_login_trigger='$first_login_trigger',default_phone_registration_password='$default_phone_registration_password',default_phone_login_password='$default_phone_login_password',default_server_password='$default_server_password',admin_modify_refresh='$admin_modify_refresh',nocache_admin='$nocache_admin',generate_cross_server_exten='$generate_cross_server_exten',queuemetrics_addmember_enabled='$queuemetrics_addmember_enabled',queuemetrics_dispo_pause='$queuemetrics_dispo_pause',label_hide_field_logs='$label_hide_field_logs',queuemetrics_pe_phone_append='$queuemetrics_pe_phone_append',test_campaign_calls='$test_campaign_calls',agents_calls_reset='$agents_calls_reset',default_voicemail_timezone='$default_voicemail_timezone',default_local_gmt='$default_local_gmt',noanswer_log='$noanswer_log',alt_log_server_ip='$alt_log_server_ip',alt_log_dbname='$alt_log_dbname',alt_log_login='$alt_log_login',alt_log_pass='$alt_log_pass',tables_use_alt_log_db='$tables_use_alt_log_db',did_agent_log='$did_agent_log',campaign_cid_areacodes_enabled='$campaign_cid_areacodes_enabled',pllb_grouping_limit='$pllb_grouping_limit',did_ra_extensions_enabled='$did_ra_extensions_enabled',expanded_list_stats='$expanded_list_stats',contacts_enabled='$contacts_enabled',call_menu_qualify_enabled='$call_menu_qualify_enabled',admin_list_counts='$admin_list_counts',allow_voicemail_greeting='$allow_voicemail_greeting',queuemetrics_socket='$queuemetrics_socket',queuemetrics_socket_url='$queuemetrics_socket_url',enhanced_disconnect_logging='$enhanced_disconnect_logging',allow_emails='$allow_emails',level_8_disable_add='$level_8_disable_add',queuemetrics_record_hold='$queuemetrics_record_hold',country_code_list_stats='$country_code_list_stats',queuemetrics_pause_type='$queuemetrics_pause_type',frozen_server_call_clear='$frozen_server_call_clear',callback_time_24hour='$callback_time_24hour',enable_languages='$enable_languages',language_method='$language_method',meetme_enter_login_filename='$meetme_enter_login_filename',meetme_enter_leave3way_filename='$meetme_enter_leave3way_filename',enable_did_entry_list_id='$enable_did_entry_list_id',enable_third_webform='$enable_third_webform',allow_chats='$allow_chats',chat_url='$chat_url',chat_timeout='$chat_timeout',agent_debug_logging='$agent_debug_logging',default_language='$default_language',agent_whisper_enabled='$agent_whisper_enabled',user_hide_realtime_enabled='$user_hide_realtime_enabled',usacan_phone_dialcode_fix='$usacan_phone_dialcode_fix',cache_carrier_stats_realtime='$cache_carrier_stats_realtime',log_recording_access='$log_recording_access',report_default_format='$report_default_format',alt_ivr_logging='$alt_ivr_logging',default_phone_code='$default_phone_code',admin_row_click='$admin_row_click',admin_screen_colors='$admin_screen_colors',ofcom_uk_drop_calc='$ofcom_uk_drop_calc',agent_screen_colors='$agent_screen_colors',script_remove_js='$script_remove_js',manual_auto_next='$manual_auto_next',user_new_lead_limit='$user_new_lead_limit',agent_xfer_park_3way='$agent_xfer_park_3way',agent_soundboards='$agent_soundboards',web_loader_phone_length='$web_loader_phone_length',agent_script='$agent_script',agent_chat_screen_colors='$agent_chat_screen_colors',enable_auto_reports='$enable_auto_reports',enable_pause_code_limits='$enable_pause_code_limits',enable_drop_lists='$enable_drop_lists',allow_ip_lists='$allow_ip_lists',system_ip_blacklist='$system_ip_blacklist',agent_push_events='$agent_push_events',agent_push_url='$agent_push_url',hide_inactive_lists='$hide_inactive_lists',allow_manage_active_lists='$allow_manage_active_lists',expired_lists_inactive='$expired_lists_inactive',did_system_filter='$did_system_filter',anyone_callback_inactive_lists='$anyone_callback_inactive_lists',enable_gdpr_download_deletion='$enable_gdpr_download_deletion',source_id_display='$source_id_display',agent_logout_link='$agent_logout_link',manual_dial_validation='$manual_dial_validation',mute_recordings='$mute_recordings',user_admin_redirect='$user_admin_redirect',list_status_modification_confirmation='$list_status_modification_confirmation',sip_event_logging='$sip_event_logging',call_quota_lead_ranking='$call_quota_lead_ranking',enable_second_script='$enable_second_script'$custom_dialplanSQL;"; $rslt=mysql_to_mysqli($stmt, $link); if ( ($meetme_enter_login_filename != $SSmeetme_enter_login_filename) or ($meetme_enter_leave3way_filename != $SSmeetme_enter_leave3way_filename) ) @@ -18834,6 +19117,26 @@ if ($ADD==596111111111) } +###################### +# ADD=597111111111 confirmation before deletion of VM Message group record +###################### +if ($ADD==597111111111) + { + echo ""; + + if (strlen($leave_vm_message_group_id) < 2) + { + echo "
"._QXZ("VM MESSAGE GROUP NOT DELETED - Please go back and look at the data you entered")."\n"; + echo "
"._QXZ("VM Message Group ID be at least 2 characters in length")."\n"; + } + else + { + echo "
"._QXZ("VM MESSAGE GROUP DELETION CONFIRMATION").": $cid_group_id\n"; + echo "

"._QXZ("Click here to delete VM Message group")." $leave_vm_message_group_id


\n"; + } + $ADD='397111111111'; # go to VM Message Group entry modification below + } + ###################### # ADD=5111111111111 confirmation before deletion of conference record @@ -21279,6 +21582,51 @@ if ($ADD==696111111111) } +###################### +# ADD=697111111111 delete VM Message groups record +###################### +if ($ADD==697111111111) + { + echo ""; + + if ( (strlen($leave_vm_message_group_id) < 2) or ($CoNfIrM != 'YES') or ($LOGmodify_statuses!=1) ) + { + echo "
"._QXZ("VM MESSAGE GROUP NOT DELETED - Please go back and look at the data you entered")."\n"; + echo "
"._QXZ("VM Message Group ID must be at least 2 characters in length")."\n"; + } + else + { + $stmt="SELECT count(*) from leave_vm_message_groups where leave_vm_message_group_id='$leave_vm_message_group_id' $LOGadmin_viewable_groupsSQL;"; + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + if ($row[0] < 1) + {echo "
"._QXZ("VM MESSAGE GROUP NOT FOUND").": $leave_vm_message_group_id\n";} + else + { + $stmt="DELETE from leave_vm_message_groups where leave_vm_message_group_id='$leave_vm_message_group_id' $LOGadmin_viewable_groupsSQL;"; + $rslt=mysql_to_mysqli($stmt, $link); + + $stmtB="DELETE from leave_vm_message_groups_entries WHERE leave_vm_message_group_id='$leave_vm_message_group_id';"; + $rslt=mysql_to_mysqli($stmtB, $link); + $affected_rowsB = mysqli_affected_rows($link); + if ($DB) {echo "$affected_rowsB|$stmtB|\n";} + + ### LOG INSERTION Admin Log Table ### + $SQL_log = "$stmt|$stmtB|"; + $SQL_log = preg_replace('/;/', '', $SQL_log); + $SQL_log = addslashes($SQL_log); + $stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='VMMGROUPS', event_type='DELETE', record_id='$leave_vm_message_group_id', event_code='ADMIN DELETE VMM GROUP', event_sql=\"$SQL_log\", event_notes='$affected_rowsB VMMS deleted';"; + if ($DB) {echo "|$stmt|\n";} + $rslt=mysql_to_mysqli($stmt, $link); + + echo "
"._QXZ("VM MESSAGE GROUP DELETION COMPLETED").": $leave_vm_message_group_id\n"; + echo "

\n"; + } + } + $ADD='197000000000'; # go to VM Message groups entry list + } + + ###################### # ADD=6111111111111 delete conference record ###################### @@ -21622,7 +21970,7 @@ if ($ADD==3) echo "
"._QXZ("Hot Keys Active").": $NWB#users-hotkeys_active$NWE
"._QXZ("Scheduled Callbacks").": $NWB#users-scheduled_callbacks$NWE
"._QXZ("Agent-Only Callbacks").": $NWB#users-agentonly_callbacks$NWE
"._QXZ("Next-Dial My Callbacks Override").": $NWB#users-next_dial_my_callbacks$NWE
"._QXZ("Next-Dial My Callbacks Override").": $NWB#users-next_dial_my_callbacks$NWE
"._QXZ("Agent Call Manual").": $NWB#users-agentcall_manual$NWE
"._QXZ("Agent Call Email").": $NWB#users-agentcall_email$NWE
"._QXZ("Lead Filter").": "; echo "$NWB#users-lead_filter_id$NWE "._QXZ("only enabled with no-hopper manual dialing").""; echo "
"._QXZ("Active").": $NWB#campaigns-active$NWE
"._QXZ("Admin User Group").": $NWB#campaigns-user_group$NWE
"._QXZ("Park Music-on-Hold").": "._QXZ("moh chooser")." $NWB#campaigns-park_ext$NWE
"._QXZ("Script Two").": $NWB#campaigns-campaign_script$NWE
"._QXZ("Clear Script").": $NWB#campaigns-clear_script$NWE
"._QXZ("AM Message Wildcards").": $NWB#campaigns-am_message_wildcards$NWE "._QXZ("AM Message Wildcards Defined").": $vam_count
"._QXZ("AM Message Wildcards").": $NWB#campaigns-am_message_wildcards$NWE "._QXZ("AM Message Wildcards Defined").": $vam_count
"._QXZ("VM Message Group").": $NWB#campaigns-leave_vm_message_group_id$NWE\n"; + echo "
"._QXZ("Leave VM No Dispo").": $NWB#campaigns-leave_vm_no_dispo$NWE\n"; + echo "
"._QXZ("Transfer-Conf DTMF")." 1: $NWB#campaigns-xferconf_a_dtmf$NWE
"._QXZ("Transfer-Conf Number")." 1: $NWB#campaigns-xferconf_a_dtmf$NWE
"._QXZ("Manual Dial CID").": $NWB#campaigns-manual_dial_cid$NWE
"._QXZ("Manual Dial Timeout").": in seconds $NWB#campaigns-manual_dial_timeout$NWE
"._QXZ("Manual Dial Timeout").": ">_QXZ("in seconds")." $NWB#campaigns-manual_dial_timeout$NWE
"._QXZ("Phone Post Time Difference Alert").": $NWB#campaigns-post_phone_time_diff_alert$NWE
$row[8] $row[8] $row[4] "._QXZ("$row[4]").""; if (preg_match('/Y/',$row[4])) @@ -25037,7 +25437,7 @@ if ($ADD==31) echo "

$presets_to_print "._QXZ("PRESETS FOR THIS CAMPAIGN").":   $NWB#xfer_presets$NWE
\n"; - echo "
ADD NEW PRESET -
\n"; + echo "
"._QXZ("ADD NEW PRESET")." -
\n"; echo "\n"; echo "\n"; echo _QXZ("Preset Name").": \n"; @@ -26103,11 +26503,11 @@ if ( ($ADD==34) or ($ADD==31) ) echo "
"._QXZ("Status").": \n"; if ($rowx[5]=='INACTIVE') { - echo "$rowx[5]\n"; + echo ""._QXZ("$rowx[5]")."\n"; echo ""._QXZ("SET TO ACTIVE").""._QXZ("Method").":\n"; echo "
"._QXZ("LIST ID").""._QXZ("PRIORITY").""._QXZ("% MIX").""._QXZ("STATUSES").""._QXZ("")."
$campaigns_id_list[$o] $campaigns_name_list[$o] $use_custom_cid_list[$o] "._QXZ("$use_custom_cid_list[$o]")." "; $stmt="SELECT count(*) from vicidial_campaign_cid_areacodes where campaign_id='$campaigns_id_list[$o]' $LOGallowed_campaignsSQL;"; @@ -28231,7 +28631,7 @@ if ($ADD==3111) echo "\n"; + if ($SSenable_second_script > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } + echo "\n"; ##### get status group listings for dynamic pulldown menu @@ -28679,6 +29092,8 @@ if ($ADD==3111) echo "$NWB#inbound_groups-status_group_id$NWE\n"; $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= "";} if ($SSenable_third_webform > 0) @@ -29045,7 +29460,7 @@ if ($ADD==3111) echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; @@ -29675,7 +30090,7 @@ if ($ADD==3811) echo "
\n"; echo ""; - $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text,populate_lead_province,areacode_filter,areacode_filter_seconds,areacode_filter_action,areacode_filter_action_value,populate_state_areacode,inbound_survey,inbound_survey_filename,inbound_survey_accept_digit,inbound_survey_question_filename,inbound_survey_callmenu,icbq_expiration_hours,closing_time_action,closing_time_now_trigger,closing_time_filename,closing_time_end_filename,closing_time_lead_reset,closing_time_option_exten,closing_time_option_callmenu,closing_time_option_voicemail,closing_time_option_xfer_group,closing_time_option_callback_list_id,icbq_call_time_id,add_lead_timezone,icbq_dial_filter,populate_lead_source,populate_lead_vendor,park_file_name,waiting_call_url_on,waiting_call_url_off,enter_ingroup_url,cid_cb_confirm_number, cid_cb_invalid_filter_phone_group, cid_cb_valid_length, cid_cb_valid_filename, cid_cb_confirmed_filename, cid_cb_enter_filename, cid_cb_you_entered_filename, cid_cb_press_to_confirm_filename, cid_cb_invalid_filename, cid_cb_reenter_filename, cid_cb_error_filename,place_in_line_caller_number_filename,place_in_line_you_next_filename from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text,populate_lead_province,areacode_filter,areacode_filter_seconds,areacode_filter_action,areacode_filter_action_value,populate_state_areacode,inbound_survey,inbound_survey_filename,inbound_survey_accept_digit,inbound_survey_question_filename,inbound_survey_callmenu,icbq_expiration_hours,closing_time_action,closing_time_now_trigger,closing_time_filename,closing_time_end_filename,closing_time_lead_reset,closing_time_option_exten,closing_time_option_callmenu,closing_time_option_voicemail,closing_time_option_xfer_group,closing_time_option_callback_list_id,icbq_call_time_id,add_lead_timezone,icbq_dial_filter,populate_lead_source,populate_lead_vendor,park_file_name,waiting_call_url_on,waiting_call_url_off,enter_ingroup_url,cid_cb_confirm_number, cid_cb_invalid_filter_phone_group, cid_cb_valid_length, cid_cb_valid_filename, cid_cb_confirmed_filename, cid_cb_enter_filename, cid_cb_you_entered_filename, cid_cb_press_to_confirm_filename, cid_cb_invalid_filename, cid_cb_reenter_filename, cid_cb_error_filename,place_in_line_caller_number_filename,place_in_line_you_next_filename,ingroup_script_two from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -28406,6 +28806,7 @@ if ($ADD==3111) $cid_cb_error_filename = $row[168]; $place_in_line_caller_number_filename = $row[169]; $place_in_line_you_next_filename = $row[170]; + $ingroup_script_two = $row[171]; ##### get callmenu listings for dynamic pulldown @@ -28645,6 +29046,18 @@ if ($ADD==3111) echo "\n"; echo "$NWB#inbound_groups-ingroup_script$NWE
"._QXZ("Script Two").": $NWB#inbound_groups-ingroup_script$NWE
"._QXZ("Ignore List Script Override").": $NWB#inbound_groups-ignore_list_script_override$NWE
"._QXZ("Hold Time Option Press Filename").": "._QXZ("audio chooser")." $NWB#inbound_groups-hold_time_option_press_filename$NWE
"._QXZ("Hold Time Option Press No Block").": $NWB#inbound_groups-hold_time_option_no_block$NWE
"._QXZ("Hold Time Option Press No Block").": $NWB#inbound_groups-hold_time_option_no_block$NWE
"._QXZ("Hold Time Option Press Filename Seconds").": $NWB#inbound_groups-hold_time_option_prompt_seconds$NWE
\n"; echo "\n"; if ($SSenable_second_webform > 0) @@ -29978,6 +30394,8 @@ if ($ADD==3811) echo "\n"; $eswHTML=''; $cfwHTML=''; + if ($SSenable_second_script > 0) + {$eswHTML .= "";} if ($SSenable_second_webform > 0) {$eswHTML .= "";} if ($SSenable_third_webform > 0) @@ -30001,6 +30419,18 @@ if ($ADD==3811) echo "\n"; echo "$NWB#inbound_groups-ingroup_script$NWE\n"; + if ($SSenable_second_script > 0) + { + echo "\n"; + } + else + { + echo "\n"; + } + echo "\n"; ##### get status group listings for dynamic pulldown menu @@ -30222,7 +30652,7 @@ if ($ADD==3811) $ARIG_user[$o] = $rowx[0]; $ARIG_name[$o] = $rowx[1]; $ARIG_close[$o] = $rowx[2]; - $ARIG_group[$o] = $rowx[3]; + $ARIG_group[$o] = (preg_match('/\-\-ALL\-\-/', $rowx[3]) ? _QXZ("$rowx[3]") : $rowx[3]); $ARIG_check[$o] = ''; if (preg_match("/ $group_id /",$ARIG_close[$o])) {$ARIG_check[$o] = ' CHECKED';} @@ -30769,7 +31199,7 @@ if ($ADD==3911) echo "\n"; echo "\n"; if ($SSenable_second_webform > 0) @@ -30791,9 +31221,9 @@ if ($ADD==3911) if ($n<0) {$dtl = 'Lower';} if ($n>0) {$dtl = 'Higher';} if ($n == $queue_priority) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $n--; } echo " $NWB#inbound_groups-queue_priority$NWE\n"; @@ -31033,7 +31463,7 @@ if ($ADD==3911) $ARIG_user[$o] = $rowx[0]; $ARIG_name[$o] = $rowx[1]; $ARIG_close[$o] = $rowx[2]; - $ARIG_group[$o] = $rowx[3]; + $ARIG_group[$o] = (preg_match('/\-\-ALL\-\-/', $rowx[3]) ? _QXZ("$rowx[3]") : $rowx[3]); $ARIG_check[$o] = ''; if (preg_match("/ $group_id /",$ARIG_close[$o])) {$ARIG_check[$o] = ' CHECKED';} @@ -31483,7 +31913,7 @@ if ($ADD==3311) else {$FDgroups_menu .= "\n";} if ($PFDgroups_selected < 1) - {$PFDgroups_menu .= "\n";} + {$PFDgroups_menu .= "\n";} else {$PFDgroups_menu .= "\n";} if ($MQIgroups_selected < 1) @@ -31529,7 +31959,7 @@ if ($ADD==3311) { echo "\n"; echo "\n"; echo "\n"; @@ -31568,7 +31998,7 @@ if ($ADD==3311) echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -32694,7 +33124,7 @@ if ($ADD==3711) echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo ""; - $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,status_group_id,routing_initiated_recordings from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,status_group_id,routing_initiated_recordings,ingroup_script_two from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -29787,6 +30202,7 @@ if ($ADD==3811) $web_form_address_three = $row[114]; $status_group_id = $row[115]; $routing_initiated_recordings = $row[116]; + $ingroup_script_two = $row[117]; ##### get callmenu listings for dynamic pulldown $stmt="SELECT menu_id,menu_name from vicidial_call_menu $whereLOGadmin_viewable_groupsSQL order by menu_id;"; @@ -29926,7 +30342,7 @@ if ($ADD==3811) $vc_allowed_ct++; } if ($allowed_campaigns_count < 1) - {$allowed_campaigns_warning='
  Not set as allowed in any campaigns!
';} + {$allowed_campaigns_warning='
  '._QXZ("Not set as allowed in any campaigns!").'
';} echo "
"._QXZ("MODIFY AN EMAIL GROUPS RECORD").": $query_group_id\n"; echo "\n"; @@ -29947,7 +30363,7 @@ if ($ADD==3811) echo "
"._QXZ("Admin User Group").": $NWB#inbound_groups-user_group$NWE
"._QXZ("Web Form").": $NWB#inbound_groups-web_form_address$NWE
"._QXZ("Fronter Display").": $NWB#inbound_groups-fronter_display$NWE
"._QXZ("Script Two").": $NWB#inbound_groups-ingroup_script$NWE
"._QXZ("Ignore List Script Override").": $NWB#inbound_groups-ignore_list_script_override$NWE
"._QXZ("Admin User Group").": $NWB#inbound_groups-user_group$NWE
"._QXZ("Web Form").": $NWB#inbound_groups-web_form_address$NWE
"._QXZ("Admin User Group").": $NWB#inbound_dids-user_group$NWE
"._QXZ("Active").": Y
"._QXZ("Clean CID Number").": $NWB#inbound_dids-filter_clean_cid_number$NWE
"._QXZ("Active").": $NWB#inbound_dids-did_active$NWE
"._QXZ("Admin User Group").": $NWB#inbound_dids-user_group$NWE
"._QXZ("DID Route").": $NWB#inbound_dids-did_route$NWE
"._QXZ("Record Call").": $NWB#inbound_dids-record_call$NWE
"._QXZ("Filter Phone Group Description").": $NWB#filter_phone_groups-filter_phone_group_description$NWE
"._QXZ("Admin User Group").": $NWB#filter_phone_groups-user_group$NWE
\n"; @@ -33016,7 +33446,7 @@ if ($ADD==311111) trim($Vreports_ARY[$b]); if (preg_match("/$Vreports_ARY[$b]/",$allowed_reports)) {$field_selected = 'SELECTED';} - echo "\n"; + echo "\n"; $b++; } echo "$NWB#user_groups-allowed_reports$NWE
$rowx[0]$rowx[1]$rowx[2]$rowx[3]"._QXZ("$rowx[3]")."
"._QXZ("Script Comments").": $NWB#scripts-script_comments$NWE
"._QXZ("Admin User Group").": $NWB#scripts-user_group$NWE
"._QXZ("Active").": $NWB#scripts-active$NWE
"._QXZ("Script Color").": $NWB#scripts-script_color$NWE
\n"; - $stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where campaign_script='$script_id' $LOGallowed_campaignsSQL;"; + $stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where ( (campaign_script='$script_id') or (campaign_script_two='$script_id') ) $LOGallowed_campaignsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $camps_to_print = mysqli_num_rows($rslt); $o=0; @@ -33446,7 +33876,7 @@ if ($ADD==3111111) echo " "._QXZ("IN-GROUPS USING THIS SCRIPT").":
\n"; echo "
\n"; - $stmt="SELECT group_id,group_name from vicidial_inbound_groups where ingroup_script='$script_id' $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT group_id,group_name from vicidial_inbound_groups where ( (ingroup_script='$script_id') or (ingroup_script_two='$script_id') ) $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $camps_to_print = mysqli_num_rows($rslt); $o=0; @@ -33548,11 +33978,11 @@ if ($ADD==31111111) echo "\n"; echo "
\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -33874,7 +34304,7 @@ if ($ADD==311111111) echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -34394,7 +34824,7 @@ if ($ADD==331111111) echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -34518,15 +34948,15 @@ if ($ADD==31111111111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -34550,7 +34980,7 @@ if ($ADD==31111111111) } $z++; } - echo " $NWB#phones-voicemail_timezone$NWE\n"; + echo " $NWB#phones-voicemail_timezone$NWE\n"; echo "\n"; if ($SSallow_voicemail_greeting > 0) { @@ -34569,10 +34999,10 @@ if ($ADD==31111111111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -34642,7 +35072,7 @@ if ($ADD==31111111111) $o++; } echo "$templates_list"; - echo "\n"; + echo "\n"; echo "$NWB#phones-template_id$NWE\n"; echo "\n"; @@ -34698,9 +35128,9 @@ if ($ADD==32111111111) echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "
"._QXZ("Filter ID").": $lead_filter_id$NWB#lead_filters-lead_filter_id$NWE
"._QXZ("Filter Name").": (short description of the filter)$NWB#lead_filters-lead_filter_name$NWE
"._QXZ("Filter Name").": ("._QXZ("short description of the filter").")$NWB#lead_filters-lead_filter_name$NWE
"._QXZ("Filter Comments").": $NWB#lead_filters-lead_filter_comments$NWE
"._QXZ("Admin User Group").": $NWB#lead_filters-user_group$NWE
"._QXZ("Filter SQL").": $NWB#lead_filters-lead_filter_sql$NWE
"._QXZ("Call Time Comments").": $NWB#call_times-call_time_comments$NWE
"._QXZ("Admin User Group").": $NWB#call_times-user_group$NWE
"._QXZ("Default Start").": "._QXZ("Default Stop").": $NWB#call_times-ct_default_start$NWE       "._QXZ("AH Override").": "._QXZ("audio chooser")." $NWB#call_times-default_afterhours_filename_override$NWE
"._QXZ("Sunday Start").": "._QXZ("Sunday Stop").": $NWB#call_times-ct_sunday_start$NWE       "._QXZ("AH Override").": "._QXZ("audio chooser")." $NWB#call_times-default_afterhours_filename_override$NWE
"._QXZ("Shift Name").": ("._QXZ("short description of the shift").")$NWB#shifts-shift_name$NWE
"._QXZ("Admin User Group").": $NWB#shifts-user_group$NWE
"._QXZ("Shift Start Time").": \n"; echo "   "._QXZ("Shift End Time").": \n"; @@ -34506,7 +34936,7 @@ if ($ADD==31111111111) echo "
"._QXZ("Outbound Alt CallerID").": "._QXZ("optional")." ("._QXZ("digits only").")$NWB#phones-outbound_alt_cid$NWE
"._QXZ("Admin User Group").": $NWB#phones-user_group$NWE
"._QXZ("Phone IP address").": ("._QXZ("optional").")$NWB#phones-phone_ip$NWE
"._QXZ("Computer IP address").": ("._QXZ("optional").")$NWB#phones-computer_ip$NWE
"._QXZ("Agent Screen Login").": $NWB#phones-login$NWE
"._QXZ("Login Password").": $NWB#phones-pass$NWE
"._QXZ("Registration Password").": $NWB#phones-conf_secret$NWE     "._QXZ("Strength").":
"._QXZ("Set As Webphone").": $NWB#phones-is_webphone$NWE
"._QXZ("Set As Webphone").": $NWB#phones-is_webphone$NWE
"._QXZ("Webphone Dialpad").": $NWB#phones-webphone_dialpad$NWE
"._QXZ("Webphone Auto-Answer").": $NWB#phones-webphone_auto_answer$NWE
"._QXZ("Webphone Dialbox").": $NWB#phones-webphone_dialbox$NWE
"._QXZ("Webphone Mute").": $NWB#phones-webphone_mute$NWE
"._QXZ("Webphone Volume").": $NWB#phones-webphone_volume$NWE
"._QXZ("Webphone Debug").": $NWB#phones-webphone_debug$NWE
"._QXZ("Webphone Auto-Answer").": $NWB#phones-webphone_auto_answer$NWE
"._QXZ("Webphone Dialbox").": $NWB#phones-webphone_dialbox$NWE
"._QXZ("Webphone Mute").": $NWB#phones-webphone_mute$NWE
"._QXZ("Webphone Volume").": $NWB#phones-webphone_volume$NWE
"._QXZ("Webphone Debug").": $NWB#phones-webphone_debug$NWE
"._QXZ("Webphone Layout").": $NWB#phones-webphone_layout$NWE
"._QXZ("Use External Server IP").": $NWB#phones-use_external_server_ip$NWE
"._QXZ("Use External Server IP").": $NWB#phones-use_external_server_ip$NWE
"._QXZ("Status").": $NWB#phones-status$NWE
"._QXZ("Active Account").": $NWB#phones-active$NWE
"._QXZ("Phone Type").": $NWB#phones-phone_type$NWE
"._QXZ("Voicemail Options").": $NWB#phones-voicemail_options$NWE
"._QXZ("Picture").": $NWB#phones-picture$NWE
"._QXZ("New Messages").": $row[14]$NWB#phones-messages$NWE
"._QXZ("Old Messages").": $row[15]$NWB#phones-old_messages$NWE
"._QXZ("Client Protocol").": $NWB#phones-protocol$NWE
"._QXZ("Local GMT").": ("._QXZ("Do NOT Adjust for DST").")$NWB#phones-local_gmt$NWE
"._QXZ("Client Protocol").": $NWB#phones-protocol$NWE
"._QXZ("Local GMT").": ("._QXZ("Do NOT Adjust for DST").")$NWB#phones-local_gmt$NWE
"._QXZ("Phone Ring Timeout").": $NWB#phones-phone_ring_timeout$NWE
"._QXZ("On-Hook Agent").": $NWB#phones-on_hook_agent$NWE
"._QXZ("On-Hook Agent").": $NWB#phones-on_hook_agent$NWE
"._QXZ("Manager Login").": $NWB#phones-ASTmgrUSERNAME$NWE
"._QXZ("Manager Secret").": $NWB#phones-ASTmgrSECRET$NWE
"._QXZ("Agent Default User").": $NWB#phones-login_user$NWE
"._QXZ("Conf Override").": $NWB#phones-conf_override$NWE
"._QXZ("Alias Name").": $NWB#phones-alias_name$NWE
"._QXZ("Admin User Group").": $NWB#phones-user_group$NWE
"._QXZ("Phones Logins List").": (comma separated)$NWB#phones-logins_list$NWE
"._QXZ("Phones Logins List").": ("._QXZ("comma separated").")$NWB#phones-logins_list$NWE
\n"; @@ -34778,11 +35208,11 @@ if ($ADD==33111111111) echo "
"._QXZ("Group Alias Name").": $NWB#phones-group_alias_name$NWE
"._QXZ("Admin User Group").": $NWB#phones-user_group$NWE
"._QXZ("CallerID Number").": $NWB#phones-caller_id_number$NWE
"._QXZ("CallerID Name").": $NWB#phones-caller_id_name$NWE
"._QXZ("Active").":
"._QXZ("Active").":
\n"; @@ -34903,13 +35333,13 @@ if ($ADD==311111111111) echo ""._QXZ("Admin User Group").": $NWB#servers-user_group$NWE\n"; echo ""._QXZ("Asterisk Version").": $NWB#servers-asterisk_version$NWE\n"; echo ""._QXZ("Max Trunks").": $NWB#servers-max_trunks$NWE\n"; echo ""._QXZ("Max Calls per Second").": $NWB#servers-outbound_calls_per_second$NWE\n"; - echo ""._QXZ("Balance Dialing").": $NWB#servers-balance_active$NWE\n"; + echo ""._QXZ("Balance Dialing").": $NWB#servers-balance_active$NWE\n"; echo ""._QXZ("Balance Rank").": $NWB#servers-balance_rank$NWE\n"; echo ""._QXZ("Balance Offlimits").": $NWB#servers-balance_trunks_offlimits$NWE\n"; echo ""._QXZ("Telnet Host").": $NWB#servers-telnet_host$NWE\n"; @@ -34938,22 +35368,22 @@ if ($ADD==311111111111) echo ""._QXZ("System Performance").": $NWB#servers-sys_perf_log$NWE\n"; echo ""._QXZ("Server Logs").": $NWB#servers-vd_server_logs$NWE\n"; echo ""._QXZ("AGI Output").": $NWB#servers-agi_output$NWE\n"; - echo ""._QXZ("Carrier Logging Active").": $NWB#servers-carrier_logging_active$NWE\n"; - echo ""._QXZ("Gather Asterisk Output").": $NWB#servers-gather_asterisk_output$NWE\n"; - echo ""._QXZ("Conf Qualify").": $NWB#servers-conf_qualify$NWE\n"; + echo ""._QXZ("Carrier Logging Active").": $NWB#servers-carrier_logging_active$NWE\n"; + echo ""._QXZ("Gather Asterisk Output").": $NWB#servers-gather_asterisk_output$NWE\n"; + echo ""._QXZ("Conf Qualify").": $NWB#servers-conf_qualify$NWE\n"; echo ""._QXZ("Recording Web Link").": $NWB#servers-recording_web_link$NWE\n"; echo ""._QXZ("Alternate Recording Server IP").": $NWB#servers-alt_server_ip$NWE\n"; echo ""._QXZ("External Server IP").": $NWB#servers-external_server_ip$NWE\n"; echo ""._QXZ("Web Socket URL").": $NWB#servers-web_socket_url$NWE\n"; echo ""._QXZ("External Web Socket URL").": $NWB#servers-external_web_socket_url$NWE\n"; echo ""._QXZ("Active Twin Server IP").": $NWB#servers-active_twin_server_ip$NWE\n"; - echo ""._QXZ("Active Asterisk Server").": $NWB#servers-active_asterisk_server$NWE\n"; - echo ""._QXZ("Auto-Restart Asterisk").":     $NWB#servers-auto_restart_asterisk$NWE\n"; - echo ""._QXZ("Temp No-Restart Asterisk").":     $NWB#servers-asterisk_temp_no_restart$NWE\n"; - echo ""._QXZ("Active Agent Server").": $NWB#servers-active_agent_login_server$NWE\n"; - echo ""._QXZ("Generate conf files").": $NWB#servers-generate_conf$NWE\n"; - echo ""._QXZ("Rebuild conf files").": $NWB#servers-rebuild_conf_files$NWE\n"; - echo ""._QXZ("Rebuild Music On Hold").": $NWB#servers-rebuild_music_on_hold$NWE\n"; + echo ""._QXZ("Active Asterisk Server").": $NWB#servers-active_asterisk_server$NWE\n"; + echo ""._QXZ("Auto-Restart Asterisk").":     $NWB#servers-auto_restart_asterisk$NWE\n"; + echo ""._QXZ("Temp No-Restart Asterisk").":     $NWB#servers-asterisk_temp_no_restart$NWE\n"; + echo ""._QXZ("Active Agent Server").": $NWB#servers-active_agent_login_server$NWE\n"; + echo ""._QXZ("Generate conf files").": $NWB#servers-generate_conf$NWE\n"; + echo ""._QXZ("Rebuild conf files").": $NWB#servers-rebuild_conf_files$NWE\n"; + echo ""._QXZ("Rebuild Music On Hold").": $NWB#servers-rebuild_music_on_hold$NWE\n"; echo ""._QXZ("Sounds Update").": $NWB#servers-sounds_update$NWE\n"; echo ""._QXZ("Recording Limit").": $NWB#servers-recording_limit$NWE\n"; @@ -35043,7 +35473,7 @@ if ($ADD==311111111111) else {$bgcolor='bgcolor="#'. $SSstd_row1_background .'"';} - echo "$rowx[0]$rowx[1]$rowx[2]$rowx[3]\n"; + echo "$rowx[0]$rowx[1]$rowx[2]"._QXZ("$rowx[3]")."\n"; } echo "
\n"; @@ -35076,7 +35506,7 @@ if ($ADD==311111111111) else {$bgcolor='bgcolor="#'. $SSstd_row1_background .'"';} - echo "$rowx[0]$rowx[2]$rowx[1]\n"; + echo "$rowx[0]$rowx[2]"._QXZ("$rowx[1]")."\n"; } echo "
\n"; @@ -35335,7 +35765,7 @@ if ($ADD==341111111111) echo ""._QXZ("Carrier Description").": $NWB#server_carriers-carrier_description$NWE\n"; echo ""._QXZ("Admin User Group").": $NWB#server_carriers-user_group$NWE\n"; echo ""._QXZ("Registration String").": $NWB#server_carriers-registration_string$NWE\n"; @@ -35352,11 +35782,11 @@ if ($ADD==341111111111) $o++; } echo "$templates_list"; - echo "\n"; + echo "\n"; echo "$NWB#server_carriers-template_id$NWE\n"; echo ""._QXZ("Account Entry").": $NWB#server_carriers-account_entry$NWE\n"; - echo ""._QXZ("Protocol").": $NWB#server_carriers-protocol$NWE\n"; + echo ""._QXZ("Protocol").": $NWB#server_carriers-protocol$NWE\n"; echo ""._QXZ("Globals String").": $NWB#server_carriers-globals_string$NWE\n"; echo ""._QXZ("Dialplan Entry").": $NWB#server_carriers-dialplan_entry$NWE\n"; @@ -35423,7 +35853,7 @@ if ($ADD==351111111111) echo ""._QXZ("Active").": $NWB#tts_prompts-active$NWE\n"; echo ""._QXZ("Admin User Group").": $NWB#tts_prompts-user_group$NWE\n"; echo ""._QXZ("TTS Voice").": $NWB#tts_prompts-tts_voice$NWE\n"; @@ -35473,7 +35903,7 @@ if ($ADD==361111111111) $moh_name = $row[1]; $active = $row[2]; $random = $row[3]; - $user_group = $row[4]; + $user_group = (preg_match('/\-\-ALL\-\-/', $row[4]) ? _QXZ("$row[4]") : $row[4]); echo "
"._QXZ("MODIFY A MUSIC ON HOLD RECORD").": $moh_id\n"; echo "\n"; @@ -35540,6 +35970,127 @@ if ($ADD==361111111111) } +###################### +# ADD=397111111111 modify VM Message Group record in the system +###################### +if ($ADD==397111111111) + { + if ($LOGmodify_statuses==1) + { + if ( ($SSadmin_modify_refresh > 1) and ($modify_refresh_set < 1) ) + { + $modify_url = "$PHP_SELF?ADD=397111111111&leave_vm_message_group_id=$leave_vm_message_group_id"; + $modify_footer_refresh=1; + } + echo "\n"; echo "\n"; @@ -35827,7 +36378,7 @@ if ($ADD==382111111111) echo "\n"; echo "\n"; @@ -36033,7 +36584,7 @@ if ($ADD==392111111111) echo "\n"; if ($container_type == 'READ_ONLY') @@ -36101,7 +36652,7 @@ if ($ADD==393111111111) echo "\n"; echo "\n"; @@ -36173,16 +36724,16 @@ if ($ADD==393111111111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo "\n"; echo "\n"; @@ -36345,7 +36896,7 @@ if ($ADD==394111111111) echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -36655,11 +37206,11 @@ if ($ADD==396111111111) echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -36990,7 +37541,7 @@ if ($ADD==311111111111111) $ALLagent_count = $rowx[2]; } - $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url,enable_agc_dispo_log,custom_dialplan_entry,queuemetrics_loginout,callcard_enabled,queuemetrics_callstatus,default_codecs,admin_web_directory,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,custom_fields_enabled,slave_db_server,reports_use_slave_db,webphone_systemkey,first_login_trigger,default_phone_registration_password,default_phone_login_password,default_server_password,admin_modify_refresh,nocache_admin,generate_cross_server_exten,queuemetrics_addmember_enabled,queuemetrics_dispo_pause,label_hide_field_logs,queuemetrics_pe_phone_append,test_campaign_calls,agents_calls_reset,default_voicemail_timezone,default_local_gmt,noanswer_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_agent_log,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,queuemetrics_socket,queuemetrics_socket_url,enhanced_disconnect_logging,allow_emails,level_8_disable_add,pass_hash_enabled,pass_key,pass_cost,disable_auto_dial,queuemetrics_record_hold,country_code_list_stats,reload_timestamp,queuemetrics_pause_type,frozen_server_call_clear,callback_time_24hour,allow_chats,chat_url,chat_timeout,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,agent_debug_logging,default_language,agent_whisper_enabled,user_hide_realtime_enabled,usacan_phone_dialcode_fix,cache_carrier_stats_realtime,oldest_logs_date,log_recording_access,report_default_format,alt_ivr_logging,default_phone_code,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,rec_prompt_count,agent_soundboards,web_loader_phone_length,agent_script,agent_chat_screen_colors,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,agent_push_events,agent_push_url,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,anyone_callback_inactive_lists,enable_gdpr_download_deletion,source_id_display,agent_logout_link,manual_dial_validation,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking from system_settings;"; + $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url,enable_agc_dispo_log,custom_dialplan_entry,queuemetrics_loginout,callcard_enabled,queuemetrics_callstatus,default_codecs,admin_web_directory,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,custom_fields_enabled,slave_db_server,reports_use_slave_db,webphone_systemkey,first_login_trigger,default_phone_registration_password,default_phone_login_password,default_server_password,admin_modify_refresh,nocache_admin,generate_cross_server_exten,queuemetrics_addmember_enabled,queuemetrics_dispo_pause,label_hide_field_logs,queuemetrics_pe_phone_append,test_campaign_calls,agents_calls_reset,default_voicemail_timezone,default_local_gmt,noanswer_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_agent_log,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,queuemetrics_socket,queuemetrics_socket_url,enhanced_disconnect_logging,allow_emails,level_8_disable_add,pass_hash_enabled,pass_key,pass_cost,disable_auto_dial,queuemetrics_record_hold,country_code_list_stats,reload_timestamp,queuemetrics_pause_type,frozen_server_call_clear,callback_time_24hour,allow_chats,chat_url,chat_timeout,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,agent_debug_logging,default_language,agent_whisper_enabled,user_hide_realtime_enabled,usacan_phone_dialcode_fix,cache_carrier_stats_realtime,oldest_logs_date,log_recording_access,report_default_format,alt_ivr_logging,default_phone_code,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,rec_prompt_count,agent_soundboards,web_loader_phone_length,agent_script,agent_chat_screen_colors,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,agent_push_events,agent_push_url,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,anyone_callback_inactive_lists,enable_gdpr_download_deletion,source_id_display,agent_logout_link,manual_dial_validation,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking,enable_second_script from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $version = $row[0]; @@ -37171,6 +37722,7 @@ if ($ADD==311111111111111) $list_status_modification_confirmation = $row[175]; $sip_event_logging = $row[176]; $call_quota_lead_ranking = $row[177]; + $enable_second_script = $row[178]; if ($pass_hash_enabled > 0) {$pass_hash_enabled = 'ENABLED';} else {$pass_hash_enabled = 'DISABLED';} @@ -37194,7 +37746,7 @@ if ($ADD==311111111111111) echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -37221,7 +37773,7 @@ if ($ADD==311111111111111) $o++; } echo "$languages_list"; - echo "$NWB#settings-default_language$NWE\n"; + echo "$NWB#settings-default_language$NWE\n"; } else { @@ -37234,7 +37786,7 @@ if ($ADD==311111111111111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "$NWB#settings-agent_disable$NWE\n"; echo "\n"; echo "\n"; @@ -37309,7 +37861,7 @@ if ($ADD==311111111111111) echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -37418,6 +37970,8 @@ if ($ADD==311111111111111) echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; @@ -37531,7 +38085,7 @@ if ($ADD==311111111111111) echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; @@ -37539,7 +38093,8 @@ if ($ADD==311111111111111) echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; @@ -37554,7 +38109,7 @@ if ($ADD==311111111111111) trim($Vreports_ARY[$b]); if (preg_match("/$Vreports_ARY[$b]/",$reports_use_slave_db)) {$field_selected = 'SELECTED';} - echo "\n"; + echo "\n"; $b++; } echo "$NWB#settings-reports_use_slave_db$NWE\n"; @@ -37583,7 +38138,7 @@ if ($ADD==311111111111111) if ($report_name!="") { if (in_array($report_name, $custom_rpt_array)) {$x="selected";} else {$x="";} - echo "\n"; + echo "\n"; } } } @@ -37651,11 +38206,11 @@ if ($ADD==311111111111111) while ($colors_to_print > $o) { $rowx=mysqli_fetch_row($rslt); - $colors_list .= "\n"; + $colors_list .= "\n"; $o++; } echo "$colors_list"; - echo "$NWB#settings-admin_screen_colors$NWE\n"; + echo "$NWB#settings-admin_screen_colors$NWE\n"; echo "\n"; + echo "$NWB#settings-agent_screen_colors$NWE\n"; echo "\n"; + echo "$NWB#settings-agent_chat_screen_colors$NWE\n"; echo "\n"; echo "\n"; @@ -37712,7 +38267,7 @@ if ($ADD==311111111111111) trim($Vtables_ARY[$b]); if (preg_match("/$Vtables_ARY[$b]/",$tables_use_alt_log_db)) {$field_selected = 'SELECTED';} - echo "\n"; + echo "\n"; $b++; } echo "$NWB#settings-tables_use_alt_log_db$NWE\n"; @@ -37726,19 +38281,19 @@ if ($ADD==311111111111111) echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -37746,7 +38301,7 @@ if ($ADD==311111111111111) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo ""; echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3&user=$row[0]'\"";} echo ">$row[2]"; echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3&user=$row[0]'\"";} echo ">$row[3]"; - echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3&user=$row[0]'\"";} echo ">$row[4]"; + echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3&user=$row[0]'\"";} echo ">"._QXZ("$row[4]").""; echo ""; echo ""; echo ""; @@ -38554,8 +39109,8 @@ if ($ADD==10) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=34&campaign_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; if ($SSoutbound_autodial_active > 0) { echo ""; @@ -38686,7 +39241,7 @@ if ($ADD==100) {echo "";} else {echo "";} - echo ""; @@ -38805,10 +39360,10 @@ if ($ADD==130) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=331&dl_id=$dl_id_ary[$o]'\"";} echo ">"; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -38902,8 +39457,8 @@ if ($ADD==1000) echo ""; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; echo ""; echo "\n"; @@ -38968,9 +39523,9 @@ if ( ($ADD==1800) and ($SSallow_emails>0) ) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3811&group_id=$row[0]'\"";} echo ">"; echo ""; echo ""; - echo ""; + echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo "\n"; @@ -39028,8 +39583,8 @@ if ( ($ADD==1900) and ($SSallow_chats>0) ) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3911&group_id=$row[0]'\"";} echo ">"; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; echo ""; echo "\n"; @@ -39115,10 +39670,10 @@ if ($ADD==1300) echo ""; echo ""; echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo "\n"; $o++; } @@ -39228,7 +39783,7 @@ if ($ADD==1700) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3711&filter_phone_group_id=$row[0]'\"";} echo ">"; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo "\n"; $groups_printed .= "'$row[0]',"; @@ -39249,7 +39804,7 @@ if ($ADD==1700) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3711&filter_phone_group_id=$row[0]'\"";} echo ">"; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo "\n"; $o++; @@ -39316,8 +39871,8 @@ if ($ADD==10000) echo ""; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; echo "\n"; $o++; @@ -39404,7 +39959,7 @@ if ($ADD==100000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=311111&user_group=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -39445,8 +40000,8 @@ if ($ADD==1000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3111111&script_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; echo "\n"; $o++; @@ -39486,7 +40041,7 @@ if ($ADD==10000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=31111111&lead_filter_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -39732,14 +40287,14 @@ if ($ADD==10000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=31111111111&extension=$row[0]&server_ip=$row[2]'\"";} echo "> - + - + - "; + "; echo "\n"; $o++; } @@ -39780,7 +40335,7 @@ if ($ADD==12000000000) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=32111111111&alias_id=$row[0]'\"";} echo ">"; echo ""; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -39824,8 +40379,8 @@ if ($ADD==13000000000) echo ""; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; $o++; } @@ -39870,8 +40425,8 @@ if ($ADD==100000000000) echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=311111111111&server_id=$row[0]'\"";} echo ">"; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -39913,7 +40468,7 @@ if ($ADD==130000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=331111111111&template_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -39962,11 +40517,11 @@ if ($ADD==140000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=341111111111&carrier_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; $o++; } @@ -40012,10 +40567,10 @@ if ($ADD==150000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=351111111111&tts_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo ""; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -40060,9 +40615,9 @@ if ($ADD==160000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=361111111111&moh_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; echo "\n"; $o++; } @@ -40106,11 +40661,11 @@ if ($ADD==170000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=371111111111&voicemail_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; $o++; } @@ -40151,8 +40706,8 @@ if ($ADD==180000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=381111111111&label_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "\n"; $o++; } @@ -40195,7 +40750,7 @@ if ($ADD==182000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=382111111111&colors_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -40224,7 +40779,7 @@ if ($ADD==182000000000) } echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -40329,9 +40884,9 @@ if ($ADD==192000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=392111111111&container_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; + echo ""; echo ""; - echo ""; + echo ""; echo "\n"; $o++; } @@ -40372,7 +40927,7 @@ if ($ADD==193000000000) $row=mysqli_fetch_row($rslt); $status_group_id[$o] = $row[0]; $status_group_notes[$o] = $row[1]; - $admin_group[$o] = $row[2]; + $admin_group[$o] = (preg_match('/\-\-ALL\-\-/', $row[2]) ? _QXZ("$row[2]") : $row[2]); $o++; } @@ -40434,9 +40989,9 @@ if ($ADD==194000000000) {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=394111111111&report_id=$row[0]'\"";} echo ">"; echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -40482,8 +41037,8 @@ if ($ADD==195000000000) $row=mysqli_fetch_row($rslt); $Xip_list_id[$o] = $row[0]; $ip_list_name[$o] = $row[1]; - $active[$o] = $row[2]; - $admin_group[$o] = $row[3]; + $active[$o] = _QXZ("$row[2]"); + $admin_group[$o] = (preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]); $o++; } @@ -40544,8 +41099,8 @@ if ($ADD==196000000000) $row=mysqli_fetch_row($rslt); $cid_group_id[$o] = $row[0]; $cid_group_notes[$o] = $row[1]; - $cid_group_type[$o] = $row[2]; - $admin_group[$o] = $row[3]; + $cid_group_type[$o] = _QXZ("$row[2]"); + $admin_group[$o] = (preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]); $o++; } @@ -40572,6 +41127,68 @@ if ($ADD==196000000000) } +###################### +# ADD=197000000000 display all VM Message group entries +###################### +if ($ADD==197000000000) + { + echo "
\n"; + echo ""; + + $stmt="SELECT leave_vm_message_group_id,leave_vm_message_group_notes,active,user_group from leave_vm_message_groups where leave_vm_message_group_id='$leave_vm_message_group_id' $LOGadmin_viewable_groupsSQL;"; + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + $leave_vm_message_group_id = $row[0]; + $leave_vm_message_group_notes = $row[1]; + $active = $row[2]; + $user_group = (preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]); + + echo "
"._QXZ("MODIFY A VM MESSAGE GROUP RECORD").": $leave_vm_message_group_id\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + echo "
\n"; + echo "\n"; + echo "\n"; + + echo "\n"; + + echo "\n"; + + echo "\n"; + + echo "\n"; + + echo "\n"; + echo "
"._QXZ("VM Message Group ID").": $leave_vm_message_group_id
"._QXZ("VM Message Group Notes").": $NWB#vm_message_groups$NWE
"._QXZ("Admin User Group").": $NWB#vm_message_groups$NWE
"._QXZ("Active").": $NWB#vm_message_groups$NWE
"._QXZ("Audio Files").": \n"; + echo ""; + ##### get files listing for rank/delete options + $stmt="SELECT audio_filename,audio_name,rank,time_start,time_end from leave_vm_message_groups_entries where leave_vm_message_group_id='$leave_vm_message_group_id' order by rank;"; + $rsltx=mysql_to_mysqli($stmt, $link); + $vmmgfiles_to_print = mysqli_num_rows($rsltx); + $ranks = ($vmmgfiles_to_print + 2); + $o=0; + if ($vmmgfiles_to_print > 0) + {echo "\n";} + while ($vmmgfiles_to_print > $o) + { + $rowx=mysqli_fetch_row($rsltx); + echo ""; + } + if ($o < 1) {echo "\n";} + + echo "
"._QXZ("Rank")."   "._QXZ("Time Range").""._QXZ("Display")."   "._QXZ("File name")."
"; + echo "   \n"; + echo " - "; + echo "   "; + echo ""; + + echo ""; + echo ""; + + echo "   $rowx[0] - "._QXZ("DELETE").""; + $o++; + echo "
"._QXZ("No Audio Files Set")."
"._QXZ("Add An Audio File").": "._QXZ("audio chooser")." $NWB#vm_message_groups$NWE
\n"; + echo ""._QXZ("Display Name").":   "._QXZ("Time Range").": "._QXZ("to")." \n"; + echo "
\n"; + + echo "
\n"; + + echo "

"._QXZ("CAMPAIGNS USING THIS VM MESSAGE GROUP").":
\n"; + echo "\n"; + + $stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where leave_vm_message_group_id='$leave_vm_message_group_id' $LOGallowed_campaignsSQL;"; + $rslt=mysql_to_mysqli($stmt, $link); + $camps_to_print = mysqli_num_rows($rslt); + $o=0; + while ($camps_to_print > $o) + { + $row=mysqli_fetch_row($rslt); + echo "\n"; + $o++; + } + echo "
$row[0] $row[1]

\n"; + + if ($LOGast_delete_phones > 0) + { + echo "

"._QXZ("DELETE VM MESSAGE GROUP ENTRY")."\n"; + } + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) + { + echo "

"._QXZ("Click here to see Admin changes to this VM Mesage Group entry")."
\n"; + } + } + else + { + echo _QXZ("You do not have permission to view this page")."\n"; + exit; + } + } + + ###################### # ADD=371111111111 modify voicemail box in the system ###################### @@ -35697,7 +36248,7 @@ if ($ADD==381111111111) echo "
"._QXZ("Admin User Group").": $NWB#screen_labels-user_group$NWE
"._QXZ("Hide Label in Call Logs").": $NWB#screen_labels-label_hide_field_logs$NWE
"._QXZ("Admin User Group").": $NWB#screen_colors-user_group$NWE
"._QXZ("Menu Background").": $NWB#screen_colors-menu_background$NWE
"._QXZ("Admin User Group").": $NWB#settings_containers-user_group$NWE
"._QXZ("Admin User Group").": $NWB#status_groups$NWE
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
"._QXZ("Report Name").": $NWB#auto_reports-report_name$NWE
"._QXZ("Admin User Group").": $NWB#auto_reports-user_group$NWE
"._QXZ("Run Server").": $NWB#ip_lists-active$NWE
"._QXZ("Admin User Group").": $NWB#ip_lists-user_group$NWE
"._QXZ("IP Addresses").":

("._QXZ("one ip address per line only").")
$NWB#ip_lists-ip_address$NWE
"._QXZ("CID Group Notes").": $NWB#cid_groups$NWE
"._QXZ("CID Group Type").": $cid_group_type$NWB#cid_groups$NWE
"._QXZ("CID Group Type").": "._QXZ("$cid_group_type")."$NWB#cid_groups$NWE
"._QXZ("Admin User Group").": $NWB#cid_groups$NWE
"._QXZ("DB Schema Update Date").": $db_schema_update_date
"._QXZ("Password Encryption").": $pass_hash_enabled - $pass_key - $pass_cost
"._QXZ("Password Encryption").": "._QXZ("$pass_hash_enabled")." - $pass_key - $pass_cost
"._QXZ("Auto User-add Value").": $auto_user_add_value
"._QXZ("Recording Prompt Count").": $rec_prompt_count
"._QXZ("Install Date").": $install_date
"._QXZ("Clear Frozen Calls").": $NWB#settings-frozen_server_call_clear$NWE
"._QXZ("Allow SIPSAK Messages").": $NWB#settings-allow_sipsak_messages$NWE
"._QXZ("Agent Only Callback Campaign Lock").": $NWB#settings-agentonly_callback_campaign_lock$NWE
"._QXZ("Callback Time 24 Hours").": $NWB#settings-callback_time_24hour$NWE
"._QXZ("Anyone Callback Inactive Lists").": $NWB#settings-anyone_callback_inactive_lists$NWE
"._QXZ("Anyone Callback Inactive Lists").": $NWB#settings-anyone_callback_inactive_lists$NWE
"._QXZ("Central Sound Control Active").": $NWB#settings-sounds_central_control_active$NWE
"._QXZ("Sounds Web Server").": $NWB#settings-sounds_web_server$NWE
"._QXZ("Enable Third Webform").": $NWB#settings-enable_third_webform$NWE
"._QXZ("Enable Second Script Tab").": $NWB#settings-enable_second_script$NWE
"._QXZ("Enable TTS Integration").": $NWB#settings-enable_tts_integration$NWE
"._QXZ("Enable CallCard").": $NWB#settings-callcard_enabled$NWE
"._QXZ("Enable Automated Reports").": $NWB#settings-enable_auto_reports$NWE
"._QXZ("First Login Trigger").": $first_login_trigger   $NWB#settings-first_login_trigger$NWE
"._QXZ("First Login Trigger").": "._QXZ("$first_login_trigger")."   $NWB#settings-first_login_trigger$NWE
"._QXZ("Default Phone Registration Password").": $NWB#settings-default_phone_registration_password$NWE     "._QXZ("Strength").":
"._QXZ("Default Server Password").": $NWB#settings-default_server_password$NWE     "._QXZ("Strength").":
"._QXZ("Report Default Format").": $NWB#settings-report_default_format$NWE
"._QXZ("Report Default Format").": $NWB#settings-report_default_format$NWE
"._QXZ("Slave Database Server").": $NWB#settings-slave_db_server$NWE
"._QXZ("Agent Screen Colors").": $NWB#settings-agent_screen_colors$NWE
"._QXZ("Agent Chat Screen Colors").": $NWB#settings-agent_chat_screen_colors$NWE
"._QXZ("QC Features Active").": $NWB#settings-qc_features_active$NWE
"._QXZ("QC Last Pull Time").": $qc_last_pull_time
"._QXZ("QueueMetrics Log ID").": $NWB#settings-queuemetrics_log_id$NWE
"._QXZ("QueueMetrics EnterQueue Prepend").": $NWB#settings-queuemetrics_eq_prepend$NWE
"._QXZ("QueueMetrics Login-Out").": $NWB#settings-queuemetrics_loginout$NWE
"._QXZ("QueueMetrics CallStatus").": $NWB#settings-queuemetrics_callstatus$NWE
"._QXZ("QueueMetrics Addmember Enabled").": $NWB#settings-queuemetrics_addmember_enabled$NWE
"._QXZ("QueueMetrics Pause Type Logging").": $NWB#settings-queuemetrics_pause_type$NWE
"._QXZ("QueueMetrics Phone Environment Phone Append").": $NWB#settings-queuemetrics_pe_phone_append$NWE
"._QXZ("QueueMetrics Hold Call Log").": $NWB#settings-queuemetrics_record_hold$NWE
"._QXZ("QueueMetrics Socket Send").": $NWB#settings-queuemetrics_socket$NWE
"._QXZ("QueueMetrics Socket Send").": $NWB#settings-queuemetrics_socket$NWE
"._QXZ("QueueMetrics Socket Send URL").": $NWB#settings-queuemetrics_socket_url$NWE
"._QXZ("Enable Vtiger Integration").": $NWB#settings-enable_vtiger_integration$NWE\n"; @@ -38107,7 +38662,7 @@ if ($ADD==341111111111111) echo "\n"; echo "$rowx[0]$rowx[2]"._QXZ("$rowx[2]")."         \n"; echo "   \n"; @@ -38482,7 +39037,7 @@ if ($ADD=="0A") echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3&user=$row[0]'\"";} echo ">$row[1] 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=3&user=$row[0]'\"";} echo ">"._QXZ("MODIFY")." 0) {echo " onclick=\"window.document.location='./user_stats.php?user=$row[0]'\"";} echo ">"._QXZ("STATS")." 0) {echo " onclick=\"window.document.location='./user_status.php?user=$row[0]'\"";} echo ">"._QXZ("STATUS")."
$row[0]   $row[1]   $row[2]   $row[7]   "._QXZ("$row[2]")."   ".(preg_match('/\-\-ALL\-\-/', $row[7]) ? _QXZ("$row[7]") : $row[7])."   "._QXZ("$row[3]")."   $row[9] $row[9] $row[4]"; + echo " "._QXZ("$row[4]"); if ($row[8] < $EXPtestdate) {echo " "._QXZ("EXP")."";} echo "
$dl_id_ary[$o] $dl_name_ary[$o] $last_run_ary[$o] $dl_active_ary[$o] "._QXZ("$dl_active_ary[$o]")." $list_id_ary[$o] $ingroups_ct $group_group_ary[$o]".(preg_match('/\-\-ALL\-\-/', $group_group_ary[$o]) ? _QXZ("$group_group_ary[$o]") : $group_group_ary[$o]).""._QXZ("MODIFY")."
$group_name_ary[$o] $group_priority_ary[$o] $icbq_LIVE_count $group_active_ary[$o] $allowed_campaigns_warning $group_group_ary[$o] "._QXZ("$group_active_ary[$o]")." $allowed_campaigns_warning ".(preg_match('/\-\-ALL\-\-/', $group_group_ary[$o]) ? _QXZ("$group_group_ary[$o]") : $group_group_ary[$o])." $group_time_ary[$o]  "._QXZ("MODIFY")."
$row[0] $row[1] $row[2] $row[3] $allowed_campaigns_warning "._QXZ("$row[3]")." $allowed_campaigns_warning $unhandled_emails $row[6] ".(preg_match('/\-\-ALL\-\-/', $row[6]) ? _QXZ("$row[6]") : $row[6])." $row[4]  "._QXZ("MODIFY")."
$row[0] $row[1] $row[2] $row[3] $allowed_campaigns_warning $row[6] "._QXZ("$row[3]")." $allowed_campaigns_warning ".(preg_match('/\-\-ALL\-\-/', $row[6]) ? _QXZ("$row[6]") : $row[6])." $row[4]  "._QXZ("MODIFY")."
$row[1] $row[2] $row[3] $row[4] $row[7] $row[5] $row[6] "._QXZ("$row[4]")." ".(preg_match('/\-\-ALL\-\-/', $row[7]) ? _QXZ("$row[7]") : $row[7])." "._QXZ("$row[5]")." "._QXZ("$row[6]").""._QXZ("MODIFY")."
$row[0] $row[1] $row[2] $row[4] ".(preg_match('/\-\-ALL\-\-/', $row[4]) ? _QXZ("$row[4]") : $row[4])." $row[3]"._QXZ("MODIFY")."
$row[0] $row[1] $row[2] $row[4] ".(preg_match('/\-\-ALL\-\-/', $row[4]) ? _QXZ("$row[4]") : $row[4])." $row[3]"._QXZ("MODIFY")."
$row[2] $row[3] $row[4] $row[5] $row[6] ".(preg_match('/^NONE$/', $row[5]) ? _QXZ("$row[5]") : $row[5])." "._QXZ("$row[6]")." $row[7]"._QXZ("MODIFY")."
$row[0] $row[1] $row[2] "._QXZ("$row[2]").""._QXZ("MODIFY")."
$row[0] $row[1] $row[2] $row[3] "._QXZ("$row[2]")." ".(preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3])."  "._QXZ("MODIFY")."
$row[0] $row[1] $row[2] ".(preg_match('/\-\-ALL\-\-/', $row[2]) ? _QXZ("$row[2]") : $row[2]).""._QXZ("MODIFY")."
$row[0] $row[1]$row[2]"._QXZ("$row[2]")." $row[3] $row[4]$row[5]"._QXZ("$row[5]")." $row[6] $row[7] $row[8]$row[9]"._QXZ("$row[9]").""._QXZ("MODIFY")." | "._QXZ("STATS")."
$row[0]$row[1]$row[2]$row[3]"._QXZ("$row[3]").""._QXZ("MODIFY")."
$row[1]$row[2]$row[3]$row[4]$row[5]"._QXZ("$row[4]").""._QXZ("$row[5]").""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]$row[3]$row[7]"._QXZ("$row[3]").""._QXZ("$row[7]")."$row[4]$row[5]$row[6]
$row[0]$row[1]$row[2]"._QXZ("$row[2]").""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]$row[3]".(preg_match('/[A-Z]/', $row[2]) ? _QXZ("$row[2]") : $row[2])."".(!preg_match('/^SIP|IAX2/', $row[3]) ? _QXZ("$row[3]") : $row[3])."$row[4]$row[5]$row[6]"._QXZ("$row[5]").""._QXZ("$row[6]").""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]"._QXZ("$row[2]")."$row[4]$row[3]$row[5]".(preg_match('/\-\-ALL\-\-/', $row[5]) ? _QXZ("$row[5]") : $row[5]).""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]$row[3]$row[4]"._QXZ("$row[2]").""._QXZ("$row[3]")."".(preg_match('/\-\-ALL\-\-/', $row[4]) ? _QXZ("$row[4]") : $row[4]).""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]"._QXZ("$row[2]")."$row[3]$row[4]$row[5]$row[6]"._QXZ("$row[5]")."".(preg_match('/\-\-ALL\-\-/', $row[6]) ? _QXZ("$row[6]") : $row[6]).""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]$row[3]"._QXZ("$row[2]")."".(preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]).""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]"._QXZ("$row[2]")."       $row[3]".(preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]).""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]"._QXZ("$row[2]")."".strlen($row[4])."$row[3]".(preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]).""._QXZ("MODIFY")."
$row[0]$row[1]$row[2]$row[3]$row[4]"._QXZ("$row[2]").""._QXZ("$row[3]")."".(preg_match('/\-\-ALL\-\-/', $row[4]) ? _QXZ("$row[4]") : $row[4])."$row[5]$row[6]$row[7]
"; echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo "\n"; $logs_printed .= "'$row[0]',"; @@ -41764,7 +42381,7 @@ if ($ADD==999999) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -41949,6 +42566,10 @@ if ($ADD==999998) echo "\n"; echo "\n"; } + echo " 0) {echo " onclick=\"window.document.location='admin.php?ADD=197000000000';\"";} echo ">\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
\n"; + echo " "; + + $stmt="SELECT leave_vm_message_group_id,leave_vm_message_group_notes,active,user_group from leave_vm_message_groups $whereLOGadmin_viewable_groupsSQL order by leave_vm_message_group_id;"; + $rslt=mysql_to_mysqli($stmt, $link); + $vmm_groups_to_print = mysqli_num_rows($rslt); + + echo "
"._QXZ("VM MESSAGE GROUP LISTINGS").":\n"; + echo "
\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + + $o=0; + $leave_vm_message_group_id = $MT; + $leave_vm_message_group_notes = $MT; + $VMMGactive = $MT; + $admin_group = $MT; + + while ($vmm_groups_to_print > $o) + { + $row=mysqli_fetch_row($rslt); + $leave_vm_message_group_id[$o] = $row[0]; + $leave_vm_message_group_notes[$o] = $row[1]; + $VMMGactive[$o] = _QXZ("$row[2]"); + $admin_group[$o] = (preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]); + $o++; + } + + $o=0; + while ($vmm_groups_to_print > $o) + { + $stmt="SELECT count(*) from leave_vm_message_groups_entries where leave_vm_message_group_id=\"$leave_vm_message_group_id[$o]\";"; + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + if (preg_match('/1$|3$|5$|7$|9$/i', $o)) + {$bgcolor='class="records_list_x"';} + else + {$bgcolor='class="records_list_y"';} + echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?ADD=397111111111&leave_vm_message_group_id=$leave_vm_message_group_id[$o]'\"";} echo ">"; + echo ""; + echo ""; + echo ""; + echo ""; + echo "\n"; + $o++; + } + + echo "
"._QXZ("VMM GROUP ID").""._QXZ("NOTES").""._QXZ("ACTIVE").""._QXZ("GROUP").""._QXZ("MSGS").""._QXZ("MODIFY")."
$leave_vm_message_group_id[$o] $leave_vm_message_group_notes[$o] "._QXZ("$VMMGactive[$o]")." $admin_group[$o] $row[0]"._QXZ("MODIFY")."
\n"; + } + + ###################### # ADD=1000000000000 display all conferences ###################### @@ -40830,11 +41447,11 @@ if ($ADD==700000000000000) echo "
$row[1] $row[2] $row[3] $row[4] $row[5] "._QXZ("$row[4]")." "._QXZ("$row[5]")." $row[6] $row[8] $row[7] "._QXZ("$row[7]")." "._QXZ("GOTO")."
$server_id[$o]$server_description[$o]$server_ip[$o]$active[$o] / $active_asterisk_server[$o] / $active_agent_login_server[$o]"._QXZ("$active[$o]")." / "._QXZ("$active_asterisk_server[$o]")." / "._QXZ("$active_agent_login_server[$o]")."$sysload[$o] - $cpu%$channels_total[$o]$agnt "._QXZ("Audio Soundboards")."
"._QXZ("VM Message Groups")."
\n"; echo "\n"; @@ -42680,10 +43301,10 @@ if ($ADD==999990) echo " "; # Padding echo ""; echo ""; - echo "  Voicemail Box  \n"; - echo "  New  \n"; - echo "  Old  \n"; - echo "  Total  \n"; + echo "  "._QXZ("Voicemail Box")."  \n"; + echo "  "._QXZ("New")."  \n"; + echo "  "._QXZ("Old")."  \n"; + echo "  "._QXZ("Total")."  \n"; echo "\n"; while($row=mysqli_fetch_array($rslt)) diff --git a/www/vicidial/admin_NANPA_updater.php b/www/vicidial/admin_NANPA_updater.php index ae255a3f..4fb668b1 100644 --- a/www/vicidial/admin_NANPA_updater.php +++ b/www/vicidial/admin_NANPA_updater.php @@ -448,23 +448,23 @@ if (mysqli_num_rows($schedule_rslt)>0 || (mysqli_num_rows($running_rslt)>0)) { { $data_in=explode("--cellphone-list-id=", $trigger_array[$q]); $cellphone_list_id=trim($data_in[1]); - $conversion_lists.="Cellphone list: $cellphone_list_id
"; + $conversion_lists.=_QXZ("Cellphone list").": $cellphone_list_id
"; } if (preg_match('/--landline-list-id=/', $trigger_array[$q])) { $data_in=explode("--landline-list-id=", $trigger_array[$q]); $landline_list_id=trim($data_in[1]); - $conversion_lists.="Landline list: $landline_list_id
"; + $conversion_lists.=_QXZ("Landline list").": $landline_list_id
"; } if (preg_match('/--invalid-list-id=/', $trigger_array[$q])) { $data_in=explode("--invalid-list-id=", $trigger_array[$q]); $invalid_list_id=trim($data_in[1]); - $conversion_lists.="Invalid list: $invalid_list_id
"; + $conversion_lists.=_QXZ("Invalid list").": $invalid_list_id
"; } } - if (strlen($vl_update_field)==0) {$vl_update_field="**NONE**";} - if (strlen($conversion_lists)==0) {$conversion_lists="**NONE**";} + if (strlen($vl_update_field)==0) {$vl_update_field="**"._QXZ("NONE")."**";} + if (strlen($conversion_lists)==0) {$conversion_lists="**"._QXZ("NONE")."**";} echo ""; echo "$row[trigger_time]
($row[time_until_execution] "._QXZ("until run time").")"; echo "$lists"; diff --git a/www/vicidial/admin_bulk_tools.php b/www/vicidial/admin_bulk_tools.php index f4f93348..40880a86 100644 --- a/www/vicidial/admin_bulk_tools.php +++ b/www/vicidial/admin_bulk_tools.php @@ -137,7 +137,7 @@ if ($num_rows > 0) } else { - echo "There are no system settings. You might want to look into that."; + echo _QXZ("There are no system settings. You might want to look into that."); exit; } ##### END SETTINGS LOOKUP ##### @@ -729,7 +729,7 @@ elseif ($form_to_run == "ACCIDDELETEselect") $i++; } echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo ""; @@ -1610,7 +1610,7 @@ elseif ($form_to_run == "BULKUSERSDELETEconfirmed")### BULK USER DELETE CONFIRM #### Build forms else { - echo "

These are tools for adding, copying and deleting DIDs, Campaign AC-CIDs and Users.
Adding and copying are limited to $INSERTmax_limit per run.

"; + echo "

"._QXZ("These are tools for adding, copying and deleting DIDs, Campaign AC-CIDs and Users.")."
"._QXZ("Adding and copying are limited to")." $INSERTmax_limit "._QXZ("per run").".

"; ### DID - ADD if ( $modify_dids < 1 ) { @@ -1655,7 +1655,7 @@ else echo "\n"; echo ""._QXZ("DIDs to insert").":"; - echo "\n"; + echo "\n"; echo "
\n"; } @@ -1699,7 +1699,7 @@ else $i++; } echo "\n"; - echo "\n"; + echo "\n"; echo "
\n"; echo ""; } @@ -1739,7 +1739,7 @@ else $row = mysqli_fetch_row($SQL_rslt); $ACCIDcampaigns_to_copy[$g] = $row[0]; $ACCIDcampaigns_to_copy_names[$g] = $row[1]; - $ACCIDcampaigns_to_copy_type[$g] = 'AREACODE'; + $ACCIDcampaigns_to_copy_type[$g] = _QXZ('AREACODE'); $i++; $g++; } @@ -1753,7 +1753,7 @@ else $row = mysqli_fetch_row($SQL_rslt); $ACCIDcampaigns_to_copy[$g] = $row[0]; $ACCIDcampaigns_to_copy_names[$g] = $row[1]; - $ACCIDcampaigns_to_copy_type[$g] = $row[2]; + $ACCIDcampaigns_to_copy_type[$g] = _QXZ("$row[2]"); $i++; $g++; } @@ -1769,13 +1769,13 @@ else } echo "\n"; - echo ""._QXZ("Active?").":\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo ""._QXZ("AC-CIDs").":\n"; - echo "\n"; + echo "\n"; echo "\n"; echo ""; } @@ -1811,7 +1811,7 @@ else $row = mysqli_fetch_row($SQL_rslt); $ACCIDdelete_campaign_selection[$g] = $row[0]; $ACCIDdelete_campaign_name[$g] = $row[1]; - $ACCIDdelete_campaign_type[$g] = 'AREACODE'; + $ACCIDdelete_campaign_type[$g] = _QXZ('AREACODE'); $i++; $g++; } @@ -1825,7 +1825,7 @@ else $row = mysqli_fetch_row($SQL_rslt); $ACCIDdelete_campaign_selection[$g] = $row[0]; $ACCIDdelete_campaign_name[$g] = $row[1]; - $ACCIDdelete_campaign_type[$g] = $row[2]; + $ACCIDdelete_campaign_type[$g] = _QXZ("$row[2]"); $i++; $g++; } @@ -1845,7 +1845,7 @@ else echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo ""; } @@ -1899,7 +1899,7 @@ else echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo ""; } @@ -1971,7 +1971,7 @@ else } echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "

"._QXZ("Version").": $version "._QXZ("Build").": $build

"; diff --git a/www/vicidial/admin_campaign_multi_alt.php b/www/vicidial/admin_campaign_multi_alt.php index dd1737e6..2fad86b9 100644 --- a/www/vicidial/admin_campaign_multi_alt.php +++ b/www/vicidial/admin_campaign_multi_alt.php @@ -415,8 +415,8 @@ if ($action == "BLANK") echo "\n"; - echo ""._QXZ("List Order Randomize").": \n"; - echo ""._QXZ("List Order Secondary").": \n"; + echo ""._QXZ("List Order Randomize").": \n"; + echo ""._QXZ("List Order Secondary").": \n"; echo "\n"; echo "\n"; diff --git a/www/vicidial/admin_email_accounts.php b/www/vicidial/admin_email_accounts.php index 8a99528d..74088882 100644 --- a/www/vicidial/admin_email_accounts.php +++ b/www/vicidial/admin_email_accounts.php @@ -653,15 +653,15 @@ else if ($eact == "ADD") echo ""._QXZ("Email Account ID").": $NWB#email_accounts-email_account_id$NWE\n"; echo ""._QXZ("Email Account Name").": $NWB#email_accounts-email_account_name$NWE\n"; - echo ""._QXZ("Active").": $NWB#email_accounts-email_account_active$NWE\n"; + echo ""._QXZ("Active").": $NWB#email_accounts-email_account_active$NWE\n"; echo ""._QXZ("Email Account Description").": $NWB#email_accounts-email_account_description$NWE\n"; - echo ""._QXZ("Email Account Type").": $NWB#email_accounts-email_account_type$NWE\n"; + echo ""._QXZ("Email Account Type").": $NWB#email_accounts-email_account_type$NWE\n"; echo ""._QXZ("Admin User Group").": $NWB#email_accounts-admin_user_group$NWE\n"; echo ""._QXZ("Email Account Protocol").": $NWB#email_accounts-protocol$NWE\n"; - echo ""._QXZ("Auth Mode for POP3 protocol only").": $NWB#email_accounts-pop3_auth_mode$NWE\n"; + echo ""._QXZ("Auth Mode for POP3 protocol only").": $NWB#email_accounts-pop3_auth_mode$NWE\n"; echo ""._QXZ("Email Reply-to Address").": $NWB#email_accounts-email_replyto_address$NWE\n"; echo ""._QXZ("Email Account Server").": $NWB#email_accounts-email_account_server$NWE\n"; echo ""._QXZ("Email Account User").": $NWB#email_accounts-email_account_user$NWE\n"; @@ -680,8 +680,8 @@ else if ($eact == "ADD") echo ""._QXZ("Default List ID").": $NWB#email_accounts-default_list_id$NWE\n"; - echo ""._QXZ("In-Group Call Handle Method").": $NWB#email_accounts-call_handle_method$NWE\n"; - echo ""._QXZ("In-Group Agent Search Method").": $NWB#email_accounts-agent_search_method$NWE\n"; + echo ""._QXZ("In-Group Call Handle Method").": $NWB#email_accounts-call_handle_method$NWE\n"; + echo ""._QXZ("In-Group Agent Search Method").": $NWB#email_accounts-agent_search_method$NWE\n"; echo ""._QXZ("In-Group List ID").": $NWB#email_accounts-ingroup_list_id$NWE\n"; echo ""._QXZ("In-Group Campaign ID").": $email_account_id$NWB#email_accounts-email_account_id$NWE\n"; echo ""._QXZ("Email Account Name").": $NWB#email_accounts-email_account_name$NWE\n"; echo ""._QXZ("Active").": $NWB#email_accounts-email_account_active$NWE\n"; + echo ""; + echo "$NWB#email_accounts-email_account_active$NWE\n"; echo ""._QXZ("Email Account Description").": $NWB#email_accounts-email_account_description$NWE\n"; - echo ""._QXZ("Email Account Type").": $NWB#email_accounts-email_account_type$NWE\n"; + echo ""._QXZ("Email Account Type").": $NWB#email_accounts-email_account_type$NWE\n"; echo ""._QXZ("Admin User Group").": $NWB#email_accounts-admin_user_group$NWE\n"; echo ""._QXZ("Email Account Protocol").": $NWB#email_accounts-protocol$NWE\n"; - echo ""._QXZ("Auth Mode for POP3 protocol only").": $NWB#email_accounts-pop3_auth_mode$NWE\n"; + echo ""._QXZ("Auth Mode for POP3 protocol only").": $NWB#email_accounts-pop3_auth_mode$NWE\n"; echo ""._QXZ("Email Reply-to Address").": $NWB#email_accounts-email_replyto_address$NWE\n"; echo ""._QXZ("Email Account Server").": $NWB#email_accounts-email_account_server$NWE\n"; echo ""._QXZ("Email Account User").": $NWB#email_accounts-email_account_user$NWE\n"; @@ -867,8 +867,8 @@ else if (($eact=="DELETE" || $eact=="UPDATE") && $email_account_id) echo ""._QXZ("Default List ID").": $NWB#email_accounts-default_list_id$NWE\n"; ############### - echo ""._QXZ("In-Group Call Handle Method").": $NWB#email_accounts-call_handle_method$NWE\n"; - echo ""._QXZ("In-Group Agent Search Method").": $NWB#email_accounts-agent_search_method$NWE\n"; + echo ""._QXZ("In-Group Call Handle Method").": $NWB#email_accounts-call_handle_method$NWE\n"; + echo ""._QXZ("In-Group Agent Search Method").": $NWB#email_accounts-agent_search_method$NWE\n"; echo ""._QXZ("In-Group List ID").": $NWB#email_accounts-ingroup_list_id$NWE\n"; echo ""._QXZ("In-Group Campaign ID").": \n"; echo "$UUgroups_list"; - echo "\n"; + echo "\n"; echo "$NWB#languages-user_group$NWE\n"; echo ""._QXZ("Active").": $NWB#languages-english_text$NWE\n"; - echo "   RELOAD PAGE\n"; + echo "   "._QXZ("RELOAD PAGE")."\n"; echo "\n"; echo "


\n"; @@ -1503,11 +1503,11 @@ if ($ADD==163000000000) while(strlen($row[1]) > 40) {$row[1] = substr("$row[1]", 0, -1);} if(strlen($row[1]) > 37) {$row[1] = "$row[1]...";} $Alanguage_id[$o] = $row[0]; - $Alanguage_description[$o] = $row[1]; + $Alanguage_description[$o] = _QXZ("$row[1]"); $Alanguage_code[$o] = $row[2]; - $Auser_group[$o] = $row[3]; + $Auser_group[$o] = (preg_match('/\-\-ALL\-\-/', $row[3]) ? _QXZ("$row[3]") : $row[3]); $Amodify_date[$o] = $row[4]; - $Aactive[$o] = $row[5]; + $Aactive[$o] = _QXZ("$row[5]"); $o++; } diff --git a/www/vicidial/admin_listloader_fourth_gen.php b/www/vicidial/admin_listloader_fourth_gen.php index 20a5454e..c7ebdf7b 100644 --- a/www/vicidial/admin_listloader_fourth_gen.php +++ b/www/vicidial/admin_listloader_fourth_gen.php @@ -742,11 +742,11 @@ if ( (!$OK_to_process) or ( ($leadfile) and ($file_layout!="standard" && $file_l
diff --git a/www/vicidial/admin_lists_custom.php b/www/vicidial/admin_lists_custom.php index ef6a8987..31ecfcd8 100644 --- a/www/vicidial/admin_lists_custom.php +++ b/www/vicidial/admin_lists_custom.php @@ -1161,7 +1161,7 @@ if ( ($action == "MODIFY_CUSTOM_FIELDS") and ($list_id > 99) ) echo " "._QXZ("$A_field_type[$o]")."     "; if ($hide_enc < 1) { - echo " $A_field_encrypt[$o]     "; + echo " "._QXZ("$A_field_encrypt[$o]")."     "; } echo " $A_field_cost[$o]     \n"; @@ -1357,12 +1357,12 @@ if ( ($action == "MODIFY_CUSTOM_FIELDS") and ($list_id > 99) ) if ($A_field_type[$o]=='HIDDEN') { if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';} - $field_HTML .= "-- HIDDEN --\n"; + $field_HTML .= "-- "._QXZ("HIDDEN")." --\n"; } if ($A_field_type[$o]=='HIDEBLOB') { if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';} - $field_HTML .= "-- HIDDEN --\n"; + $field_HTML .= "-- "._QXZ("HIDDEN")." --\n"; } if ($A_field_type[$o]=='SCRIPT') { @@ -1500,7 +1500,7 @@ if ( ($action == "MODIFY_CUSTOM_FIELDS") and ($list_id > 99) ) echo ""._QXZ("Field Name Position")." $A_field_rank[$o]: $NWB#lists_fields-name_position$NWE \n"; echo ""._QXZ("Field Description")." $A_field_rank[$o]: $NWB#lists_fields-field_description$NWE \n"; echo ""._QXZ("Field Help")." $A_field_rank[$o]: $NWB#lists_fields-field_help$NWE \n"; @@ -1534,33 +1534,33 @@ if ( ($action == "MODIFY_CUSTOM_FIELDS") and ($list_id > 99) ) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " $NWB#lists_fields-field_required$NWE \n"; - echo ""._QXZ("Field Duplicate")." $A_field_rank[$o]: $A_field_duplicate[$o] $NWB#lists_fields-field_duplicate$NWE \n"; + echo ""._QXZ("Field Duplicate")." $A_field_rank[$o]: "._QXZ("$A_field_duplicate[$o]")." $NWB#lists_fields-field_duplicate$NWE \n"; if ($hide_enc < 1) { if ( ($custom_records_count < 1) and ( ($A_field_type[$o]=='TEXT') or ($A_field_type[$o]=='HIDDEN') or ($A_field_type[$o]=='READONLY') or ($A_field_type[$o]=='HIDEBLOB') or ($A_field_type[$o]=='AREA') or ($A_field_type[$o]=='DATE') or ($A_field_type[$o]=='TIME') ) ) { echo ""._QXZ("Field Encrypt")." $A_field_rank[$o]: $NWB#lists_fields-field_encrypt$NWE \n"; } else { - echo ""._QXZ("Field Encrypt")." $A_field_rank[$o]: $A_field_encrypt[$o]\n"; + echo ""._QXZ("Field Encrypt")." $A_field_rank[$o]: "._QXZ("$A_field_encrypt[$o]")."\n"; echo " $NWB#lists_fields-field_encrypt$NWE \n"; } echo ""._QXZ("Field Show Hide").": $NWB#lists_fields-field_show_hide$NWE \n"; } else @@ -1644,17 +1644,17 @@ if ( ($action == "MODIFY_CUSTOM_FIELDS") and ($list_id > 99) ) if ($hide_enc < 1) { echo ""._QXZ("Field Encrypt").": $NWB#lists_fields-field_encrypt$NWE \n"; echo ""._QXZ("Field Show Hide").": $NWB#lists_fields-field_show_hide$NWE \n"; } else @@ -1730,7 +1730,7 @@ if ($action == "LIST") {$bgcolor='class="records_list_y"';} echo " 0) {echo " onclick=\"window.document.location='$PHP_SELF?action=MODIFY_CUSTOM_FIELDS&list_id=$A_list_id[$o]'\"";} echo ">$A_list_id[$o]"; echo " $A_list_name[$o]"; - echo " $A_active[$o]"; + echo " "._QXZ("$A_active[$o]").""; echo " $A_campaign_id[$o]"; echo " $A_list_fields_count[$o]"; echo ""._QXZ("MODIFY FIELDS")."\n"; diff --git a/www/vicidial/admin_phones_bulk_insert.php b/www/vicidial/admin_phones_bulk_insert.php index a0981f9b..b65fd6ee 100644 --- a/www/vicidial/admin_phones_bulk_insert.php +++ b/www/vicidial/admin_phones_bulk_insert.php @@ -406,13 +406,13 @@ if ($action == "BLANK") echo ""; echo " $NWB#admin_phones_bulk_insert-create_alias$NWE \n"; echo ""._QXZ("Alias Suffix").": $NWB#admin_phones_bulk_insert-alias_suffix$NWE \n"; - echo ""._QXZ("Client Protocol").": $NWB#admin_phones_bulk_insert-protocol$NWE \n"; + echo ""._QXZ("Client Protocol").": $NWB#admin_phones_bulk_insert-protocol$NWE \n"; echo ""._QXZ("Local GMT").": ("._QXZ("Do NOT Adjust for DST").") $NWB#admin_phones_bulk_insert-gmt$NWE \n"; echo ""._QXZ("Phone Context").": $NWB#admin_phones_bulk_insert-phone_context$NWE \n"; - echo ""._QXZ("Set As Webphone").": $NWB#admin_phones_bulk_insert-is_webphone$NWE\n"; - echo ""._QXZ("Webphone Dialpad").": $NWB#admin_phones_bulk_insert-webphone_dialpad$NWE\n"; - echo ""._QXZ("Webphone Auto-Answer").": $NWB#admin_phones_bulk_insert-webphone_auto_answer$NWE\n"; - echo ""._QXZ("Use External Server IP").": $NWB#admin_phones_bulk_insert-use_external_server_ip$NWE\n"; + echo ""._QXZ("Set As Webphone").": $NWB#admin_phones_bulk_insert-is_webphone$NWE\n"; + echo ""._QXZ("Webphone Dialpad").": $NWB#admin_phones_bulk_insert-webphone_dialpad$NWE\n"; + echo ""._QXZ("Webphone Auto-Answer").": $NWB#admin_phones_bulk_insert-webphone_auto_answer$NWE\n"; + echo ""._QXZ("Use External Server IP").": $NWB#admin_phones_bulk_insert-use_external_server_ip$NWE\n"; echo ""._QXZ("Template ID").": $NWB#soundboard-active$NWE\n"; echo ""._QXZ("Audio Functions").": $NWB#soundboard-audio_functions$NWE\n"; echo ""._QXZ("Audio Display").": $NWB#soundboard-audio_display$NWE\n"; - echo ""._QXZ("Layout").": $NWB#soundboard-soundboard_layout$NWE   "._QXZ("Columns Limit").": \n"; + echo ""._QXZ("Layout").": $NWB#soundboard-soundboard_layout$NWE   "._QXZ("Columns Limit").": \n"; echo ""._QXZ("Admin User Group").": $NWB#soundboard-user_group$NWE\n"; echo ""._QXZ("Audio Files").": \n"; @@ -1049,11 +1049,11 @@ if ($ADD==362111111111) } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo _QXZ("Original file").":
\n"; echo _QXZ("New file").":
\n"; echo "\n"; -echo "\n"; +echo "\n"; ?> @@ -619,7 +619,7 @@ if ($auth_delete > 0) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; } else { diff --git a/www/vicidial/call_report_export.php b/www/vicidial/call_report_export.php index 1f06b0a6..8ed4af86 100644 --- a/www/vicidial/call_report_export.php +++ b/www/vicidial/call_report_export.php @@ -1494,7 +1494,7 @@ else echo "

\n"; echo ""._QXZ("Export Calls Report"); if ($ivr_export == 'YES') - {echo " IVR";} + {echo " "._QXZ("IVR");} echo "

\n"; echo "
\n"; echo ""; @@ -1588,9 +1588,9 @@ else while ($campaigns_to_print > $o) { if (preg_match("/\|$LISTcampaigns[$o]\|/",$campaign_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1604,9 +1604,9 @@ else while ($groups_to_print > $o) { if (preg_match("/\|$LISTgroups[$o]\|/",$group_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1618,9 +1618,9 @@ else while ($lists_to_print > $o) { if (preg_match("/\|$LISTlists[$o]\|/",$list_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1631,9 +1631,9 @@ else while ($statuses_to_print > $o) { if (preg_match("/\|$LISTstatus[$o]\|/",$list_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1646,9 +1646,9 @@ else while ($user_groups_to_print > $o) { if (preg_match("/\|$LISTuser_groups[$o]\|/",$user_group_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; diff --git a/www/vicidial/call_report_export_carrier.php b/www/vicidial/call_report_export_carrier.php index ef2d60fd..ed9ae3ca 100644 --- a/www/vicidial/call_report_export_carrier.php +++ b/www/vicidial/call_report_export_carrier.php @@ -1451,9 +1451,9 @@ if ($file_exported < 1) while ($campaigns_to_print > $o) { if (preg_match("/\|$LISTcampaigns[$o]\|/",$campaign_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1467,9 +1467,9 @@ if ($file_exported < 1) while ($groups_to_print > $o) { if (preg_match("/\|$LISTgroups[$o]\|/",$group_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1481,9 +1481,9 @@ if ($file_exported < 1) while ($lists_to_print > $o) { if (preg_match("/\|$LISTlists[$o]\|/",$list_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1494,9 +1494,9 @@ if ($file_exported < 1) while ($statuses_to_print > $o) { if (preg_match("/\|$LISTstatus[$o]\|/",$list_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1509,9 +1509,9 @@ if ($file_exported < 1) while ($user_groups_to_print > $o) { if (preg_match("/\|$LISTuser_groups[$o]\|/",$user_group_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; diff --git a/www/vicidial/callbacks_bulk_change.php b/www/vicidial/callbacks_bulk_change.php index c9ffe6c2..4ffb8121 100644 --- a/www/vicidial/callbacks_bulk_change.php +++ b/www/vicidial/callbacks_bulk_change.php @@ -277,7 +277,7 @@ else if (mysqli_num_rows($user_rslt)>0) { $user_row=mysqli_fetch_array($user_rslt); - echo "\t\n"; + echo "\t\n"; } } } @@ -292,7 +292,7 @@ else if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); echo "\n"; $HTML_text.="\n"; $HTML_text.="   "; $HTML_text.="\n"; $HTML_text.="\n"; -$HTML_text.="\n"; +$HTML_text.="\n"; $HTML_text.="           "._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS")."
\n"; $HTML_text.="
\n\n"; $HTML_text.="\n"; diff --git a/www/vicidial/fcstats_detail.php b/www/vicidial/fcstats_detail.php index 72bead64..216d7b66 100644 --- a/www/vicidial/fcstats_detail.php +++ b/www/vicidial/fcstats_detail.php @@ -532,7 +532,7 @@ $HTML_head.=""._QXZ("$report_name")." $NWB#fcstats$NWE\n"; $HTML_text.="
\n"; -$HTML_text.="\n"; echo "\n"; diff --git a/www/vicidial/graphcanvas.inc b/www/vicidial/graphcanvas.inc index f7c01037..440eaeaa 100644 --- a/www/vicidial/graphcanvas.inc +++ b/www/vicidial/graphcanvas.inc @@ -73,11 +73,11 @@ var h = Math.floor(d / 3600); var m = Math.floor(d % 3600 / 60); var s = Math.fl type: 'pie', options: {tooltips: {callbacks: {label: function(tooltipItem, data) {var value = data.datasets[0].data[tooltipItem.index]; var label = data.labels[tooltipItem.index]; var percentage = Math.round(value / totalSessions * 100); return label + ' ' + percentage + '%';}}},}, data: topBrowsers */ - $graphCanvas.="\n"; - $graphCanvas.="\n"; - $graphCanvas.="\n"; - $graphCanvas.="\n"; - $graphCanvas.="\n"; + $graphCanvas.="\n"; + $graphCanvas.="\n"; + $graphCanvas.="\n"; + $graphCanvas.="\n"; + $graphCanvas.="\n"; $graphCanvas.="\n"; $graphCanvas.=""; diff --git a/www/vicidial/group_hourly_stats.php b/www/vicidial/group_hourly_stats.php index 4fbfcd47..54f9a3b3 100644 --- a/www/vicidial/group_hourly_stats.php +++ b/www/vicidial/group_hourly_stats.php @@ -366,7 +366,7 @@ while ($groups_to_print > $o) $o++; } echo "$groups_list
\n"; -echo _QXZ("status").":   ("._QXZ("example").": XFER)
\n"; +echo _QXZ("status").":   ("._QXZ("example").": "._QXZ("XFER").")
\n"; echo _QXZ("date with hour").":   ("._QXZ("example").": 2004-06-25 14)
\n"; echo "\n"; echo "


\n"; diff --git a/www/vicidial/help.php b/www/vicidial/help.php index 5cd4faf3..20e90224 100644 --- a/www/vicidial/help.php +++ b/www/vicidial/help.php @@ -325,10 +325,10 @@ echo "\n"; echo "\n"; echo "\n"; echo "
\n"; -echo "
Date:
"; +$HTML_text.=""; @@ -643,7 +643,7 @@ $HTML_text.=""; $HTML_text.="
"._QXZ("Date").":
"; $HTML_text.=""; $HTML_text.="
to:
\n"; +$HTML_text.="
"._QXZ("to").":
\n"; $HTML_text.=""; $HTML_text.="\n"; $HTML_text.="

"; -$HTML_text.="Display: "; +if ($report_display_type) {$HTML_text.="";} $HTML_text.="

\n"; -$HTML_text.="Shift: \n"; +$HTML_text.="\n"; $HTML_text.="\n"; $HTML_text.="\n"; $HTML_text.="\n"; @@ -571,7 +571,7 @@ $HTML_text.="\n"; $HTML_text.="\n"; $HTML_text.="
"; -$HTML_text.="Ingroup:
\n"; $o=0; while ($groups_to_print > $o) { @@ -635,7 +635,7 @@ if ($archives_available=="Y") $HTML_text.=""._QXZ("Search archived data")."

\n"; } $HTML_text.=""._QXZ("Show fronter/closer summary")."

\n"; -$HTML_text.="

\n"; +$HTML_text.="

\n"; $HTML_text.=""._QXZ("DOWNLOAD")." | "._QXZ("MODIFY")." | "._QXZ("REPORTS")."
\n"; $HTML_text.="
\n"; $HTML_text.="\n\n"; -$HTML_text.="
$report_display_type\n\n";
+$HTML_text.="
\n\n";
 
 
 if (!$group)
@@ -823,8 +823,8 @@ if (count($complete_xfer_log)>0) {
 	$output_header="+---------------------+-----------+----------------------+----------------------+----------------------+----------------------+------------+----------------------+------------+----------------------+----------------------+----------------------+---------------------+--------+\n";
 	$HTML_text.="\n";
 	$HTML_text.=$output_header;
-	$HTML_text.="| CALL DATE (INITIAL) | LEAD ID   | PHONE NUMBER         | PROVINCE             | USER                 | USER GROUP - FRONTER | FRONT CAMP | INBOUND/XFER GROUP   | RECVD CAMP | RCVD GROUP           |  USER                | USER GROUP - CLOSER  | RECEIPT DATE        | STATUS |\n";
-	$CSV_text1="\"CALL DATE (INITIAL)\",\"LEAD ID\",\"PHONE NUMBER\",\"PROVINCE\",\"USER\",\"USER GROUP - FRONTER\",\"FRONT CAMP\",\"INBOUND/XFER GROUP\",\"RECVD CAMP\",\"RCVD GROUP\",\"USER\",\"USER GROUP - CLOSER\",\"RECEIPT DATE\",\"STATUS\"\n";
+	$HTML_text.="| "._QXZ("CALL DATE (INITIAL)", 19)." | "._QXZ("LEAD ID", 9)." | "._QXZ("PHONE NUMBER", 20)." | "._QXZ("PROVINCE", 20)." | "._QXZ("USER", 20)." | "._QXZ("USER GROUP - FRONTER", 20)." | "._QXZ("FRONT CAMP", 10)." | "._QXZ("INBOUND/XFER GROUP", 20)." | "._QXZ("RECVD CAMP", 10)." | "._QXZ("RCVD GROUP", 20)." | "._QXZ("USER", 20)." | "._QXZ("USER GROUP - CLOSER", 20)." | "._QXZ("RECEIPT DATE", 19)." | "._QXZ("STATUS", 6)." |\n";
+	$CSV_text1="\""._QXZ("CALL DATE (INITIAL)")."\",\""._QXZ("LEAD ID")."\",\""._QXZ("PHONE NUMBER")."\",\""._QXZ("PROVINCE")."\",\""._QXZ("USER")."\",\""._QXZ("USER GROUP - FRONTER")."\",\""._QXZ("FRONT CAMP")."\",\""._QXZ("INBOUND/XFER GROUP")."\",\""._QXZ("RECVD CAMP")."\",\""._QXZ("RCVD GROUP")."\",\""._QXZ("USER")."\",\""._QXZ("USER GROUP - CLOSER")."\",\""._QXZ("RECEIPT DATE")."\",\""._QXZ("STATUS")."\"\n";
 	$HTML_text.=$output_header;
 	for($i=0; $i\n";
 			echo "
$Bstats_date[$i] \"\" $Btotal_calls[$i]
"; $select_list .= "
ADMINISTRATION: HELP


\n"; +echo "\n"; diff --git a/www/vicidial/lead_tools_advanced.php b/www/vicidial/lead_tools_advanced.php index 32a0dc3b..9de12079 100644 --- a/www/vicidial/lead_tools_advanced.php +++ b/www/vicidial/lead_tools_advanced.php @@ -3519,7 +3519,7 @@ if ( echo "\n"; echo "\n"; echo "\n"; - echo " "._QXZ("to")." (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)\n"; + echo " "._QXZ("to")." (YYYY-MM-DD) "._QXZ("or")." (YYYY-MM-DD HH:MM:SS)\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; + echo "\n"; echo "
"._QXZ("ADMINISTRATION: HELP")."


\n"; ?> -USERS TABLE

+


- @@ -841,7 +841,7 @@ if ($SSqc_features_active > 0)



-CAMPAIGNS TABLE

+


- @@ -2192,7 +2192,7 @@ if ($SSqc_features_active > 0)



-LISTS TABLE

+


- @@ -2336,7 +2336,7 @@ if ($SSqc_features_active > 0)



-Drop Lists Help

+


@@ -2423,7 +2423,7 @@ if ($SSqc_features_active > 0)



-Lists Custom Fields Help

+


@@ -2525,7 +2525,7 @@ if ($SSqc_features_active > 0)



-INBOUND_GROUPS TABLE

+INBOUND_GROUPS


- @@ -3370,7 +3370,7 @@ if ($SSqc_features_active > 0)



-INBOUND_DIDS TABLE

+INBOUND_DIDS



@@ -3584,7 +3584,7 @@ if ($SSqc_features_active > 0)



-CALL MENU TABLE

+


- @@ -3736,7 +3736,7 @@ if ($SSqc_features_active > 0)



-REMOTE_AGENTS TABLE

+REMOTE_AGENTS


- @@ -3792,7 +3792,7 @@ if ($SSqc_features_active > 0)



-EXTENSION_GROUPS TABLE

+EXTENSION_GROUPS


- @@ -3830,7 +3830,7 @@ if ($SSqc_features_active > 0)



-CAMPAIGN_STATUSES TABLE

+CAMPAIGN_STATUSES


"; @@ -3844,7 +3844,7 @@ if ($SSoutbound_autodial_active > 0) ?>



- CAMPAIGN_HOTKEYS TABLE

+ CAMPAIGN_HOTKEYS


@@ -3855,7 +3855,7 @@ if ($SSoutbound_autodial_active > 0)



- LEAD_RECYCLE TABLE

+ LEAD_RECYCLE


@@ -3866,7 +3866,7 @@ if ($SSoutbound_autodial_active > 0)



- AUTO ALT DIAL STATUSES

+


@@ -3879,7 +3879,7 @@ if ($SSoutbound_autodial_active > 0)



-AGENT PAUSE CODES

+


@@ -3890,7 +3890,7 @@ if ($SSoutbound_autodial_active > 0)



-CAMPAIGN PRESETS

+


@@ -3901,7 +3901,7 @@ if ($SSoutbound_autodial_active > 0)



-CAMPAIGN CID AREACODES

+


@@ -3912,7 +3912,7 @@ if ($SSoutbound_autodial_active > 0)



-CID GROUPS

+


@@ -3923,7 +3923,7 @@ if ($SSoutbound_autodial_active > 0)



-USER_GROUPS TABLE

+USER_GROUPS


- @@ -4067,7 +4067,7 @@ if ($SSqc_features_active > 0)



-SCRIPTS TABLE

+


- @@ -4115,7 +4115,7 @@ if ($SSoutbound_autodial_active > 0) ?>



- LEAD_FILTERS TABLE

+ LEAD_FILTERS


- @@ -4144,7 +4144,7 @@ if ($SSoutbound_autodial_active > 0)



-CALL TIMES TABLE

+


- @@ -4209,7 +4209,7 @@ if ($SSoutbound_autodial_active > 0)



-SHIFTS TABLE

+


- @@ -4257,7 +4257,7 @@ if ($SSoutbound_autodial_active > 0)



-MUSIC_ON_HOLD TABLE

+MUSIC_ON_HOLD


- @@ -4289,7 +4289,7 @@ if ($SSoutbound_autodial_active > 0)



-TTS_PROMPTS TABLE

+TTS_PROMPTS


- @@ -4321,7 +4321,7 @@ if ($SSoutbound_autodial_active > 0)



-VOICEMAIL TABLE

+


- @@ -4383,7 +4383,7 @@ if ($SSoutbound_autodial_active > 0)



- LIST LOADER FUNCTIONALITY

+


@@ -4448,7 +4448,7 @@ if ($SSoutbound_autodial_active > 0) -PHONES TABLE

+


- @@ -4992,7 +4992,7 @@ if ($SSoutbound_autodial_active > 0)



-SERVERS TABLE

+


- @@ -5249,7 +5249,7 @@ if ($SSoutbound_autodial_active > 0)



-conf_templates TABLE

+conf_templates


- @@ -5275,7 +5275,7 @@ if ($SSoutbound_autodial_active > 0)



-server_carriers TABLE

+server_carriers


- @@ -5341,7 +5341,7 @@ if ($SSoutbound_autodial_active > 0)



-CONFERENCES TABLE

+CONFERENCES


- @@ -5359,7 +5359,7 @@ if ($SSoutbound_autodial_active > 0) ?>



- SERVER_TRUNKS TABLE

+ SERVER_TRUNKS


@@ -5372,7 +5372,7 @@ if ($SSoutbound_autodial_active > 0)



-SYSTEM_SETTINGS TABLE

+SYSTEM_SETTINGS


- @@ -6098,7 +6098,7 @@ FR_SPAC 00 00 00 00 00 -


-STATUSES TABLE

+STATUSES


@@ -6109,7 +6109,7 @@ FR_SPAC 00 00 00 00 00 -


-STATUS_GROUPS TABLE

+STATUS_GROUPS


@@ -6121,7 +6121,7 @@ FR_SPAC 00 00 00 00 00 -


-SCREEN_LABELS TABLE

+SCREEN_LABELS


@@ -6156,7 +6156,7 @@ FR_SPAC 00 00 00 00 00 -


-SCREEN_COLORS TABLE

+SCREEN_COLORS


@@ -6207,7 +6207,7 @@ FR_SPAC 00 00 00 00 00 -


-SETTINGS CONTAINERS TABLE

+


@@ -6243,7 +6243,7 @@ FR_SPAC 00 00 00 00 00 -


-AUTOMATED REPORTS TABLE

+


@@ -6355,7 +6355,7 @@ FR_SPAC 00 00 00 00 00 -


-IP LISTS TABLE

+




@@ -6399,7 +6399,7 @@ FR_SPAC 00 00 00 00 00 -


-STATUS_CATEGORIES TABLE

+STATUS_CATEGORIES


The Sale Category and Dead Lead Category are both used by the List Suggestion system when analyzing list statistics."); ?> @@ -6413,7 +6413,7 @@ FR_SPAC 00 00 00 00 00 - 0) { ?> -EMAIL ACCOUNTS

+


@@ -6519,7 +6519,7 @@ if ($SSallow_emails>0)



-CUSTOM TEMPLATE MAKER

+


@@ -6566,7 +6566,7 @@ if ($SSallow_emails>0)



-Maximum System Stats Reports

+


@@ -6577,7 +6577,7 @@ if ($SSqc_features_active > 0) ?>



- QC STATUS CODES

+


- @@ -7225,7 +7225,7 @@ if ($SSqc_features_active > 0)



-Custom Reports Admin

+


diff --git a/www/vicidial/help_documentation.txt b/www/vicidial/help_documentation.txt index 4b7fb6c2..31a99cab 100644 --- a/www/vicidial/help_documentation.txt +++ b/www/vicidial/help_documentation.txt @@ -1,4 +1,4 @@ -# version: 20191020091901 +# version: 20191028211901 users-user User ID This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length. users-pass Password This field is where you put the users password. Must be at least 2 characters in length. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters. users-force_change_password Force Change Password If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage. Default is N. @@ -169,6 +169,8 @@ campaigns-cpd_amd_action CPD AMD Action If you are using the Sangoma ParaXi campaigns-cpd_unknown_action CPD Unknown Action If you are using the Sangoma ParaXip Call Progress Detection software and you want to send calls that have an Unknown result to a destination other than an agent, then you will want to enable this setting either setting it to DISPO which will disposition the call as AA and hang it up if the call is being processed and has not been sent to an agent yet or MESSAGE which will send the call to the defined Answering Machine Message for this campaign. Default is DISABLED. Setting this to INGROUP will send an answering machine to an inbound group. Setting this to CALLMENU will send an answering machine to a Call Menu in the system. campaigns-amd_inbound_group AMD Inbound Group If CPD AMD Action is set to INGROUP, then this is the Inbound Group that the call will be sent to if an answering machine is detected. campaigns-amd_callmenu AMD Call Menu If CPD AMD Action is set to CALLMENU, then this is the Call Menu that the call will be sent to if an answering machine is detected. +campaigns-leave_vm_message_group_id VM Message Group If this option is set, the VM transfer panel button will open up a new panel with all of the messages that are shown in the selected VM Message Group that the agent can choose to have played to the customer voicemail box when transferred. Default is blank for disabled. +campaigns-leave_vm_no_dispo Leave VM No Dispo If this option is enabled, when the agent transfers a call to a VM Message, the agent screen will not automatically be sent to the disposition screen, it will stay in the talk screen. Default is DISABLED. campaigns-manual_auto_next Manual Auto Next Seconds If the Dial Method is set to MANUAL or INBOUND_MAN, then this setting will trigger the next lead to be automatically be dialed after this number of seconds. If enabled, it cannot be set lower than 5 seconds. Default is 0 for disabled. campaigns-manual_auto_next_options Manual Auto Next Options If the Manual Auto Next option is enabled above, then this setting will determine if the timer to automatically dial the next number will count down while the agent is paused or not. Default is DEFAULT, which will count down while the agent is paused. campaigns-manual_auto_show Manual Auto Next Show Timer If the Manual Auto Next Seconds option above is enabled, this setting will display a countdown timer to the agent if enabled. Default is N for disabled. @@ -686,6 +688,7 @@ campaigns-script_top_dispo Script on top of Dispo If you are using an IFRAM xfer_presets If the Campaign setting for presets is set to ENABLED then you have the ability to define Transfer-Conference presets that will be available to the agent allowing them to 3-way call these presets or blind transfer calls to these preset numbers. These presets also have an option to hide the number associated with each preset from the agent. Conference presets that will be available to the agent allowing them to 3-way call these presets or blind transfer calls to these preset numbers. These presets also have an option to hide the number associated with each preset from the agent. campaign_cid_areacodes CAMPAIGN CID AREACODES If the System Setting for Areacode CIDs is enabled and the Campaign setting for Use Custom CallerID is set to AREACODE then you have the ability to define Areacode CIDs that will be used when outbound calling to leads in this specific campaign. You can add multiple callerIDs per areacode and you can activate and deactivate them each in real time. If more than one callerID is active for a specific areacode then the system will use the callerid that has been used the least number of times today. If no callerIDs are active for the areacode then the campaign CallerID or list override CallerID will be used. An areacode in this section can be from 2 to 5 digits in length, and if a shorter defined areacode overlaps with a longer areacode then the longer areacode will be used. For example, if the areacodes 31 and 312 are both defined and active for a campaign, then areacode 312 would be used for phone number 3125551212. cid_groups CID Groups CID Groups are very similar to Campaign AC-CID, except with CID Groups you can use the same set of CIDs across multiple campaigns, and you can also define CID Groups on a per-state basis as well as per-areacode, instead of just by areacode like with Campaign AC-CID. If the STATE type is used, then the STATE value should match the state field for a lead, and if no match is found, the dialer will use the campaign CID as a default. +vm_message_groups VM Message Groups Voicemail Message Groups are designed to allow agents to select from several messages to leave on a customer voicemail box when transferring to a voicemail message in the agent screen. The ID must be from 2 to 40 characters in length with no punctuation other than an underscore allowed. The Name must be from 5 to 255 characters in length. Active will determine if the VM Message Group is shown as an option in the campaign modify screen setting for VM Message Groups. For the Audio Files, you can define the order in which they appear on the agent screen by using the Rank setting. The Time Range will define what time of the customers day the message are displayed on the agent screen, in 2400 hours time format. The Display is what text will show up for this audio file on the agent screen. inbound_groups-park_ext Park Music-on-Hold This optional setting will override the agent campaign setting for Park Music-on-Hold, if populated. Default is empty for disabled. inbound_groups-populate_lead_source Populate Lead Source If this option is not DISABLED and there is no source_id channel variable set on the call, then the system will fill the source_id lead field with one of the other options when leads are added with an inbound call. INBOUND_NUMBER will use the inbound phone number dialed. BLANK will leave the source_id field blank. DISABLED will use the default behavior which will set the source_id field to VDCL. Default is DISABLED. user_groups-user_group User Group This is the short name of a User group, try not to use any spaces or punctuation for this field. max 20 characters, minimum of 2 characters. @@ -1015,6 +1018,7 @@ settings-user_territories_active User Territories Active This setting allow settings-list_status_modification_confirmation List Status Modification Confirmation This setting will cause the admin interface to request a confirmation whenever a user submits a change to the campaign settings or list settings that involves modifying the -Active- status of a list. Default is 0 for disabled. settings-enable_second_webform Enable Second Webform This setting allows you to have a second web form for campaigns and in-groups in the agent interface. Default is 0 for disabled. settings-enable_third_webform Enable Third Webform This setting allows you to have a third web form for campaigns and in-groups in the agent interface. Default is 0 for disabled. +settings-enable_second_script Enable Second Script Tab This setting allows you to have a second script tab for campaigns and in the agent interface. Default is 0 for disabled. settings-enable_tts_integration Enable TTS Integration This setting allows you to enable Text To Speech integration with Cepstral. This is currently only available for outbound Survey type campaigns. Default is 0 for disabled. settings-callcard_enabled Enable CallCard This setting enables the CallCard features to allow for callers to use pin numbers and card_ids that have a balance of minutes and those balances can have agent talk time on customer calls to in-groups deducted. Default is 0 for disabled. settings-test_campaign_calls Enable Campaign Test Calls This setting enables the ability to enter a phone code and phone number into fields at the bottom of the Campaign Detail screen and place a phone call to that number as if it were a lead being auto-dialed in the system. The phone number will be stored as a new lead in the manual dial list ID list. The campaign must be active for this feature to be enabled, and it is recommended that the lists assigned to the campaign all be set to inactive. The dial prefix, dial timeout and all other dialing related features, except for DNC and call time options, will affect the dialing of the test number. The phone call will be placed on the server selected as the voicemail server in the system settings. Default is 0 for disabled. diff --git a/www/vicidial/images/icon_vm_messages.png b/www/vicidial/images/icon_vm_messages.png new file mode 100644 index 0000000000000000000000000000000000000000..8a99508ff256d065af0c6669cf86dd4070550ac1 GIT binary patch literal 1314 zcmV+-1>O3IP)WFU8GbZ8()Nlj2>E@cM*00f3fL_t(o!`;|fjGbc~ z2Jqj^9J-*Sgs~HpBC!^w_LQg)!cFx8sl*l$QA@17pe16f?ErX4Shra0xD|yl5YW;dmCF!Rc79n%;G7JK^Ih;`(dFLA7;YBBo;>jA~)= zU*pz$@nI9=`|Eui25J%!utQtg>s4Tcy+}DBY@ZH)_J`m7x7>@;6WK|Z_B+$ON z^Cs+zts4MsuQ7jHBcSaVnSo!T8$B(MumUTw3)XKic4<6NN~j!`a4R>H^=)}ttqg4i zR{9%^E#v!a>_kk%o6Wd>UE5Q54L{ZcS}syvuuZT9M$}-d5|=-Om2!
vgA@4Ze4k z3V_!ygu|!;h;kBRI`+c`1#ra>>ci)F7>f$v+Vh{$h4H;ulk(L}=jtk9Q=ESs3W#RQ(-t@nTj5W96}OJa z#9IZ-a$JpFF&nSoh4ke`xE`m5`Mtt!Ic$!@-ssGl?*-_f)Kfb)EV$`y%*QvWZGB;S zBsR*}QQ6S4Y;H6*&bR(BSs`L6=4EUtYm8}CJ@o}(PvUU10ISr)MK~XK1>`b39~VB0 zQ?Pr!Eyj|}DVsYKJI4dt6valf>Zt;B4PM7Xn1Lx_s*FEyU%Jzw>ER3UVwjs9*2ZN6 z^CK|E=KHn*_c-Ph!l#~kx;Fp0v{rfQ4HMUgjbpO-)&cMco(T9~3W@OvZjSqV@LS&R zn5Q?D;Fg3_-%zNhUc8Dcv*=OT)vfqwfL7Wc*8eDUqzRd0&vS>_%_+H{> zVOrW1iNQwdsUi=r!Ty*VQL|!gTUDvf?%q!r^x)(q*G=icwcIxXhvPErhWl}M+}+4p zQcu;YW_H{urgh%g#Cd5@>Zw+69}+P!0gvG}e1>-eY(|)S3pb=g^@W8Q=~kmt+TN+7 zjG9tU71yrBJ;}Thj>B__&zb2GMH`uTorOs?GIo5}?8c)wpwLdAO!Bl`p8BInC#TPL z2K?L_CFaju61rB2n zLTA0OzemDiLK5?KoDrbQ2OzOr*+^00Ps(LOZ#v7o7Ehl=`zA5E8s~(B&Z-(bDD_lP z^}j{Zb>M`mvr#KnIkNnccs(Q?th*KU)E9tb670u@?xDIs>n|i=R literal 0 HcmV?d00001 diff --git a/www/vicidial/lead_report_export.php b/www/vicidial/lead_report_export.php index 865c2387..b5b4fc0a 100644 --- a/www/vicidial/lead_report_export.php +++ b/www/vicidial/lead_report_export.php @@ -1573,9 +1573,9 @@ else while ($campaigns_to_print > $o) { if (preg_match("/\|$LISTcampaigns[$o]\|/",$campaign_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1587,9 +1587,9 @@ else while ($groups_to_print > $o) { if (preg_match("/\|$LISTgroups[$o]\|/",$group_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1600,9 +1600,9 @@ else while ($lists_to_print > $o) { if (preg_match("/\|$LISTlists[$o]\|/",$list_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1613,9 +1613,9 @@ else while ($statuses_to_print > $o) { if (preg_match("/\|$LISTstatus[$o]\|/",$list_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "\n"; @@ -1627,9 +1627,9 @@ else while ($user_groups_to_print > $o) { if (preg_match("/\|$LISTuser_groups[$o]\|/",$user_group_string)) - {echo "\n";} + {echo "\n";} else - {echo "\n";} + {echo "\n";} $o++; } echo "
"._QXZ("Modify Date")."\n"; echo "\n"; @@ -3531,7 +3531,7 @@ if ( echo "\n"; echo "\n"; echo "\n"; - echo " "._QXZ("to")." (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)\n"; + echo " "._QXZ("to")." (YYYY-MM-DD) "._QXZ("or")." (YYYY-MM-DD HH:MM:SS)\n"; echo "
"._QXZ("Security Phrase")."\n"; echo "\n"; @@ -3628,7 +3628,7 @@ if ( echo "\n"; echo "\n"; echo "\n"; - echo " "._QXZ("to")." (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)\n"; + echo " "._QXZ("to")." (YYYY-MM-DD) "._QXZ("or")." (YYYY-MM-DD HH:MM:SS)\n"; echo "
"._QXZ("Modify Date")."\n"; echo "\n"; @@ -3640,7 +3640,7 @@ if ( echo "\n"; echo "\n"; echo "\n"; - echo " "._QXZ("to")." (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)\n"; + echo " "._QXZ("to")." (YYYY-MM-DD) "._QXZ("or")." (YYYY-MM-DD HH:MM:SS)\n"; echo "
"._QXZ("Security Phrase")."\n"; echo "\n"; @@ -3727,7 +3727,7 @@ if ( echo "\n"; echo "\n"; echo "\n"; - echo " "._QXZ("to")." (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)\n"; + echo " "._QXZ("to")." (YYYY-MM-DD) "._QXZ("or")." (YYYY-MM-DD HH:MM:SS)\n"; echo "
"._QXZ("Modify Date")."\n"; echo "\n"; @@ -3739,7 +3739,7 @@ if ( echo "\n"; echo "\n"; echo "\n"; - echo " "._QXZ("to")." (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)\n"; + echo " "._QXZ("to")." (YYYY-MM-DD) "._QXZ("or")." (YYYY-MM-DD HH:MM:SS)\n"; echo "
"._QXZ("Security Phrase")."\n"; echo "\n"; diff --git a/www/vicidial/list_split.php b/www/vicidial/list_split.php index 7d23eafb..7fd899ef 100644 --- a/www/vicidial/list_split.php +++ b/www/vicidial/list_split.php @@ -263,7 +263,7 @@ if ($DB>0) } # confirmation page -if ($submit == "submit" ) +if ($submit == _QXZ("submit") ) { # make sure the original list id is valid $id_chk_stmt = "SELECT list_id FROM vicidial_lists where list_id = $orig_list;"; @@ -507,7 +507,7 @@ if ($confirm == "confirm") # main page display -if (($submit != "submit" ) && ($confirm != "confirm")) +if (($submit != _QXZ("submit") ) && ($confirm != "confirm")) { # figure out which campaigns this user is allowed to work on $allowed_campaigns_stmt="SELECT allowed_campaigns from vicidial_user_groups where user_group='$user_group';"; @@ -641,7 +641,7 @@ if (($submit != "submit" ) && ($confirm != "confirm")) echo "\n"; # Submit - echo "
\n"; echo "\n"; diff --git a/www/vicidial/realtime_report.php b/www/vicidial/realtime_report.php index 11f24758..cd3bc7c4 100644 --- a/www/vicidial/realtime_report.php +++ b/www/vicidial/realtime_report.php @@ -741,7 +741,7 @@ $i=0; $usergroups=array(); $usergroupnames=array(); $usergroups[$i]='ALL-GROUPS'; -$usergroupnames[$i] = _QXZ("All user groups"); +$usergroupnames[$i] = "All user groups"; $i++; $usergroups_to_print++; while ($i < $usergroups_to_print) @@ -785,9 +785,9 @@ $o=0; while ($groups_to_print > $o) { if (preg_match("/\|$LISTgroups[$o]\|/",$group_string)) - {$select_list .= "";} + {$select_list .= "";} else - {$select_list .= "";} + {$select_list .= "";} $o++; } $select_list .= ""; @@ -799,13 +799,13 @@ $o=0; while ($o < $usergroups_to_print) { if (preg_match("/\|$usergroups[$o]\|/",$user_group_string)) - {$select_list .= "";} + {$select_list .= "";} else { if ( ($user_group_none > 0) and ($usergroups[$o] == 'ALL-GROUPS') ) - {$select_list .= "";} + {$select_list .= "";} else - {$select_list .= "";} + {$select_list .= "";} } $o++; } @@ -817,13 +817,13 @@ $o=0; while ($o < $ingroups_to_print) { if (preg_match("/\|$LISTingroups[$o]\|/",$ingroup_string)) - {$select_list .= "";} + {$select_list .= "";} else { if ( ($in_group_none > 0) and ($LISTingroups[$o] == 'ALL-INGROUPS') ) - {$select_list .= "";} + {$select_list .= "";} else - {$select_list .= "";} + {$select_list .= "";} } $o++; } @@ -1018,7 +1018,7 @@ $select_list .= "

"; $select_list .= ""; -$select_list .= "         "; +$select_list .= "         "; $select_list .= ""; $select_list .= ""; $select_list .= "   "; @@ -1817,7 +1817,7 @@ $row=mysqli_fetch_row($rslt); $campaign_allow_inbound = $row[0]; echo "\n"; -echo "$report_name: $group\n"; +echo ""._QXZ("$report_name").": $group\n"; $short_header=1; diff --git a/www/vicidial/record_conf_1_hour.php b/www/vicidial/record_conf_1_hour.php index e19821c0..9b286190 100644 --- a/www/vicidial/record_conf_1_hour.php +++ b/www/vicidial/record_conf_1_hour.php @@ -187,7 +187,7 @@ else echo "server_ip: | \n"; echo "session_id: | \n"; echo "station: | \n"; - echo "\n"; + echo "\n"; echo "


\n"; } ?> diff --git a/www/vicidial/recording_lookup.php b/www/vicidial/recording_lookup.php index 3dd278a2..a202b6be 100644 --- a/www/vicidial/recording_lookup.php +++ b/www/vicidial/recording_lookup.php @@ -163,7 +163,7 @@ $RUNtime = ($ENDtime - $STARTtime); echo "\n\n\n


\n
\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "
\n"; diff --git a/www/vicidial/reset_campaign_lists.php b/www/vicidial/reset_campaign_lists.php index 60e044d3..40ed275f 100644 --- a/www/vicidial/reset_campaign_lists.php +++ b/www/vicidial/reset_campaign_lists.php @@ -285,7 +285,7 @@ if ( ($LOGuser_level >= 9) and $LOGmodify_campaigns>0 and $LOGmodify_lists>0 and { $selected="selected"; } - echo "\n"; + echo "\n"; } } echo ""; diff --git a/www/vicidial/timeclock_report.php b/www/vicidial/timeclock_report.php index 073047af..36d64feb 100644 --- a/www/vicidial/timeclock_report.php +++ b/www/vicidial/timeclock_report.php @@ -509,9 +509,9 @@ $MAIN.="\n"; @@ -519,12 +519,12 @@ $MAIN.="\n"; $MAIN.=""; $MAIN.=_QXZ("Display as").":
"; $MAIN.="\n
\n"; $MAIN.="
\n"; $MAIN.=""._QXZ("Order").":
\n"; $MAIN.="$NWB#custom_reports_admin-report_name$NWE\n"; - echo ""._QXZ("Domain").": (leave blank if on same server as dialer admin)$NWB#custom_reports_admin-domain$NWE\n"; + echo ""._QXZ("Domain").": ("._QXZ("leave blank if on same server as dialer admin").")$NWB#custom_reports_admin-domain$NWE\n"; echo ""._QXZ("Path Name").": $NWB#custom_reports_admin-path_name$NWE\n"; - echo ""._QXZ("Preset constants").": Variable name:   Value: "; - echo " "; - echo " $NWB#custom_reports_admin-constants$NWE\n"; - echo "Current constants:$NWB#custom_reports_admin-current_constants$NWE\n"; + echo ""._QXZ("Preset constants").": "._QXZ("Variable name").":   "._QXZ("Value").": "; + echo " "; + echo " $NWB#custom_reports_admin-constants$NWE\n"; + echo ""._QXZ("Current constants").":$NWB#custom_reports_admin-current_constants$NWE\n"; # echo ""._QXZ("Use slave").": $NWB#custom_reports_admin-use_slave$NWE\n"; echo ""._QXZ("User groups").": \n"; echo "\n"; echo "\n"; - echo "TEST LINK"; + echo ""._QXZ("TEST LINK").""; # echo "\n"; echo "