diff --git a/Theme/Backend/monitoring-dashboard.tpl.php b/Theme/Backend/monitoring-dashboard.tpl.php
index c58c2c8..f1cc78b 100644
--- a/Theme/Backend/monitoring-dashboard.tpl.php
+++ b/Theme/Backend/monitoring-dashboard.tpl.php
@@ -23,13 +23,13 @@ echo $this->getData('nav')->render(); ?>
- | = $this->getHtml('OS'); ?> | = htmlspecialchars(php_uname('s'), ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Version'); ?> | = htmlspecialchars(php_uname('v'), ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Release'); ?> | = htmlspecialchars(php_uname('r'), ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('RAMUsage'); ?> | = htmlspecialchars(memory_get_usage(true)/(1024*1024), ENT_COMPAT, 'utf-8'); ?> MB
- |
| = $this->getHtml('MemoryLimit'); ?> | = htmlspecialchars(ini_get('memory_limit'), ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('SystemRAM'); ?> | = htmlspecialchars(\phpOMS\System\SystemUtils::getRAM()/(1024), ENT_COMPAT, 'utf-8'); ?> MB
- |
| = $this->getHtml('CPUUsage'); ?> | = htmlspecialchars(\phpOMS\System\SystemUtils::getCpuUsage(), ENT_COMPAT, 'utf-8'); ?>%
+ |
| = $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()); ?>%
|
@@ -41,15 +41,15 @@ echo $this->getData('nav')->render(); ?>
- | = $this->getHtml('Emergencies'); ?> | = htmlspecialchars($logs['emergency'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Criticals'); ?> | = htmlspecialchars($logs['critical'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Errors'); ?> | = htmlspecialchars($logs['error'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Warnings'); ?> | = htmlspecialchars($logs['warning'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Alerts'); ?> | = htmlspecialchars($logs['alert'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Notices'); ?> | = htmlspecialchars($logs['notice'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Info'); ?> | = htmlspecialchars($logs['info'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Debug'); ?> | = htmlspecialchars($logs['debug'] ?? 0, ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getHtml('Total'); ?> | = htmlspecialchars(array_sum($logs), ENT_COMPAT, 'utf-8'); ?>
+ |
| = $this->getHtml('Emergencies'); ?> | = $this->printHtml($logs['emergency'] ?? 0); ?>
+ |
| = $this->getHtml('Criticals'); ?> | = $this->printHtml($logs['critical'] ?? 0); ?>
+ |
| = $this->getHtml('Errors'); ?> | = $this->printHtml($logs['error'] ?? 0); ?>
+ |
| = $this->getHtml('Warnings'); ?> | = $this->printHtml($logs['warning'] ?? 0); ?>
+ |
| = $this->getHtml('Alerts'); ?> | = $this->printHtml($logs['alert'] ?? 0); ?>
+ |
| = $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)); ?>
|
@@ -62,7 +62,7 @@ echo $this->getData('nav')->render(); ?>
$count) : ?>
- | = htmlspecialchars($ip, ENT_COMPAT, 'utf-8'); ?> | = htmlspecialchars($count, ENT_COMPAT, 'utf-8'); ?>
+ |
| = $this->printHtml($ip); ?> | = $this->printHtml($count); ?>
|
diff --git a/Theme/Backend/monitoring-logs-single.tpl.php b/Theme/Backend/monitoring-logs-single.tpl.php
index 993fce5..38bf31c 100644
--- a/Theme/Backend/monitoring-logs-single.tpl.php
+++ b/Theme/Backend/monitoring-logs-single.tpl.php
@@ -40,52 +40,52 @@ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('ID', 0, 0); ?>
|
- | = htmlspecialchars((int) $this->request->getData('id') ?? 0, ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml((int) $this->request->getData('id') ?? 0); ?>
|
| = $this->getHtml('Time') ?>
|
- | = htmlspecialchars($log['datetime'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['datetime']); ?>
|
| = $this->getHtml('Uri') ?>
|
- | = htmlspecialchars($log['path'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['path']); ?>
|
| = $this->getHtml('Source') ?>
|
- | = htmlspecialchars($log['ip'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['ip']); ?>
|
| = $this->getHtml('Level') ?>
|
-
- | = htmlspecialchars($log['level'], ENT_COMPAT, 'utf-8'); ?>
+
+ | = $this->printHtml($log['level']); ?>
|
| = $this->getHtml('Message') ?>
|
- | = htmlspecialchars($log['message'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['message']); ?>
|
| = $this->getHtml('File') ?>
|
- | = htmlspecialchars($log['file'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['file']); ?>
|
| = $this->getHtml('Line') ?>
|
- | = htmlspecialchars($log['line'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['line']); ?>
|
| = $this->getHtml('Version') ?>
|
- | = htmlspecialchars($log['version'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['version']); ?>
|
| = $this->getHtml('OS') ?>
|
- | = htmlspecialchars($log['os'], ENT_COMPAT, 'utf-8'); ?>
+ | = $this->printHtml($log['os']); ?>
|
| = $this->getHtml('Backtrace') ?>
|
- = htmlspecialchars(json_encode($log['backtrace'], JSON_PRETTY_PRINT), ENT_COMPAT, 'utf-8'); ?>
+ = $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 13338ad..0f0343c 100644
--- a/Theme/Backend/monitoring-logs.tpl.php
+++ b/Theme/Backend/monitoring-logs.tpl.php
@@ -43,10 +43,10 @@ echo $this->getData('nav')->render(); ?>
$value) :
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/monitoring/logs/single?{?}&id=' . $key);?>
|
- | > = htmlspecialchars($value[0] ?? '', ENT_COMPAT, 'utf-8'); ?>
- | > = htmlspecialchars($value[1] ?? '', ENT_COMPAT, 'utf-8'); ?>
- | > = htmlspecialchars($value[2] ?? '', ENT_COMPAT, 'utf-8'); ?>
- | > = htmlspecialchars($value[7] ?? '', ENT_COMPAT, 'utf-8'); ?>
+ | printHtml($url); ?>> = $this->printHtml($value[0] ?? ''); ?>
+ | printHtml($url); ?>> = $this->printHtml($value[1] ?? ''); ?>
+ | printHtml($url); ?>> = $this->printHtml($value[2] ?? ''); ?>
+ | printHtml($url); ?>> = $this->printHtml($value[7] ?? ''); ?>
|