diff --git a/Theme/Backend/monitoring-security-file-list.tpl.php b/Theme/Backend/monitoring-security-file-list.tpl.php
index 41cedec..008d285 100644
--- a/Theme/Backend/monitoring-security-file-list.tpl.php
+++ b/Theme/Backend/monitoring-security-file-list.tpl.php
@@ -10,6 +10,11 @@
* @version 1.0.0
* @link http://website.orange-management.de
*/
+
+use phpOMS\Message\Http\Rest;
+use phpOMS\Message\Http\Request;
+use phpOMS\Uri\Http;
+
/**
* @var \phpOMS\Views\View $this
*/
@@ -34,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
= $file; ?>
| = \phpOMS\Security\PhpCode::hasUnicode($source); ?>
| = \phpOMS\Security\PhpCode::hasDeprecatedFunction($source); ?>
- | = \phpOMS\Security\PhpCode::validateFileIntegrity($file, ''); ?>
+ | = \phpOMS\Security\PhpCode::validateFileIntegrity($file, \md5(Rest::request(new Request(new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php'))))); ?>
diff --git a/Theme/Backend/monitoring-security.tpl.php b/Theme/Backend/monitoring-security.tpl.php
index 6ab1352..90a098a 100644
--- a/Theme/Backend/monitoring-security.tpl.php
+++ b/Theme/Backend/monitoring-security.tpl.php
@@ -14,8 +14,9 @@
use phpOMS\Security\PhpCode;
use phpOMS\System\File\Local\Directory;
use phpOMS\System\File\Local\File;
-
-$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
+use phpOMS\Message\Http\Rest;
+use phpOMS\Message\Http\Request;
+use phpOMS\Uri\Http;
echo $this->getData('nav')->render(); ?>
@@ -48,7 +49,9 @@ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('Modified') ?>
| = $this->getHtml('Integrity') ?>
|
-
+
|
| = $file; ?>
@@ -56,6 +59,52 @@ echo $this->getData('nav')->render(); ?>
| = PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
| = File::changed(__DIR__ . '/../../../../phpOMS/' . $file)->format('Y-m-d'); ?>
|
+ = \phpOMS\Security\PhpCode::validateStringIntegrity(
+ $content,
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/' . $file)
+ )
+ )
+ ) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
+
+
+ |
+ |
+ | = $file; ?>
+ | = PhpCode::hasUnicode($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
+ | = PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
+ | = File::changed(__DIR__ . '/../../../../Model/' . $file)->format('Y-m-d'); ?>
+ |
+ = \phpOMS\Security\PhpCode::validateStringIntegrity(
+ $content,
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/Model/develop/' . $file)
+ )
+ )
+ ) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
+
+
+ |
+ |
+ | = $file; ?>
+ | = PhpCode::hasUnicode($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
+ | = PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
+ | = File::changed(__DIR__ . '/../../../../Modules/' . $file)->format('Y-m-d'); ?>
+ |
+ = \phpOMS\Security\PhpCode::validateStringIntegrity(
+ $content,
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/Modules/develop/' . $file)
+ )
+ )
+ ) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|