From aca111a48146a15ebe1d1e3c931dcc97ed165ec4 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 14 May 2026 20:04:34 +0000 Subject: [PATCH] Added default_phone_code system setting use for Phone Code field on lead loader form git-svn-id: svn://192.168.202.10@3991 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/admin_listloader_fifth_gen.php | 19 ++++++++++++++----- www/vicidial/help_documentation.txt | 4 ++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/www/vicidial/admin_listloader_fifth_gen.php b/www/vicidial/admin_listloader_fifth_gen.php index fd78ef56..8cdcc43e 100644 --- a/www/vicidial/admin_listloader_fifth_gen.php +++ b/www/vicidial/admin_listloader_fifth_gen.php @@ -86,10 +86,11 @@ # 240801-1132 - Code updates for PHP8 compatibility # 260203-1600 - Fix for field chooser issue and more code updates for PHP8 compatibility # 260415-1710 - Added summarized error output, fuzzy field auto-detection for custom layout, Issue #1561 from Acidshock +# 260514-1553 - Added default_phone_code use for Phone Code field on form # -$version = '2.14-83'; -$build = '260415-1710'; +$version = '2.14-84'; +$build = '260514-1553'; require("dbconnect_mysqli.php"); require("functions.php"); @@ -600,7 +601,7 @@ $vicidial_list_fields = '|lead_id|vendor_lead_code|source_id|list_id|gmt_offset_ ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,admin_web_directory,custom_fields_enabled,webroot_writable,enable_languages,language_method,active_modules,admin_screen_colors,web_loader_phone_length,enable_international_dncs,web_loader_phone_strip,allow_web_debug FROM system_settings;"; +$stmt = "SELECT use_non_latin,admin_web_directory,custom_fields_enabled,webroot_writable,enable_languages,language_method,active_modules,admin_screen_colors,web_loader_phone_length,enable_international_dncs,web_loader_phone_strip,allow_web_debug,default_phone_code FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); $qm_conf_ct = mysqli_num_rows($rslt); #if ($qm_conf_ct > 0) @@ -618,6 +619,7 @@ $qm_conf_ct = mysqli_num_rows($rslt); $SSenable_international_dncs = $row[9]; $SSweb_loader_phone_strip = $row[10]; $SSallow_web_debug = $row[11]; + $SSdefault_phone_code = $row[12]; } if ($SSallow_web_debug < 1 || !isset($DB)) {$DB=0;} $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); @@ -1154,10 +1156,17 @@ if ( (!$OK_to_process) or ( ($leadfile) and ($file_layout!="standard" && $file_l $num_rows = mysqli_num_rows($rslt); $count=0; - while ( $num_rows > $count ) + $pc_selected=0; + while ( $num_rows > $count ) { $row = mysqli_fetch_row($rslt); - echo "\n"; + echo "\n"; $count++; } ?> diff --git a/www/vicidial/help_documentation.txt b/www/vicidial/help_documentation.txt index d1da7c2d..94396752 100644 --- a/www/vicidial/help_documentation.txt +++ b/www/vicidial/help_documentation.txt @@ -1,4 +1,4 @@ -# version: 20260413085001 +# version: 20260514155501 users-user User ID This field is where you put the users ID number, can be up to 20 digits in length, Must be at least 2 characters in length. We strongly recommend not reusing user accounts for different users, for reporting accuracy. To disable a user account, set the Active option to -N-. users-pass Password This field is where you put the users password. Must be at least 2 characters in length, unless the User Password Minimum Length system setting is enabled, which will require a longer password. Only letters and numbers are allowed in user passwords. 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 or the agent screen. Default is N. @@ -1192,7 +1192,7 @@ settings-allow_custom_dialplan Allow Custom Dialplan Entries This option al settings-pllb_grouping_limit PLLB Grouping Limit Phone Login Load Balancing Grouping Limit. If PLLB Grouping is set to CASCADING at the campaign level then this setting will determine the number of agents acceptable on each server across all campaigns. Default is 100. settings-generate_cross_server_exten Generate Cross-Server Phone Extensions This option if set to 1 will generate dialplan entries for every phone on a multi-server system. Default is 0 for inactive. settings-usacan_phone_dialcode_fix USA-Canada Phone Number Dialcode Fix This option if set to 1 will trigger a process that will run at the Timeclock End of Day and will check all phone numbers to populate the dial code, or phone code, field with a 1 if it is missing as well as remove a leading 1 from the phone number field if it is present. Default is 0 for inactive. -settings-default_phone_code Default Phone Code This setting will be used to fill in the Phone Code field on manual dial calls from the agent screen, also called Dial Code in some places. Default is 1. +settings-default_phone_code Default Phone Code This setting will be used to fill in the Phone Code field on manual dial calls from the agent screen, also called Dial Code in some places. Also, will be used on the Web-based Lead Loader. Default is 1. settings-user_territories_active User Territories Active This setting allows you to enable the User Territories settings from the user modification screen. This feature was added to allow for more integration with a customized Vtiger installation but can have applications in system by itself as well. Default is 0 for disabled. settings-user_codes_admin User Codes Admin Pulldown This option if enabled will only allow User Level 9 users to modify the User Code field on the User Modify page, and it will change the User Code field to a pulldown menu, the options for which are stored in the USER_CODES_SYSTEM Settings Container. Setting this to -2- will use the user_codes_admin.txt file in the admin web directory for the User Codes pulldown list instead of the Settings Container. The list of available User Codes can be just a list of User Codes with one on each line, or each line can have a User Code and an optional description with a pipe separating the two fields. Default is 0 for disabled. 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.