Small fixes for PHP8 changes
git-svn-id: svn://192.168.202.10@3864 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -175,7 +175,7 @@ foreach ($answered_array as $prefix => $data)
|
||||
$CSV_output["answered_area"].="\"".$prefix."\",";
|
||||
$CSV_output["answered_area"].="\"".$data["calls"]."\",";
|
||||
$CSV_output["answered_area"].="\"".$call_time."\",";
|
||||
$CSV_output["answered_area"].="\"".$average_time."\",";
|
||||
$CSV_output["answered_area"].="\"".$average_time_str."\",";
|
||||
$CSV_output["answered_area"].="\"".$average_wait_time."\"";
|
||||
$CSV_output["answered_area"].="\n";
|
||||
|
||||
@@ -211,7 +211,7 @@ foreach ($unanswered_array as $prefix => $data)
|
||||
$call_time=($data["call_time"]>=3600 ? intval(floor($data["call_time"]/3600)).date(":i:s", $data["call_time"]) : intval(date("i", $data["call_time"])).":".date("s", $data["call_time"]));
|
||||
|
||||
$average_position=sprintf("%.1f", ($data["position"]/$data["calls"]));
|
||||
$average_time=($average_time>=3600 ? intval(floor($average_time/3600)).date(":i:s", $average_time) : intval(date("i", $average_time)).":".date("s", $average_time));
|
||||
# $average_time=($average_time>=3600 ? intval(floor($average_time/3600)).date(":i:s", $average_time) : intval(date("i", $average_time)).":".date("s", $average_time));
|
||||
|
||||
$average_wait_time=round($data["wait_time"]/$data["calls"]);
|
||||
$average_wait_time=($average_wait_time>=3600 ? intval(floor($average_wait_time/3600)).date(":i:s", $average_wait_time) : intval(date("i", $average_wait_time)).":".date("s", $average_wait_time));
|
||||
|
||||
@@ -273,7 +273,7 @@ $CSV_output["answered_call_distribution"]="\""._QXZ("Day")."\",\""._QXZ("Num")."
|
||||
$max_avg_call_length=0;
|
||||
foreach ($calls_array as $call_date_key => $call_date_data) # Use calls array here to iterate through all dates that have calls
|
||||
{
|
||||
$avg_call_length=round($answered_calls_array["$call_date_key"]["total_length"]/($answered_calls_array["$call_date_key"]["inbound"]+$answered_calls_array["$call_date_key"]["outbound"]));
|
||||
$avg_call_length=round(MathZDC($answered_calls_array["$call_date_key"]["total_length"], ($answered_calls_array["$call_date_key"]["inbound"]+$answered_calls_array["$call_date_key"]["outbound"])));
|
||||
$answered_calls_array["$call_date_key"]["avg_call_length"]=$avg_call_length+0;
|
||||
if ($max_avg_call_length<$avg_call_length) {$max_avg_call_length=$avg_call_length;}
|
||||
}
|
||||
@@ -336,7 +336,7 @@ $CSV_output["answered_call_wait_time"]="\""._QXZ("Day")."\",\""._QXZ("Num")."\",
|
||||
$max_avg_wait_time=0;
|
||||
foreach ($calls_array as $call_date_key => $call_date_data)
|
||||
{
|
||||
$avg_wait_time=round($answered_calls_array["$call_date_key"]["total_wait"]/($answered_calls_array["$call_date_key"]["inbound"]+$answered_calls_array["$call_date_key"]["outbound"]));
|
||||
$avg_wait_time=round(MathZDC($answered_calls_array["$call_date_key"]["total_wait"], ($answered_calls_array["$call_date_key"]["inbound"]+$answered_calls_array["$call_date_key"]["outbound"])));
|
||||
$answered_calls_array["$call_date_key"]["avg_wait_time"]=$avg_wait_time+0;
|
||||
if ($max_avg_wait_time<$avg_wait_time) {$max_avg_wait_time=$avg_wait_time;}
|
||||
}
|
||||
|
||||
@@ -232,11 +232,13 @@ if ($vicidial_queue_group)
|
||||
$vqg_row=mysqli_fetch_array($vqg_rslt);
|
||||
$queue_group_name=$vqg_row["queue_group_name"];
|
||||
$included_campaigns=trim(preg_replace('/\s\-$/', '', $vqg_row["included_campaigns"]));
|
||||
$included_campaigns_array=sort(explode(" ", $included_campaigns));
|
||||
$included_campaigns_array=explode(" ", $included_campaigns);
|
||||
sort($included_campaigns_array);
|
||||
$included_campaigns_ct=count($included_campaigns_array);
|
||||
$included_campaigns_clause="and campaign_id in ('".preg_replace('/\s/', "', '", $included_campaigns)."')";
|
||||
$included_inbound_groups=trim(preg_replace('/\s\-$/', '', $vqg_row["included_inbound_groups"]));
|
||||
$included_inbound_groups_array=sort(explode(" ", $included_inbound_groups));
|
||||
$included_inbound_groups_array=explode(" ", $included_inbound_groups);
|
||||
sort($included_inbound_groups_array);
|
||||
$included_inbound_groups_ct=count($included_inbound_groups_array);
|
||||
$included_inbound_groups_clause="and group_id in ('".preg_replace('/\s/', "', '", $included_inbound_groups)."')";
|
||||
$where_included_inbound_groups_clause="where group_id in ('".preg_replace('/\s/', "', '", $included_inbound_groups)."')";
|
||||
|
||||
@@ -78,7 +78,7 @@ $pass=preg_replace("/\'|\"|\\\\|;| /","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -81,7 +81,7 @@ $pass=preg_replace("/\'|\"|\\\\|;| /","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -124,7 +124,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -92,7 +92,7 @@ else
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$manager_chat_refresh_milliseconds = ($manager_chat_refresh_seconds ? $manager_chat_refresh_seconds*1000 : 1000);
|
||||
|
||||
@@ -306,7 +306,7 @@ $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -123,7 +123,7 @@ $relogin=preg_replace("/[^-_0-9a-zA-Z]/","",$relogin);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
if ($astguiclient_disabled > 0)
|
||||
|
||||
@@ -90,7 +90,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -180,7 +180,7 @@ if ($bcrypt == 'OFF') {$bcrypt=0;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -89,7 +89,7 @@ $pass = preg_replace("/\'|\"|\\\\|;| /","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -78,7 +78,7 @@ $pass=preg_replace("/\'|\"|\\\\|;| /","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -96,7 +96,7 @@ if ( ($in_out_search != 'IN') and ($in_out_search != 'OUT') and ($in_out_search
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -92,7 +92,7 @@ if ( ($in_out_search != 'IN') and ($in_out_search != 'OUT') and ($in_out_search
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -149,7 +149,7 @@ $pass=preg_replace("/\'|\"|\\\\|;| /","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -94,7 +94,7 @@ $pass=preg_replace("/\'|\"|\\\\|;| /","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -184,7 +184,7 @@ $pass=preg_replace("/\'|\"|\\\\|;| |\|/","",$pass);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -96,7 +96,7 @@ if ( (preg_match("/^Zap/i",$channel)) and (!preg_match("/-/i",$channel)) ) {$cha
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -91,7 +91,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -275,7 +275,7 @@ if (isset($_GET["group_id"])) {$group_id=$_GET["group_id"];}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
|
||||
@@ -79,7 +79,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -176,7 +176,7 @@ $SIDEBAR_COLOR = '#F6F6F6';
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$US='_';
|
||||
|
||||
@@ -104,7 +104,7 @@ require_once("functions.php");
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -118,7 +118,7 @@ else
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
if ($DB>0) {echo "$lead_id|$caller_id|$list_id|$field|$value|$user|$DB|$log_to_file|\n";}
|
||||
|
||||
@@ -102,7 +102,7 @@ if ($SSallow_web_debug < 1) {$DB=0;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -885,7 +885,7 @@ $allow_vlc_lookup = '1'; # allow lead lookup by vendor_lead_code
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -74,7 +74,7 @@ $PHP_SELF = preg_replace('/\.php.*/i','.php',$PHP_SELF);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$attachment1=$_FILES["attachment1"];
|
||||
|
||||
@@ -253,7 +253,7 @@ if ($bcrypt == 'OFF')
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -300,7 +300,7 @@ $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -242,7 +242,7 @@ $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -210,7 +210,7 @@ $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -61,7 +61,7 @@ if ($bcrypt == 'OFF')
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -759,7 +759,7 @@ $win_valid_name = 'subwindow_launch'; # only window name to allow if validatio
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$hide_gender=0;
|
||||
|
||||
@@ -1073,7 +1073,7 @@ $INSERT_agent_events = ''; # inserted within the agent_events function
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
##### BEGIN Define colors and logo #####
|
||||
|
||||
@@ -74,7 +74,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -84,7 +84,7 @@ $IR_SLA_all_statuses=0;
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
||||
|
||||
@@ -89,7 +89,7 @@ $IR_SLA_all_statuses=0;
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
||||
|
||||
@@ -185,7 +185,7 @@ $regexLOGadmin_viewable_groups = " $LOGadmin_viewable_groups ";
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -19,7 +19,7 @@ require("functions.php");
|
||||
# see the options-example.php file for more information
|
||||
if (file_exists('options.php'))
|
||||
{
|
||||
require_once('options.php');
|
||||
require('options.php');
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
Reference in New Issue
Block a user