diff --git a/Theme/Backend/monitoring-dashboard.tpl.php b/Theme/Backend/monitoring-dashboard.tpl.php index 7381814..f381b4c 100644 --- a/Theme/Backend/monitoring-dashboard.tpl.php +++ b/Theme/Backend/monitoring-dashboard.tpl.php @@ -22,11 +22,11 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('OS'); ?>printHtml(php_uname('s')); ?> -
getHtml('Version'); ?>printHtml(php_uname('v')); ?> -
getHtml('Release'); ?>printHtml(php_uname('r')); ?> -
getHtml('RAMUsage'); ?>printHtml(memory_get_usage(true)/(1024*1024)); ?> MB -
getHtml('MemoryLimit'); ?>printHtml(ini_get('memory_limit')); ?> +
getHtml('OS'); ?>printHtml(\php_uname('s')); ?> +
getHtml('Version'); ?>printHtml(\php_uname('v')); ?> +
getHtml('Release'); ?>printHtml(\php_uname('r')); ?> +
getHtml('RAMUsage'); ?>printHtml(\memory_get_usage(true)/(1024*1024)); ?> MB +
getHtml('MemoryLimit'); ?>printHtml(\ini_get('memory_limit')); ?>
getHtml('SystemRAM'); ?>printHtml(\phpOMS\System\SystemUtils::getRAM()/(1024)); ?> MB
getHtml('CPUUsage'); ?>printHtml(\phpOMS\System\SystemUtils::getCpuUsage()); ?>%
@@ -48,7 +48,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Notices'); ?>printHtml($logs['notice'] ?? 0); ?> getHtml('Info'); ?>printHtml($logs['info'] ?? 0); ?> getHtml('Debug'); ?>printHtml($logs['debug'] ?? 0); ?> - getHtml('Total'); ?>printHtml(array_sum($logs)); ?> + getHtml('Total'); ?>printHtml(\array_sum($logs)); ?>
diff --git a/Theme/Backend/monitoring-logs-single.tpl.php b/Theme/Backend/monitoring-logs-single.tpl.php index e5b6e55..d24e6f9 100644 --- a/Theme/Backend/monitoring-logs-single.tpl.php +++ b/Theme/Backend/monitoring-logs-single.tpl.php @@ -15,16 +15,16 @@ */ $log = $this->app->logger->getByLine((int) $this->request->getData('id') ?? 1); -$temp = trim($log['backtrace']); +$temp = \trim($log['backtrace']); $log['backtrace'] = \json_decode($temp, true); -$details = '* Uri: `' . trim($log['path']) . "`\n" - . '* Level: `' . trim($log['level']) . "`\n" - . '* Message: `' . trim($log['message']) . "`\n" - . '* File: `' . trim($log['file']) . "`\n" - . '* Line: `' . trim($log['line']) . "`\n" - . '* Version: `' . trim($log['version']) . "`\n" - . '* OS: `' . trim($log['os']) . "`\n\n" +$details = '* Uri: `' . \trim($log['path']) . "`\n" + . '* Level: `' . \trim($log['level']) . "`\n" + . '* Message: `' . \trim($log['message']) . "`\n" + . '* File: `' . \trim($log['file']) . "`\n" + . '* Line: `' . \trim($log['line']) . "`\n" + . '* Version: `' . \trim($log['version']) . "`\n" + . '* OS: `' . \trim($log['os']) . "`\n\n" . "Backtrace: \n\n```\n" . \json_encode($log['backtrace'], JSON_PRETTY_PRINT); echo $this->getData('nav')->render(); ?> @@ -84,7 +84,7 @@ echo $this->getData('nav')->render(); ?>
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 8a827c1..d091113 100644 --- a/Theme/Backend/monitoring-logs.tpl.php +++ b/Theme/Backend/monitoring-logs.tpl.php @@ -13,7 +13,7 @@ /** * @var \phpOMS\Views\View $this */ -$logs = array_reverse($this->app->logger->get(25), true); +$logs = \array_reverse($this->app->logger->get(25), true); echo $this->getData('nav')->render(); ?>