Code updates for PHP8 compatibility in all PHP scripts

Added PHP_error_reporting_OVERRIDE options for each web directory

git-svn-id: svn://192.168.202.10@3863 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2024-08-06 15:02:09 +00:00
parent 3226d9b172
commit 0820807d85
121 changed files with 1421 additions and 967 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_agentDIDstats.php
#
# Copyright (C) 2023 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2024 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -11,6 +11,7 @@
# 191013-0836 - Fixes for PHP7
# 220303-1422 - Added allow_web_debug system setting
# 230526-1740 - Patch for user_group bug, related to Issue #1346
# 240801-1130 - Code updates for PHP8 compatibility
#
$startMS = microtime();
@@ -48,7 +49,7 @@ $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
$STARTtime = date("U");
if (!isset($group)) {$group = array();}
if (!is_array($group)) {$group = array();}
if (!isset($query_date)) {$query_date = $NOW_DATE;}
if (!isset($end_date)) {$end_date = $NOW_DATE;}
if ($file_download>0) {$DB="";}