diff --git a/Models/PermissionState.php b/Models/PermissionState.php index dd45c96..5417793 100755 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionState extends Enum { public const DASHBOARD = 1; + public const LOG = 2; + public const SECURITY = 3; } diff --git a/Theme/Backend/monitoring-logs-single.tpl.php b/Theme/Backend/monitoring-logs-single.tpl.php index bc41f93..5176a15 100755 --- a/Theme/Backend/monitoring-logs-single.tpl.php +++ b/Theme/Backend/monitoring-logs-single.tpl.php @@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
-

getHtml('Logs') ?>

+

getHtml('Logs'); ?>

@@ -43,50 +43,50 @@ echo $this->getData('nav')->render(); ?> - - - - - - - - - -
printHtml((int) $this->request->getData('id') ?? 0); ?>
getHtml('Time') ?> + getHtml('Time'); ?> printHtml($log['datetime']); ?>
getHtml('Uri') ?> + getHtml('Uri'); ?> printHtml($log['path']); ?>
getHtml('Source') ?> + getHtml('Source'); ?> printHtml($log['ip']); ?>
getHtml('Level') ?> + getHtml('Level'); ?> printHtml($log['level']); ?>
getHtml('Message') ?> + getHtml('Message'); ?> printHtml($log['message']); ?>
getHtml('File') ?> + getHtml('File'); ?> printHtml($log['file']); ?>
getHtml('Line') ?> + getHtml('Line'); ?> printHtml($log['line']); ?>
getHtml('Version') ?> + getHtml('Version'); ?> printHtml($log['version']); ?>
getHtml('OS') ?> + getHtml('OS'); ?> printHtml($log['os']); ?>
getHtml('Backtrace') ?> + getHtml('Backtrace'); ?>
printHtml(\json_encode($log['backtrace'], \JSON_PRETTY_PRINT)); ?>
getHtml('Report') ?> + href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=printHtml(\urlencode($log['message'])); ?>&details=printHtml(\urlencode($details)); ?>">getHtml('Report'); ?>
diff --git a/Theme/Backend/monitoring-logs.tpl.php b/Theme/Backend/monitoring-logs.tpl.php index 290ad0a..a2fe96d 100755 --- a/Theme/Backend/monitoring-logs.tpl.php +++ b/Theme/Backend/monitoring-logs.tpl.php @@ -22,19 +22,19 @@ echo $this->getData('nav')->render(); ?>
- + - $value) : - $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/monitoring/logs/single?{?}&id=' . $key);?> + $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/monitoring/logs/single?{?}&id=' . $key); ?>
getHtml('Logs') ?>getHtml('Logs'); ?>
getHtml('Timestamp') ?> - getHtml('Level') ?> - getHtml('Source') ?> - getHtml('Message') ?> + getHtml('Timestamp'); ?> + getHtml('Level'); ?> + getHtml('Source'); ?> + getHtml('Message'); ?>
printHtml($url); ?>> printHtml($value[0] ?? ''); ?> printHtml($url); ?>> printHtml($value[1] ?? ''); ?> diff --git a/Theme/Backend/monitoring-security-file-list.tpl.php b/Theme/Backend/monitoring-security-file-list.tpl.php index 910f7e5..3d618f3 100755 --- a/Theme/Backend/monitoring-security-file-list.tpl.php +++ b/Theme/Backend/monitoring-security-file-list.tpl.php @@ -28,13 +28,13 @@ echo $this->getData('nav')->render(); ?>
- + - $file) : $source = \file_get_contents($file); ?> diff --git a/Theme/Backend/monitoring-security.tpl.php b/Theme/Backend/monitoring-security.tpl.php index 63dacb6..e481b66 100755 --- a/Theme/Backend/monitoring-security.tpl.php +++ b/Theme/Backend/monitoring-security.tpl.php @@ -41,15 +41,15 @@ echo $this->getData('nav')->render(); ?>
getHtml('Files') ?>getHtml('Files'); ?>
getHtml('File') ?> - getHtml('Unicode') ?> - getHtml('Deprecated') ?> - getHtml('Integrity') ?> + getHtml('File'); ?> + getHtml('Unicode'); ?> + getHtml('Deprecated'); ?> + getHtml('Integrity'); ?>
- + -
getHtml('Inspection') ?>getHtml('Inspection'); ?>
getHtml('Status') ?> - getHtml('File') ?> - getHtml('Unicode') ?> - getHtml('Deprecated') ?> - getHtml('Modified') ?> - getHtml('Integrity') ?> + getHtml('Status'); ?> + getHtml('File'); ?> + getHtml('Unicode'); ?> + getHtml('Deprecated'); ?> + getHtml('Modified'); ?> + getHtml('Integrity'); ?>