Added code for LOCALFQDN conversion to browser-used server URL for webform and script iframes

git-svn-id: svn://192.168.202.10@2952 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2018-03-27 18:14:03 +00:00
parent 11fca58ec0
commit 0c94dbc067
5 changed files with 54 additions and 4 deletions
+9
View File
@@ -44,6 +44,7 @@
# 171116-2333 - Added code for duplicate custom fields
# 171129-0812 - Fixed issue with duplicate custom fields
# 180319-1339 - Added entry_date as custom field SCRIPT type variable
# 180327-1357 - Added code for LOCALFQDN conversion to browser-used server URL script iframes
#
# $mysql_queries = 26
@@ -323,6 +324,13 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
$TODAY = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
$server_name = getenv("SERVER_NAME");
$server_port = getenv("SERVER_PORT");
$CL=':';
if (($server_port == '80') or ($server_port == '443') ) {$server_port='';}
else {$server_port = "$CL$server_port";}
$FQDN = "$server_name$server_port";
$vicidial_list_fields = '|lead_id|vendor_lead_code|source_id|list_id|gmt_offset_now|called_since_last_reset|phone_code|phone_number|title|first_name|middle_initial|last_name|address1|address2|address3|city|state|province|postal_code|country_code|gender|date_of_birth|alt_phone|email|security_phrase|comments|called_count|last_local_call_time|rank|owner|';
$custom_required_fields='|';
$custom_required_fields_check='|';
@@ -1216,6 +1224,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
$CFoutput = preg_replace('/--A--list_description--B--/i',"$list_description",$CFoutput);
$CFoutput = preg_replace('/--A--TABLEper_call_notes--B--/i',"$NOTESout",$CFoutput);
$CFoutput = preg_replace("/LOCALFQDN/",$FQDN,$CFoutput);
# custom fields replacement
$o=0;