rollback of vdc_script_display.php per issue #1126

git-svn-id: svn://192.168.202.10@3024 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2018-09-04 16:09:13 +00:00
parent 04231b7e6c
commit 32f4b5dc6d
+180 -215
View File
@@ -39,11 +39,10 @@
# 171126-1124 - Added email message display from inbound emails only
# 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
# 180628-2200 - Patch for proper url encoding of variables replaced when within href and src attributes
#
$version = '2.14-34';
$build = '180628-2200';
$version = '2.14-33';
$build = '180224-1406';
require_once("dbconnect_mysqli.php");
require_once("functions.php");
@@ -419,221 +418,187 @@ $script_name = $row[0];
$script_text = stripslashes($row[1]);
$script_color = $row[2];
# ADD NEW PATTERNS/ATTRIBUTES TO MATCH HERE AS NEEDED.
# PATTERN ENTRY MUST MATCH CORRESPONDING INDEX IN ATTRIBUTE ARRAY TO WORK PROPERLY.
# FOR EXAMPLE, an IFRAME SRC or A HREF tag
$pattern_array=array("/\<iframe([^\>]+)\>/i", "/\<a\s([^\>]+)\>/i");
$attribute_array=array("/src=[\"|\']([^\"\']+)[\"|\']/i", "/href=[\"|\']([^\"\']+)[\"|\']/i");
for($x=0; $x<count($pattern_array); $x++)
if (preg_match("/iframe\ssrc/i",$script_text))
{
$current_pattern=$pattern_array[$x];
$IFRAME=1;
$user = preg_replace('/\s/i','+',$user);
$pass = preg_replace('/\s/i','+',$orig_pass);
preg_match_all($current_pattern, $script_text, $iframe_matches);
if (count($iframe_matches)>0)
if ($IFRAMEencode=='1')
{
$user = preg_replace('/\s/i','+',$user);
$pass = preg_replace('/\s/i','+',$orig_pass);
$lead_id_URL = urlencode(trim($lead_id));
$vendor_id_URL = urlencode(trim($vendor_id));
$vendor_lead_code_URL = urlencode(trim($vendor_lead_code));
$list_id_URL = urlencode(trim($list_id));
$list_name_URL = urlencode(trim($list_name));
$list_description_URL = urlencode(trim($list_description));
$gmt_offset_now_URL = urlencode(trim($gmt_offset_now));
$phone_code_URL = urlencode(trim($phone_code));
$phone_number_URL = urlencode(trim($phone_number));
$title_URL = urlencode(trim($title));
$first_name_URL = urlencode(trim($first_name));
$middle_initial_URL = urlencode(trim($middle_initial));
$last_name_URL = urlencode(trim($last_name));
$address1_URL = urlencode(trim($address1));
$address2_URL = urlencode(trim($address2));
$address3_URL = urlencode(trim($address3));
$city_URL = urlencode(trim($city));
$state_URL = urlencode(trim($state));
$province_URL = urlencode(trim($province));
$postal_code_URL = urlencode(trim($postal_code));
$country_code_URL = urlencode(trim($country_code));
$gender_URL = urlencode(trim($gender));
$date_of_birth_URL = urlencode(trim($date_of_birth));
$alt_phone_URL = urlencode(trim($alt_phone));
$email_URL = urlencode(trim($email));
$security_phrase_URL = urlencode(trim($security_phrase));
$comments_URL = urlencode(trim($comments));
$campaign_URL = urlencode(trim($campaign));
$phone_login_URL = urlencode(trim($phone_login));
$original_phone_login_URL = urlencode(trim($original_phone_login));
$phone_pass_URL = urlencode(trim($phone_pass));
$fronter_URL = urlencode(trim($fronter));
$closer_URL = urlencode(trim($closer));
$group_URL = urlencode(trim($group));
$channel_group_URL = urlencode(trim($channel_group));
$SQLdate_URL = urlencode(trim($SQLdate));
$epoch_URL = urlencode(trim($epoch));
$uniqueid_URL = urlencode(trim($uniqueid));
$customer_zap_channel_URL = urlencode(trim($customer_zap_channel));
$customer_server_ip_URL = urlencode(trim($customer_server_ip));
$server_ip_URL = urlencode(trim($server_ip));
$SIPexten_URL = urlencode(trim($SIPexten));
$session_id_URL = urlencode(trim($session_id));
$phone_URL = urlencode(trim($phone));
$parked_by_URL = urlencode(trim($parked_by));
$dispo_URL = urlencode(trim($dispo));
$dialed_number_URL = urlencode(trim($dialed_number));
$dialed_label_URL = urlencode(trim($dialed_label));
$source_id_URL = urlencode(trim($source_id));
$rank_URL = urlencode(trim($rank));
$owner_URL = urlencode(trim($owner));
$camp_script_URL = urlencode(trim($camp_script));
$in_script_URL = urlencode(trim($in_script));
$script_width_URL = urlencode(trim($script_width));
$script_height_URL = urlencode(trim($script_height));
$fullname_URL = urlencode(trim($fullname));
$agent_email_URL = urlencode(trim($agent_email));
$recording_filename_URL = urlencode(trim($recording_filename));
$recording_id_URL = urlencode(trim($recording_id));
$user_custom_one_URL = urlencode(trim($user_custom_one));
$user_custom_two_URL = urlencode(trim($user_custom_two));
$user_custom_three_URL = urlencode(trim($user_custom_three));
$user_custom_four_URL = urlencode(trim($user_custom_four));
$user_custom_five_URL = urlencode(trim($user_custom_five));
$preset_number_a_URL = urlencode(trim($preset_number_a));
$preset_number_b_URL = urlencode(trim($preset_number_b));
$preset_number_c_URL = urlencode(trim($preset_number_c));
$preset_number_d_URL = urlencode(trim($preset_number_d));
$preset_number_e_URL = urlencode(trim($preset_number_e));
$preset_number_f_URL = urlencode(trim($preset_number_f));
$preset_dtmf_a_URL = urlencode(trim($preset_dtmf_a));
$preset_dtmf_b_URL = urlencode(trim($preset_dtmf_b));
$did_id_URL = urlencode(trim($did_id));
$did_extension_URL = urlencode(trim($did_extension));
$did_pattern_URL = urlencode(trim($did_pattern));
$did_description_URL = urlencode(trim($did_description));
$called_count_URL = urlencode(trim($called_count));
$session_name_URL = urlencode(trim($session_name));
$entry_date_URL = urlencode(trim($entry_date));
$did_custom_one_URL = urlencode(trim($did_custom_one));
$did_custom_two_URL = urlencode(trim($did_custom_two));
$did_custom_three_URL = urlencode(trim($did_custom_three));
$did_custom_four_URL = urlencode(trim($did_custom_four));
$did_custom_five_URL = urlencode(trim($did_custom_five));
$web_vars_URL = urlencode(trim($web_vars));
$iframe_replace=$iframe_matches[1];
for ($q=0; $q<count($iframe_replace); $q++)
{
$current_attribute=$attribute_array[$x];
if (preg_match($current_attribute, $iframe_replace[$q], $src_matches))
{
$src_match=$src_matches[1];
$orig_src_match=preg_replace('/\W/', '\\\\$0', $src_matches[1]);
$src_match = preg_replace('/--A--lead_id--B--/i',"$lead_id_URL",$src_match);
$src_match = preg_replace('/--A--vendor_id--B--/i',"$vendor_id_URL",$src_match);
$src_match = preg_replace('/--A--vendor_lead_code--B--/i',"$vendor_lead_code_URL",$src_match);
$src_match = preg_replace('/--A--list_id--B--/i',"$list_id_URL",$src_match);
$src_match = preg_replace('/--A--list_name--B--/i',"$list_name_URL",$src_match);
$src_match = preg_replace('/--A--list_description--B--/i',"$list_description_URL",$src_match);
$src_match = preg_replace('/--A--gmt_offset_now--B--/i',"$gmt_offset_now_URL",$src_match);
$src_match = preg_replace('/--A--phone_code--B--/i',"$phone_code_URL",$src_match);
$src_match = preg_replace('/--A--phone_number--B--/i',"$phone_number_URL",$src_match);
$src_match = preg_replace('/--A--title--B--/i',"$title_URL",$src_match);
$src_match = preg_replace('/--A--first_name--B--/i',"$first_name_URL",$src_match);
$src_match = preg_replace('/--A--middle_initial--B--/i',"$middle_initial_URL",$src_match);
$src_match = preg_replace('/--A--last_name--B--/i',"$last_name_URL",$src_match);
$src_match = preg_replace('/--A--address1--B--/i',"$address1_URL",$src_match);
$src_match = preg_replace('/--A--address2--B--/i',"$address2_URL",$src_match);
$src_match = preg_replace('/--A--address3--B--/i',"$address3_URL",$src_match);
$src_match = preg_replace('/--A--city--B--/i',"$city_URL",$src_match);
$src_match = preg_replace('/--A--state--B--/i',"$state_URL",$src_match);
$src_match = preg_replace('/--A--province--B--/i',"$province_URL",$src_match);
$src_match = preg_replace('/--A--postal_code--B--/i',"$postal_code_URL",$src_match);
$src_match = preg_replace('/--A--country_code--B--/i',"$country_code_URL",$src_match);
$src_match = preg_replace('/--A--gender--B--/i',"$gender_URL",$src_match);
$src_match = preg_replace('/--A--date_of_birth--B--/i',"$date_of_birth_URL",$src_match);
$src_match = preg_replace('/--A--alt_phone--B--/i',"$alt_phone_URL",$src_match);
$src_match = preg_replace('/--A--email--B--/i',"$email_URL",$src_match);
$src_match = preg_replace('/--A--security_phrase--B--/i',"$security_phrase_URL",$src_match);
$src_match = preg_replace('/--A--comments--B--/i',"$comments_URL",$src_match);
$src_match = preg_replace('/--A--user--B--/i',"$user_URL",$src_match);
$src_match = preg_replace('/--A--pass--B--/i',"$pass_URL",$src_match);
$src_match = preg_replace('/--A--campaign--B--/i',"$campaign_URL",$src_match);
$src_match = preg_replace('/--A--phone_login--B--/i',"$phone_login_URL",$src_match);
$src_match = preg_replace('/--A--original_phone_login--B--/i',"$original_phone_login_URL",$src_match);
$src_match = preg_replace('/--A--phone_pass--B--/i',"$phone_pass_URL",$src_match);
$src_match = preg_replace('/--A--fronter--B--/i',"$fronter_URL",$src_match);
$src_match = preg_replace('/--A--closer--B--/i',"$closer_URL",$src_match);
$src_match = preg_replace('/--A--group--B--/i',"$group_URL",$src_match);
$src_match = preg_replace('/--A--channel_group--B--/i',"$channel_group_URL",$src_match);
$src_match = preg_replace('/--A--SQLdate--B--/i',"$SQLdate_URL",$src_match);
$src_match = preg_replace('/--A--epoch--B--/i',"$epoch_URL",$src_match);
$src_match = preg_replace('/--A--uniqueid--B--/i',"$uniqueid_URL",$src_match);
$src_match = preg_replace('/--A--customer_zap_channel--B--/i',"$customer_zap_channel_URL",$src_match);
$src_match = preg_replace('/--A--customer_server_ip--B--/i',"$customer_server_ip_URL",$src_match);
$src_match = preg_replace('/--A--server_ip--B--/i',"$server_ip_URL",$src_match);
$src_match = preg_replace('/--A--SIPexten--B--/i',"$SIPexten_URL",$src_match);
$src_match = preg_replace('/--A--session_id--B--/i',"$session_id_URL",$src_match);
$src_match = preg_replace('/--A--phone--B--/i',"$phone_URL",$src_match);
$src_match = preg_replace('/--A--parked_by--B--/i',"$parked_by_URL",$src_match);
$src_match = preg_replace('/--A--dispo--B--/i',"$dispo_URL",$src_match);
$src_match = preg_replace('/--A--dialed_number--B--/i',"$dialed_number_URL",$src_match);
$src_match = preg_replace('/--A--dialed_label--B--/i',"$dialed_label_URL",$src_match);
$src_match = preg_replace('/--A--source_id--B--/i',"$source_id_URL",$src_match);
$src_match = preg_replace('/--A--rank--B--/i',"$rank_URL",$src_match);
$src_match = preg_replace('/--A--owner--B--/i',"$owner_URL",$src_match);
$src_match = preg_replace('/--A--camp_script--B--/i',"$camp_script_URL",$src_match);
$src_match = preg_replace('/--A--in_script--B--/i',"$in_script_URL",$src_match);
$src_match = preg_replace('/--A--script_width--B--/i',"$script_width_URL",$src_match);
$src_match = preg_replace('/--A--script_height--B--/i',"$script_height_URL",$src_match);
$src_match = preg_replace('/--A--full_script_height--B--/i',"$full_script_height_URL",$src_match);
$src_match = preg_replace('/--A--fullname--B--/i',"$fullname_URL",$src_match);
$src_match = preg_replace('/--A--agent_email--B--/i',"$agent_email_URL",$src_match);
$src_match = preg_replace('/--A--recording_filename--B--/i',"$recording_filename_URL",$src_match);
$src_match = preg_replace('/--A--recording_id--B--/i',"$recording_id_URL",$src_match);
$src_match = preg_replace('/--A--user_custom_one--B--/i',"$user_custom_one_URL",$src_match);
$src_match = preg_replace('/--A--user_custom_two--B--/i',"$user_custom_two_URL",$src_match);
$src_match = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three_URL",$src_match);
$src_match = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four_URL",$src_match);
$src_match = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five_URL",$src_match);
$src_match = preg_replace('/--A--preset_number_a--B--/i',"$preset_number_a_URL",$src_match);
$src_match = preg_replace('/--A--preset_number_b--B--/i',"$preset_number_b_URL",$src_match);
$src_match = preg_replace('/--A--preset_number_c--B--/i',"$preset_number_c_URL",$src_match);
$src_match = preg_replace('/--A--preset_number_d--B--/i',"$preset_number_d_URL",$src_match);
$src_match = preg_replace('/--A--preset_number_e--B--/i',"$preset_number_e_URL",$src_match);
$src_match = preg_replace('/--A--preset_number_f--B--/i',"$preset_number_f_URL",$src_match);
$src_match = preg_replace('/--A--preset_dtmf_a--B--/i',"$preset_dtmf_a_URL",$src_match);
$src_match = preg_replace('/--A--preset_dtmf_b--B--/i',"$preset_dtmf_b_URL",$src_match);
$src_match = preg_replace('/--A--did_id--B--/i',"$did_id_URL",$src_match);
$src_match = preg_replace('/--A--did_extension--B--/i',"$did_extension_URL",$src_match);
$src_match = preg_replace('/--A--did_pattern--B--/i',"$did_pattern_URL",$src_match);
$src_match = preg_replace('/--A--did_description--B--/i',"$did_description_URL",$src_match);
$src_match = preg_replace('/--A--closecallid--B--/i',"$closecallid_URL",$src_match);
$src_match = preg_replace('/--A--xfercallid--B--/i',"$xfercallid_URL",$src_match);
$src_match = preg_replace('/--A--agent_log_id--B--/i',"$agent_log_id_URL",$src_match);
$src_match = preg_replace('/--A--entry_list_id--B--/i',"$entry_list_id_URL",$src_match);
$src_match = preg_replace('/--A--call_id--B--/i',"$call_id_URL",$src_match);
$src_match = preg_replace('/--A--user_group--B--/i',"$user_group_URL",$src_match);
$src_match = preg_replace('/--A--called_count--B--/i',"$called_count_URL",$src_match);
$src_match = preg_replace('/--A--session_name--B--/i',"$session_name_URL",$src_match);
$src_match = preg_replace('/--A--entry_date--B--/i',"$entry_date_URL",$src_match);
$src_match = preg_replace('/--A--did_custom_one--B--/i',"$did_custom_one_URL",$src_match);
$src_match = preg_replace('/--A--did_custom_two--B--/i',"$did_custom_two_URL",$src_match);
$src_match = preg_replace('/--A--did_custom_three--B--/i',"$did_custom_three_URL",$src_match);
$src_match = preg_replace('/--A--did_custom_four--B--/i',"$did_custom_four_URL",$src_match);
$src_match = preg_replace('/--A--did_custom_five--B--/i',"$did_custom_five_URL",$src_match);
$src_match = preg_replace('/--A--LOGINvarONE--B--/i',"$LOGINvarONE_URL",$src_match);
$src_match = preg_replace('/--A--LOGINvarTWO--B--/i',"$LOGINvarTWO_URL",$src_match);
$src_match = preg_replace('/--A--LOGINvarTHREE--B--/i',"$LOGINvarTHREE_URL",$src_match);
$src_match = preg_replace('/--A--LOGINvarFOUR--B--/i',"$LOGINvarFOUR_URL",$src_match);
$src_match = preg_replace('/--A--LOGINvarFIVE--B--/i',"$LOGINvarFIVE_URL",$src_match);
$src_match = preg_replace('/--A--web_vars--B--/i',"$web_vars_URL",$src_match);
$script_text = preg_replace('/'.$orig_src_match.'/',"$src_match",$script_text);
}
}
$lead_id = urlencode(trim($lead_id));
$vendor_id = urlencode(trim($vendor_id));
$vendor_lead_code = urlencode(trim($vendor_lead_code));
$list_id = urlencode(trim($list_id));
$list_name = urlencode(trim($list_name));
$list_description = urlencode(trim($list_description));
$gmt_offset_now = urlencode(trim($gmt_offset_now));
$phone_code = urlencode(trim($phone_code));
$phone_number = urlencode(trim($phone_number));
$title = urlencode(trim($title));
$first_name = urlencode(trim($first_name));
$middle_initial = urlencode(trim($middle_initial));
$last_name = urlencode(trim($last_name));
$address1 = urlencode(trim($address1));
$address2 = urlencode(trim($address2));
$address3 = urlencode(trim($address3));
$city = urlencode(trim($city));
$state = urlencode(trim($state));
$province = urlencode(trim($province));
$postal_code = urlencode(trim($postal_code));
$country_code = urlencode(trim($country_code));
$gender = urlencode(trim($gender));
$date_of_birth = urlencode(trim($date_of_birth));
$alt_phone = urlencode(trim($alt_phone));
$email = urlencode(trim($email));
$security_phrase = urlencode(trim($security_phrase));
$comments = urlencode(trim($comments));
$campaign = urlencode(trim($campaign));
$phone_login = urlencode(trim($phone_login));
$original_phone_login = urlencode(trim($original_phone_login));
$phone_pass = urlencode(trim($phone_pass));
$fronter = urlencode(trim($fronter));
$closer = urlencode(trim($closer));
$group = urlencode(trim($group));
$channel_group = urlencode(trim($channel_group));
$SQLdate = urlencode(trim($SQLdate));
$epoch = urlencode(trim($epoch));
$uniqueid = urlencode(trim($uniqueid));
$customer_zap_channel = urlencode(trim($customer_zap_channel));
$customer_server_ip = urlencode(trim($customer_server_ip));
$server_ip = urlencode(trim($server_ip));
$SIPexten = urlencode(trim($SIPexten));
$session_id = urlencode(trim($session_id));
$phone = urlencode(trim($phone));
$parked_by = urlencode(trim($parked_by));
$dispo = urlencode(trim($dispo));
$dialed_number = urlencode(trim($dialed_number));
$dialed_label = urlencode(trim($dialed_label));
$source_id = urlencode(trim($source_id));
$rank = urlencode(trim($rank));
$owner = urlencode(trim($owner));
$camp_script = urlencode(trim($camp_script));
$in_script = urlencode(trim($in_script));
$script_width = urlencode(trim($script_width));
$script_height = urlencode(trim($script_height));
$fullname = urlencode(trim($fullname));
$agent_email = urlencode(trim($agent_email));
$recording_filename = urlencode(trim($recording_filename));
$recording_id = urlencode(trim($recording_id));
$user_custom_one = urlencode(trim($user_custom_one));
$user_custom_two = urlencode(trim($user_custom_two));
$user_custom_three = urlencode(trim($user_custom_three));
$user_custom_four = urlencode(trim($user_custom_four));
$user_custom_five = urlencode(trim($user_custom_five));
$preset_number_a = urlencode(trim($preset_number_a));
$preset_number_b = urlencode(trim($preset_number_b));
$preset_number_c = urlencode(trim($preset_number_c));
$preset_number_d = urlencode(trim($preset_number_d));
$preset_number_e = urlencode(trim($preset_number_e));
$preset_number_f = urlencode(trim($preset_number_f));
$preset_dtmf_a = urlencode(trim($preset_dtmf_a));
$preset_dtmf_b = urlencode(trim($preset_dtmf_b));
$did_id = urlencode(trim($did_id));
$did_extension = urlencode(trim($did_extension));
$did_pattern = urlencode(trim($did_pattern));
$did_description = urlencode(trim($did_description));
$called_count = urlencode(trim($called_count));
$session_name = urlencode(trim($session_name));
$entry_date = urlencode(trim($entry_date));
$did_custom_one = urlencode(trim($did_custom_one));
$did_custom_two = urlencode(trim($did_custom_two));
$did_custom_three = urlencode(trim($did_custom_three));
$did_custom_four = urlencode(trim($did_custom_four));
$did_custom_five = urlencode(trim($did_custom_five));
$web_vars = urlencode(trim($web_vars));
}
else
{
$lead_id = preg_replace('/\s/i','+',$lead_id);
$vendor_id = preg_replace('/\s/i','+',$vendor_id);
$vendor_lead_code = preg_replace('/\s/i','+',$vendor_lead_code);
$list_id = preg_replace('/\s/i','+',$list_id);
$list_name = preg_replace('/\s/i','+',$list_name);
$list_description = preg_replace('/\s/i','+',$list_description);
$gmt_offset_now = preg_replace('/\s/i','+',$gmt_offset_now);
$phone_code = preg_replace('/\s/i','+',$phone_code);
$phone_number = preg_replace('/\s/i','+',$phone_number);
$title = preg_replace('/\s/i','+',$title);
$first_name = preg_replace('/\s/i','+',$first_name);
$middle_initial = preg_replace('/\s/i','+',$middle_initial);
$last_name = preg_replace('/\s/i','+',$last_name);
$address1 = preg_replace('/\s/i','+',$address1);
$address2 = preg_replace('/\s/i','+',$address2);
$address3 = preg_replace('/\s/i','+',$address3);
$city = preg_replace('/\s/i','+',$city);
$state = preg_replace('/\s/i','+',$state);
$province = preg_replace('/\s/i','+',$province);
$postal_code = preg_replace('/\s/i','+',$postal_code);
$country_code = preg_replace('/\s/i','+',$country_code);
$gender = preg_replace('/\s/i','+',$gender);
$date_of_birth = preg_replace('/\s/i','+',$date_of_birth);
$alt_phone = preg_replace('/\s/i','+',$alt_phone);
$email = preg_replace('/\s/i','+',$email);
$security_phrase = preg_replace('/\s/i','+',$security_phrase);
$comments = preg_replace('/\s/i','+',$comments);
$campaign = preg_replace('/\s/i','+',$campaign);
$phone_login = preg_replace('/\s/i','+',$phone_login);
$original_phone_login = preg_replace('/\s/i','+',$original_phone_login);
$phone_pass = preg_replace('/\s/i','+',$phone_pass);
$fronter = preg_replace('/\s/i','+',$fronter);
$closer = preg_replace('/\s/i','+',$closer);
$group = preg_replace('/\s/i','+',$group);
$channel_group = preg_replace('/\s/i','+',$channel_group);
$SQLdate = preg_replace('/\s/i','+',$SQLdate);
$epoch = preg_replace('/\s/i','+',$epoch);
$uniqueid = preg_replace('/\s/i','+',$uniqueid);
$customer_zap_channel = preg_replace('/\s/i','+',$customer_zap_channel);
$customer_server_ip = preg_replace('/\s/i','+',$customer_server_ip);
$server_ip = preg_replace('/\s/i','+',$server_ip);
$SIPexten = preg_replace('/\s/i','+',$SIPexten);
$session_id = preg_replace('/\s/i','+',$session_id);
$phone = preg_replace('/\s/i','+',$phone);
$parked_by = preg_replace('/\s/i','+',$parked_by);
$dispo = preg_replace('/\s/i','+',$dispo);
$dialed_number = preg_replace('/\s/i','+',$dialed_number);
$dialed_label = preg_replace('/\s/i','+',$dialed_label);
$source_id = preg_replace('/\s/i','+',$source_id);
$rank = preg_replace('/\s/i','+',$rank);
$owner = preg_replace('/\s/i','+',$owner);
$camp_script = preg_replace('/\s/i','+',$camp_script);
$in_script = preg_replace('/\s/i','+',$in_script);
$script_width = preg_replace('/\s/i','+',$script_width);
$script_height = preg_replace('/\s/i','+',$script_height);
$fullname = preg_replace('/\s/i','+',$fullname);
$agent_email = preg_replace('/\s/i','+',$agent_email);
$recording_filename = preg_replace('/\s/i','+',$recording_filename);
$recording_id = preg_replace('/\s/i','+',$recording_id);
$user_custom_one = preg_replace('/\s/i','+',$user_custom_one);
$user_custom_two = preg_replace('/\s/i','+',$user_custom_two);
$user_custom_three = preg_replace('/\s/i','+',$user_custom_three);
$user_custom_four = preg_replace('/\s/i','+',$user_custom_four);
$user_custom_five = preg_replace('/\s/i','+',$user_custom_five);
$preset_number_a = preg_replace('/\s/i','+',$preset_number_a);
$preset_number_b = preg_replace('/\s/i','+',$preset_number_b);
$preset_number_c = preg_replace('/\s/i','+',$preset_number_c);
$preset_number_d = preg_replace('/\s/i','+',$preset_number_d);
$preset_number_e = preg_replace('/\s/i','+',$preset_number_e);
$preset_number_f = preg_replace('/\s/i','+',$preset_number_f);
$preset_dtmf_a = preg_replace('/\s/i','+',$preset_dtmf_a);
$preset_dtmf_b = preg_replace('/\s/i','+',$preset_dtmf_b);
$did_id = preg_replace('/\s/i','+',$did_id);
$did_extension = preg_replace('/\s/i','+',$did_extension);
$did_pattern = preg_replace('/\s/i','+',$did_pattern);
$did_description = preg_replace('/\s/i','+',$did_description);
$called_count = preg_replace('/\s/i','+',$called_count);
$session_name = preg_replace('/\s/i','+',$session_name);
$entry_date = preg_replace('/\s/i','+',$entry_date);
$did_custom_one = preg_replace('/\s/i','+',$did_custom_one);
$did_custom_two = preg_replace('/\s/i','+',$did_custom_two);
$did_custom_three = preg_replace('/\s/i','+',$did_custom_three);
$did_custom_four = preg_replace('/\s/i','+',$did_custom_four);
$did_custom_five = preg_replace('/\s/i','+',$did_custom_five);
$web_vars = preg_replace('/\s/i','+',$web_vars);
}
}