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(); ?>
- | = $this->getHtml('OS'); ?> | = $this->printHtml(php_uname('s')); ?>
- |
| = $this->getHtml('Version'); ?> | = $this->printHtml(php_uname('v')); ?>
- |
| = $this->getHtml('Release'); ?> | = $this->printHtml(php_uname('r')); ?>
- |
| = $this->getHtml('RAMUsage'); ?> | = $this->printHtml(memory_get_usage(true)/(1024*1024)); ?> MB
- |
| = $this->getHtml('MemoryLimit'); ?> | = $this->printHtml(ini_get('memory_limit')); ?>
+ |
| = $this->getHtml('OS'); ?> | = $this->printHtml(\php_uname('s')); ?>
+ |
| = $this->getHtml('Version'); ?> | = $this->printHtml(\php_uname('v')); ?>
+ |
| = $this->getHtml('Release'); ?> | = $this->printHtml(\php_uname('r')); ?>
+ |
| = $this->getHtml('RAMUsage'); ?> | = $this->printHtml(\memory_get_usage(true)/(1024*1024)); ?> MB
+ |
| = $this->getHtml('MemoryLimit'); ?> | = $this->printHtml(\ini_get('memory_limit')); ?>
|
| = $this->getHtml('SystemRAM'); ?> | = $this->printHtml(\phpOMS\System\SystemUtils::getRAM()/(1024)); ?> MB
|
| = $this->getHtml('CPUUsage'); ?> | = $this->printHtml(\phpOMS\System\SystemUtils::getCpuUsage()); ?>%
|
@@ -48,7 +48,7 @@ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('Notices'); ?> | = $this->printHtml($logs['notice'] ?? 0); ?>
|
| = $this->getHtml('Info'); ?> | = $this->printHtml($logs['info'] ?? 0); ?>
|
| = $this->getHtml('Debug'); ?> | = $this->printHtml($logs['debug'] ?? 0); ?>
- |
| = $this->getHtml('Total'); ?> | = $this->printHtml(array_sum($logs)); ?>
+ |
| = $this->getHtml('Total'); ?> | = $this->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(); ?>
= $this->printHtml(\json_encode($log['backtrace'], JSON_PRETTY_PRINT)); ?>
|
| = $this->getHtml('Report') ?>
+ href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title== $this->printHtml(\urlencode($log['message'])); ?>&details== $this->printHtml(\urlencode($details)); ?>">= $this->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(); ?>
|