PHP8 support

This commit is contained in:
bergware
2023-02-27 04:53:05 +01:00
parent e0c7945dff
commit 0ce11576d6
5 changed files with 154 additions and 151 deletions
+5 -3
View File
@@ -14,9 +14,11 @@
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
require_once "$docroot/webGui/include/Wrappers.php";
$dynamix = parse_plugin_cfg('dynamix',true);
$unread = $dynamix['notify']['path']."/unread/";
$archive = $dynamix['notify']['path']."/archive";
extract(parse_plugin_cfg('dynamix',true));
$path = _var($notify,'path','/tmp/notifications');
$unread = "$path/unread/";
$archive = "$path/archive";
$log = $_POST['log']??'';
$filter = $_POST['filter']??false;
$files = strpos($log,'*')===false ? [realpath("$archive/$log")] : glob("$archive/$log",GLOB_NOSORT);