diff --git a/agc_2-X/trunk/www/agc/agc_agent_manager_chat_interface.php b/agc_2-X/trunk/www/agc/agc_agent_manager_chat_interface.php index cfd27b43..e6f96784 100644 --- a/agc_2-X/trunk/www/agc/agc_agent_manager_chat_interface.php +++ b/agc_2-X/trunk/www/agc/agc_agent_manager_chat_interface.php @@ -42,6 +42,8 @@ if (isset($_GET["pass"])) {$pass=$_GET["pass"];} elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];} if (!$user) {echo "Page should only be viewed through the agent interface."; die;} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### $VUselected_language = ''; diff --git a/agc_2-X/trunk/www/agc/api.php b/agc_2-X/trunk/www/agc/api.php index e66ef771..9cd58bda 100644 --- a/agc_2-X/trunk/www/agc/api.php +++ b/agc_2-X/trunk/www/agc/api.php @@ -258,6 +258,8 @@ if (isset($_GET["cid_choice"])) {$cid_choice=$_GET["cid_choice"];} if (isset($_GET["outbound_cid"])) {$outbound_cid=$_GET["outbound_cid"];} elseif (isset($_POST["outbound_cid"])) {$outbound_cid=$_POST["outbound_cid"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + # if options file exists, use the override values for the above variables # see the options-example.php file for more information if (file_exists('options.php')) diff --git a/agc_2-X/trunk/www/agc/chat_db_query.php b/agc_2-X/trunk/www/agc/chat_db_query.php index d2307027..961afb03 100644 --- a/agc_2-X/trunk/www/agc/chat_db_query.php +++ b/agc_2-X/trunk/www/agc/chat_db_query.php @@ -102,6 +102,8 @@ if (isset($_GET["chat_xfer_type"])) {$chat_xfer_type=$_GET["chat_xfer_type"] if (isset($_GET["chat_xfer_value"])) {$chat_xfer_value=$_GET["chat_xfer_value"];} elseif (isset($_POST["chat_xfer_value"])) {$chat_xfer_value=$_POST["chat_xfer_value"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + if (!$user) {echo "No user, no using."; exit;} if (file_exists('options.php')) diff --git a/agc_2-X/trunk/www/agc/conf_exten_check.php b/agc_2-X/trunk/www/agc/conf_exten_check.php index e9d702fd..0c7e04e3 100644 --- a/agc_2-X/trunk/www/agc/conf_exten_check.php +++ b/agc_2-X/trunk/www/agc/conf_exten_check.php @@ -154,6 +154,8 @@ if (isset($_GET["phone_number"])) {$phone_number=$_GET["phone_number"];} if (isset($_GET["visibility"])) {$visibility=$_GET["visibility"];} elseif (isset($_POST["visibility"])) {$visibility=$_POST["visibility"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + if ($bcrypt == 'OFF') {$bcrypt=0;} diff --git a/agc_2-X/trunk/www/agc/deactivate_lead.php b/agc_2-X/trunk/www/agc/deactivate_lead.php index b476ffca..70ee60d9 100644 --- a/agc_2-X/trunk/www/agc/deactivate_lead.php +++ b/agc_2-X/trunk/www/agc/deactivate_lead.php @@ -70,6 +70,7 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} if (isset($_GET["log_to_file"])) {$log_to_file=$_GET["log_to_file"];} elseif (isset($_POST["log_to_file"])) {$log_to_file=$_POST["log_to_file"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/dispo_add_FPG.php b/agc_2-X/trunk/www/agc/dispo_add_FPG.php index 5587d177..75651555 100644 --- a/agc_2-X/trunk/www/agc/dispo_add_FPG.php +++ b/agc_2-X/trunk/www/agc/dispo_add_FPG.php @@ -57,6 +57,7 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} if (isset($_GET["log_to_file"])) {$log_to_file=$_GET["log_to_file"];} elseif (isset($_POST["log_to_file"])) {$log_to_file=$_POST["log_to_file"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/dispo_change_status.php b/agc_2-X/trunk/www/agc/dispo_change_status.php index b2b92e43..ef47774d 100644 --- a/agc_2-X/trunk/www/agc/dispo_change_status.php +++ b/agc_2-X/trunk/www/agc/dispo_change_status.php @@ -67,6 +67,7 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} if (isset($_GET["log_to_file"])) {$log_to_file=$_GET["log_to_file"];} elseif (isset($_POST["log_to_file"])) {$log_to_file=$_POST["log_to_file"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/dispo_list_quota.php b/agc_2-X/trunk/www/agc/dispo_list_quota.php index eb4d83c1..9b015891 100644 --- a/agc_2-X/trunk/www/agc/dispo_list_quota.php +++ b/agc_2-X/trunk/www/agc/dispo_list_quota.php @@ -63,6 +63,7 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} if (isset($_GET["log_to_file"])) {$log_to_file=$_GET["log_to_file"];} elseif (isset($_POST["log_to_file"])) {$log_to_file=$_POST["log_to_file"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/dispo_move_list.php b/agc_2-X/trunk/www/agc/dispo_move_list.php index 369ba56d..8604dfb0 100644 --- a/agc_2-X/trunk/www/agc/dispo_move_list.php +++ b/agc_2-X/trunk/www/agc/dispo_move_list.php @@ -125,6 +125,7 @@ if (isset($_GET["list_id_trigger"])) {$list_id_trigger=$_GET["list_id_trigger" if (isset($_GET["multi_trigger"])) {$multi_trigger=$_GET["multi_trigger"];} elseif (isset($_POST["multi_trigger"])) {$multi_trigger=$_POST["multi_trigger"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/dispo_send_email.php b/agc_2-X/trunk/www/agc/dispo_send_email.php index 2229906c..4b060273 100644 --- a/agc_2-X/trunk/www/agc/dispo_send_email.php +++ b/agc_2-X/trunk/www/agc/dispo_send_email.php @@ -136,6 +136,7 @@ if (isset($_GET["email_attachment_19"])) {$email_attachment_19=$_GET["email_at if (isset($_GET["email_attachment_20"])) {$email_attachment_20=$_GET["email_attachment_20"];} elseif (isset($_POST["email_attachment_20"])) {$email_attachment_20=$_POST["email_attachment_20"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/update_cf_ivr.php b/agc_2-X/trunk/www/agc/update_cf_ivr.php index 78be7609..ed39c8f2 100644 --- a/agc_2-X/trunk/www/agc/update_cf_ivr.php +++ b/agc_2-X/trunk/www/agc/update_cf_ivr.php @@ -47,6 +47,7 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} if (isset($_GET["log_to_file"])) {$log_to_file=$_GET["log_to_file"];} elseif (isset($_POST["log_to_file"])) {$log_to_file=$_POST["log_to_file"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); #$DB = '1'; # DEBUG override $US = '_'; diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 3843c8e4..538d5f4d 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -843,6 +843,8 @@ if (isset($_GET["calls_waiting_vl_twoLABEL"])) {$calls_waiting_vl_twoLABEL=$_G if (isset($_GET["pause_max_url_trigger"])) {$pause_max_url_trigger=$_GET["pause_max_url_trigger"];} elseif (isset($_POST["pause_max_url_trigger"])) {$pause_max_url_trigger=$_POST["pause_max_url_trigger"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + # if options file exists, use the override values for the above variables # see the options-example.php file for more information if (file_exists('options.php')) diff --git a/agc_2-X/trunk/www/agc/vdc_email_display.php b/agc_2-X/trunk/www/agc/vdc_email_display.php index f8a4536e..53fe076d 100644 --- a/agc_2-X/trunk/www/agc/vdc_email_display.php +++ b/agc_2-X/trunk/www/agc/vdc_email_display.php @@ -64,6 +64,8 @@ if (isset($_GET["REPLY"])) {$REPLY=$_GET["REPLY"];} if (isset($_GET["agent_email"])) {$agent_email=$_GET["agent_email"];} elseif (isset($_POST["agent_email"])) {$agent_email=$_POST["agent_email"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + $PHP_SELF=$_SERVER['PHP_SELF']; $PHP_SELF = preg_replace('/\.php.*/i','.php',$PHP_SELF); diff --git a/agc_2-X/trunk/www/agc/vdc_form_display.php b/agc_2-X/trunk/www/agc/vdc_form_display.php index 1576e791..9252edd5 100644 --- a/agc_2-X/trunk/www/agc/vdc_form_display.php +++ b/agc_2-X/trunk/www/agc/vdc_form_display.php @@ -223,6 +223,8 @@ if (isset($_GET["orig_URL"])) {$orig_URL=$_GET["orig_URL"];} if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + if ($bcrypt == 'OFF') {$bcrypt=0;} diff --git a/agc_2-X/trunk/www/agc/vdc_script_display.php b/agc_2-X/trunk/www/agc/vdc_script_display.php index ee61d913..cb1c21e3 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_display.php +++ b/agc_2-X/trunk/www/agc/vdc_script_display.php @@ -267,6 +267,8 @@ if (isset($_GET["LOGINvarFIVE"])) {$LOGINvarFIVE=$_GET["LOGINvarFIVE"];} if (isset($_GET["script_span"])) {$script_span=$_GET["script_span"];} elseif (isset($_POST["script_span"])) {$script_span=$_POST["script_span"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + # if options file exists, use the override values for the above variables # see the options-example.php file for more information if (file_exists('options.php')) diff --git a/agc_2-X/trunk/www/agc/vdc_script_dispo_example.php b/agc_2-X/trunk/www/agc/vdc_script_dispo_example.php index 7a8f68fa..9417d3b4 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_dispo_example.php +++ b/agc_2-X/trunk/www/agc/vdc_script_dispo_example.php @@ -236,6 +236,9 @@ if (strlen($appointment_time) < 1) $appointment_timeARRAY = explode(":",$appointment_time); $appointment_hour = $appointment_timeARRAY[0]; $appointment_min = $appointment_timeARRAY[1]; + +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + ##### END Put custom fields here ##### # if options file exists, use the override values for the above variables diff --git a/agc_2-X/trunk/www/agc/vdc_script_notes.php b/agc_2-X/trunk/www/agc/vdc_script_notes.php index a3435acb..80358c65 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_notes.php +++ b/agc_2-X/trunk/www/agc/vdc_script_notes.php @@ -207,6 +207,8 @@ $appointment_timeARRAY = explode(":",$appointment_time); $appointment_hour = $appointment_timeARRAY[0]; $appointment_min = $appointment_timeARRAY[1]; +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + # if options file exists, use the override values for the above variables # see the options-example.php file for more information if (file_exists('options.php')) diff --git a/agc_2-X/trunk/www/agc/vdc_soundboard_display.php b/agc_2-X/trunk/www/agc/vdc_soundboard_display.php index a66fb367..8571914f 100644 --- a/agc_2-X/trunk/www/agc/vdc_soundboard_display.php +++ b/agc_2-X/trunk/www/agc/vdc_soundboard_display.php @@ -52,6 +52,7 @@ if (isset($_GET["bgcolor"])) {$bgcolor=$_GET["bgcolor"];} if (isset($_GET["bcrypt"])) {$bcrypt=$_GET["bcrypt"];} elseif (isset($_POST["bcrypt"])) {$bcrypt=$_POST["bcrypt"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); if ($bcrypt == 'OFF') {$bcrypt=0;} diff --git a/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php b/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php index 3e11a1e0..1d90c395 100644 --- a/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php +++ b/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php @@ -51,6 +51,7 @@ if (isset($_GET["available_agents"])) {$available_agents=$_GET["available_age if (isset($_GET["show_email"])) {$show_email=$_GET["show_email"];} elseif (isset($_POST["show_email"])) {$show_email=$_POST["show_email"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $chat_member_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/',"",$chat_member_name); if (!$user) {echo "No user, no using."; exit;} diff --git a/agc_2-X/trunk/www/vicidial/AST_AMD_log_report.php b/agc_2-X/trunk/www/vicidial/AST_AMD_log_report.php index 52b1d879..b7c21610 100644 --- a/agc_2-X/trunk/www/vicidial/AST_AMD_log_report.php +++ b/agc_2-X/trunk/www/vicidial/AST_AMD_log_report.php @@ -47,6 +47,7 @@ if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_d elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];} $START_TIME=date("U"); +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### diff --git a/agc_2-X/trunk/www/vicidial/AST_API_log_report.php b/agc_2-X/trunk/www/vicidial/AST_API_log_report.php index b66e9e14..f40dd31a 100644 --- a/agc_2-X/trunk/www/vicidial/AST_API_log_report.php +++ b/agc_2-X/trunk/www/vicidial/AST_API_log_report.php @@ -58,6 +58,8 @@ if (isset($_GET["show_urls"])) {$show_urls=$_GET["show_urls"];} if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + $report_name="API Log Report"; $NOW_DATE = date("Y-m-d"); if (!isset($users)) {$users=array();} diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php b/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php index fe4cb2f7..7e0ebff3 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php @@ -75,6 +75,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];} if (strlen($shift)<2) {$shift='ALL';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Inbound Service Level Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php index 114f9f7f..02c9094d 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php @@ -116,6 +116,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search $MT[0]='0'; if (strlen($shift)<2) {$shift='ALL';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Inbound Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php index 8473dba8..0a03ddee 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php @@ -127,6 +127,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search $MT[0]='0'; if (strlen($shift)<2) {$shift='ALL';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Inbound Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php index 2e30a1e8..acdd4969 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php @@ -80,6 +80,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search $MT[0]='0'; if (strlen($shift)<2) {$shift='ALL';} if (strlen($exclude_rollover)<2) {$exclude_rollover='NO';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Inbound Summary Hourly Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_CMstats.php b/agc_2-X/trunk/www/vicidial/AST_CMstats.php index 74fbb198..6eb6efb4 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CMstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_CMstats.php @@ -45,6 +45,8 @@ if (isset($_GET["report_type"])) {$report_type=$_GET["report_type"];} if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];} elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + $report_name = 'Callmenu Survey Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_DIDstats.php b/agc_2-X/trunk/www/vicidial/AST_DIDstats.php index 0a163622..68876862 100644 --- a/agc_2-X/trunk/www/vicidial/AST_DIDstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_DIDstats.php @@ -74,6 +74,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];} if (strlen($shift)<2) {$shift='--';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Inbound DID Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_DIDstats_v2.php b/agc_2-X/trunk/www/vicidial/AST_DIDstats_v2.php index e5937f46..c7c5ad31 100644 --- a/agc_2-X/trunk/www/vicidial/AST_DIDstats_v2.php +++ b/agc_2-X/trunk/www/vicidial/AST_DIDstats_v2.php @@ -45,6 +45,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];} if (strlen($shift)<2) {$shift='--';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Inbound DID Summary Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_GROUP_ALIASstats.php b/agc_2-X/trunk/www/vicidial/AST_GROUP_ALIASstats.php index ba5e8dff..a2045b16 100644 --- a/agc_2-X/trunk/www/vicidial/AST_GROUP_ALIASstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_GROUP_ALIASstats.php @@ -42,6 +42,7 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} if (strlen($shift)<2) {$shift='ALL';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### diff --git a/agc_2-X/trunk/www/vicidial/AST_IVRfilter.php b/agc_2-X/trunk/www/vicidial/AST_IVRfilter.php index 1b3df70b..773af3a1 100644 --- a/agc_2-X/trunk/www/vicidial/AST_IVRfilter.php +++ b/agc_2-X/trunk/www/vicidial/AST_IVRfilter.php @@ -61,6 +61,8 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];} if (isset($_GET["file_download"])) {$file_download=$_GET["file_download"];} elseif (isset($_POST["file_download"])) {$file_download=$_POST["file_download"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + if ($hourly_breakdown) { $date_int=3600; diff --git a/agc_2-X/trunk/www/vicidial/AST_IVRstats.php b/agc_2-X/trunk/www/vicidial/AST_IVRstats.php index aa4a3dc0..af86c8ba 100644 --- a/agc_2-X/trunk/www/vicidial/AST_IVRstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_IVRstats.php @@ -77,6 +77,7 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search if (strlen($shift)<2) {$shift='ALL';} if (strlen($type)<2) {$type='inbound';} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); if ($type == 'inbound') {$report_name = 'Inbound IVR Report';} diff --git a/agc_2-X/trunk/www/vicidial/AST_LAGGED_log_report.php b/agc_2-X/trunk/www/vicidial/AST_LAGGED_log_report.php index eefd6b1e..ebab22cb 100644 --- a/agc_2-X/trunk/www/vicidial/AST_LAGGED_log_report.php +++ b/agc_2-X/trunk/www/vicidial/AST_LAGGED_log_report.php @@ -53,6 +53,7 @@ $NOW_DATE = date("Y-m-d"); if (strlen($query_date_D) < 6) {$query_date_D = "00:00:00";} if (strlen($query_date_T) < 6) {$query_date_T = "23:59:59";} if (!isset($query_date)) {$query_date = $NOW_DATE;} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### diff --git a/agc_2-X/trunk/www/vicidial/AST_LISTS_campaign_stats.php b/agc_2-X/trunk/www/vicidial/AST_LISTS_campaign_stats.php index 72050892..035ed4e8 100644 --- a/agc_2-X/trunk/www/vicidial/AST_LISTS_campaign_stats.php +++ b/agc_2-X/trunk/www/vicidial/AST_LISTS_campaign_stats.php @@ -60,6 +60,8 @@ if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];} elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + $report_name = 'Lists Campaign Statuses Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_LISTS_pass_report.php b/agc_2-X/trunk/www/vicidial/AST_LISTS_pass_report.php index ff62f0d4..ef589ccb 100644 --- a/agc_2-X/trunk/www/vicidial/AST_LISTS_pass_report.php +++ b/agc_2-X/trunk/www/vicidial/AST_LISTS_pass_report.php @@ -57,6 +57,7 @@ if (isset($_GET["use_lists"])) {$use_lists=$_GET["use_lists"];} if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];} elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); $report_name = 'Lists Pass Report'; $db_source = 'M'; diff --git a/agc_2-X/trunk/www/vicidial/AST_LISTS_stats.php b/agc_2-X/trunk/www/vicidial/AST_LISTS_stats.php index c16bffa1..d8faa721 100644 --- a/agc_2-X/trunk/www/vicidial/AST_LISTS_stats.php +++ b/agc_2-X/trunk/www/vicidial/AST_LISTS_stats.php @@ -48,6 +48,8 @@ if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_ if (isset($_GET["campaigns_or_lists_rpt"])) {$campaigns_or_lists_rpt=$_GET["campaigns_or_lists_rpt"];} elseif (isset($_POST["campaigns_or_lists_rpt"])) {$campaigns_or_lists_rpt=$_POST["campaigns_or_lists_rpt"];} +$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); + $report_name = 'Lists Statuses Report'; $db_source = 'M'; $JS_text="