diff --git a/agc_2-X/trunk/www/agc/active_list_refresh.php b/agc_2-X/trunk/www/agc/active_list_refresh.php index 26794c8a..3d9be2c0 100644 --- a/agc_2-X/trunk/www/agc/active_list_refresh.php +++ b/agc_2-X/trunk/www/agc/active_list_refresh.php @@ -44,8 +44,8 @@ # 130802-0957 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} diff --git a/agc_2-X/trunk/www/agc/api.php b/agc_2-X/trunk/www/agc/api.php index 93b0600f..8acd8939 100644 --- a/agc_2-X/trunk/www/agc/api.php +++ b/agc_2-X/trunk/www/agc/api.php @@ -75,8 +75,8 @@ $build = '130802-1000'; $startMS = microtime(); -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); $query_string = getenv("QUERY_STRING"); diff --git a/agc_2-X/trunk/www/agc/astguiclient.php b/agc_2-X/trunk/www/agc/astguiclient.php index 5c6f61d6..ad01017e 100644 --- a/agc_2-X/trunk/www/agc/astguiclient.php +++ b/agc_2-X/trunk/www/agc/astguiclient.php @@ -64,8 +64,8 @@ # 130802-1002 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} diff --git a/agc_2-X/trunk/www/agc/audit_comments.php b/agc_2-X/trunk/www/agc/audit_comments.php index 77eea6c3..ff41cc6b 100644 --- a/agc_2-X/trunk/www/agc/audit_comments.php +++ b/agc_2-X/trunk/www/agc/audit_comments.php @@ -10,7 +10,7 @@ # 130802-0957 - Changed to PHP mysqli functions # -require("functions.php"); +require_once("functions.php"); function audit_comments($lead_id,$list_id,$format,$user,$mel,$NOW_TIME,$link,$server_ip,$session_name,$one_mysql_log,$campaign) { $audit_comments_active=audit_comments_active($list_id,$format,$user,$mel,$NOW_TIME,$link,$server_ip,$session_name,$one_mysql_log); diff --git a/agc_2-X/trunk/www/agc/call_log_display.php b/agc_2-X/trunk/www/agc/call_log_display.php index 24bc6c8f..bde03ff8 100644 --- a/agc_2-X/trunk/www/agc/call_log_display.php +++ b/agc_2-X/trunk/www/agc/call_log_display.php @@ -35,8 +35,8 @@ # 130802-1005 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} 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 d67dc337..37fed82e 100644 --- a/agc_2-X/trunk/www/agc/conf_exten_check.php +++ b/agc_2-X/trunk/www/agc/conf_exten_check.php @@ -70,8 +70,8 @@ $mysql_log_count=39; $one_mysql_log=0; $DB=0; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); $bcrypt=1; diff --git a/agc_2-X/trunk/www/agc/deactivate_lead.php b/agc_2-X/trunk/www/agc/deactivate_lead.php index cbe5d4bb..667d239f 100644 --- a/agc_2-X/trunk/www/agc/deactivate_lead.php +++ b/agc_2-X/trunk/www/agc/deactivate_lead.php @@ -33,8 +33,8 @@ $api_script = 'deactivate'; header ("Content-type: text/html; charset=utf-8"); -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); $filedate = date("Ymd"); $filetime = date("H:i:s"); 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 c652caef..13743ef7 100644 --- a/agc_2-X/trunk/www/agc/dispo_move_list.php +++ b/agc_2-X/trunk/www/agc/dispo_move_list.php @@ -40,8 +40,8 @@ $api_script = 'deactivate'; header ("Content-type: text/html; charset=utf-8"); -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); $filedate = date("Ymd"); $filetime = date("H:i:s"); diff --git a/agc_2-X/trunk/www/agc/inbound_popup.php b/agc_2-X/trunk/www/agc/inbound_popup.php index 9bda7644..a860ee80 100644 --- a/agc_2-X/trunk/www/agc/inbound_popup.php +++ b/agc_2-X/trunk/www/agc/inbound_popup.php @@ -36,8 +36,8 @@ # 130802-1008 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} diff --git a/agc_2-X/trunk/www/agc/live_exten_check.php b/agc_2-X/trunk/www/agc/live_exten_check.php index c61b5efe..bb434cf3 100644 --- a/agc_2-X/trunk/www/agc/live_exten_check.php +++ b/agc_2-X/trunk/www/agc/live_exten_check.php @@ -36,8 +36,8 @@ # 130802-1009 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} diff --git a/agc_2-X/trunk/www/agc/manager_send.php b/agc_2-X/trunk/www/agc/manager_send.php index fa1a093f..07d6e692 100644 --- a/agc_2-X/trunk/www/agc/manager_send.php +++ b/agc_2-X/trunk/www/agc/manager_send.php @@ -125,8 +125,8 @@ $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=119; $one_mysql_log=0; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### These are variable assignments for PHP globals off if (isset($_GET["user"])) {$user=$_GET["user"];} diff --git a/agc_2-X/trunk/www/agc/park_calls_display.php b/agc_2-X/trunk/www/agc/park_calls_display.php index cd00665e..f247b455 100644 --- a/agc_2-X/trunk/www/agc/park_calls_display.php +++ b/agc_2-X/trunk/www/agc/park_calls_display.php @@ -28,8 +28,8 @@ # 130802-1024 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} diff --git a/agc_2-X/trunk/www/agc/phone_only.php b/agc_2-X/trunk/www/agc/phone_only.php index e66f40ec..d29305d3 100644 --- a/agc_2-X/trunk/www/agc/phone_only.php +++ b/agc_2-X/trunk/www/agc/phone_only.php @@ -20,8 +20,8 @@ $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=73; $one_mysql_log=0; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} @@ -137,7 +137,7 @@ $SIDEBAR_COLOR = '#F6F6F6'; # see the options-example.php file for more information if (file_exists('options.php')) { - require('options.php'); + require_once('options.php'); } $US='_'; diff --git a/agc_2-X/trunk/www/agc/timeclock.php b/agc_2-X/trunk/www/agc/timeclock.php index 10da1519..5692f858 100644 --- a/agc_2-X/trunk/www/agc/timeclock.php +++ b/agc_2-X/trunk/www/agc/timeclock.php @@ -88,8 +88,8 @@ $stage=preg_replace("/[^0-9a-zA-Z]/","",$stage); $commit=preg_replace("/[^0-9a-zA-Z]/","",$commit); $referrer=preg_replace("/[^0-9a-zA-Z]/","",$referrer); -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### 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 acc8751d..d8b03484 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -343,8 +343,8 @@ $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=533; $one_mysql_log=0; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];} 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 46773750..87449297 100644 --- a/agc_2-X/trunk/www/agc/vdc_email_display.php +++ b/agc_2-X/trunk/www/agc/vdc_email_display.php @@ -18,8 +18,8 @@ # 130802-1032 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} 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 4fb78274..6a154980 100644 --- a/agc_2-X/trunk/www/agc/vdc_form_display.php +++ b/agc_2-X/trunk/www/agc/vdc_form_display.php @@ -27,7 +27,7 @@ $version = '2.8-13'; $build = '130802-1033'; -require("dbconnect_mysqli.php"); +require_once("dbconnect_mysqli.php"); require_once("functions.php"); $bcrypt=1; 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 974f6b03..bcb270d3 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_display.php +++ b/agc_2-X/trunk/www/agc/vdc_script_display.php @@ -27,8 +27,8 @@ $version = '2.8-16'; $build = '130802-1035'; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];} elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];} 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 74db0578..ae0135e8 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 @@ -22,8 +22,8 @@ $version = '2.8-5'; $build = '130802-1036'; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); # Configuration settings- 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 726454e9..67c2fddb 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_notes.php +++ b/agc_2-X/trunk/www/agc/vdc_script_notes.php @@ -20,8 +20,8 @@ $version = '2.8-5'; $build = '130802-1037'; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); if (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];} diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 0d4ade58..6297784e 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -408,16 +408,17 @@ # 130705-1439 - Added optional encrypted passwords compatibility # 130718-0745 - Added recording_filename to dispo_call_url # 130802-1134 - Changed to PHP mysqli functions +# 130822-0656 - Changed all require to require_once in agc directory for PHP backward compatibility # -$version = '2.8-377c'; -$build = '130802-1134'; +$version = '2.8-378c'; +$build = '130822-0656'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=79; $one_mysql_log=0; -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} @@ -579,7 +580,7 @@ $SIDEBAR_COLOR = '#F6F6F6'; # see the options-example.php file for more information if (file_exists('options.php')) { - require('options.php'); + require_once('options.php'); } ### BEGIN find any custom field labels ### diff --git a/agc_2-X/trunk/www/agc/voicemail_check.php b/agc_2-X/trunk/www/agc/voicemail_check.php index 5d75ae75..3df61d0f 100644 --- a/agc_2-X/trunk/www/agc/voicemail_check.php +++ b/agc_2-X/trunk/www/agc/voicemail_check.php @@ -28,8 +28,8 @@ # 130802-1038 - Changed to PHP mysqli functions # -require("dbconnect_mysqli.php"); -require("functions.php"); +require_once("dbconnect_mysqli.php"); +require_once("functions.php"); ### If you have globals turned off uncomment these lines if (isset($_GET["user"])) {$user=$_GET["user"];}