diff --git a/Theme/Backend/monitoring-security-file-list.tpl.php b/Theme/Backend/monitoring-security-file-list.tpl.php
index e3e5508..1c0163d 100644
--- a/Theme/Backend/monitoring-security-file-list.tpl.php
+++ b/Theme/Backend/monitoring-security-file-list.tpl.php
@@ -21,26 +21,35 @@ use phpOMS\Uri\Http;
$files = \phpOMS\System\File\Local\Directory(__DIR__ . '/../../../../phpOMS', '^.+\.php$');
-echo $this->getData('nav')->render(); ?>
-
-
-
-
- = $this->getHtml('Files') ?>
-
-
- | = $this->getHtml('File') ?>
- | = $this->getHtml('Unicode') ?>
- | = $this->getHtml('Deprecated') ?>
- | = $this->getHtml('Integrity') ?>
- |
- $file) : $source = \file_get_contents($file); ?>
-
- | = $file; ?>
- | = \phpOMS\Security\PhpCode::hasUnicode($source); ?>
- | = \phpOMS\Security\PhpCode::hasDeprecatedFunction($source); ?>
- | = \phpOMS\Security\PhpCode::validateFileIntegrity($file, \md5(Rest::request(new Request(new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php'))))); ?>
-
- |
-
-
+echo $this->getData('nav')->render(); ?>
+
+
+
+
+ = $this->getHtml('Files') ?>
+
+
+ | = $this->getHtml('File') ?>
+ | = $this->getHtml('Unicode') ?>
+ | = $this->getHtml('Deprecated') ?>
+ | = $this->getHtml('Integrity') ?>
+ |
+ $file) : $source = \file_get_contents($file); ?>
+
+ | = $file; ?>
+ | = \phpOMS\Security\PhpCode::hasUnicode($source); ?>
+ | = \phpOMS\Security\PhpCode::hasDeprecatedFunction($source); ?>
+ | = \phpOMS\Security\PhpCode::validateFileIntegrity(
+ $file,
+ \md5(
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php')
+ )
+ )->getBody()
+ )
+ ); ?>
+
+ |
+
+
diff --git a/Theme/Backend/monitoring-security.tpl.php b/Theme/Backend/monitoring-security.tpl.php
index 4e4f8ed..ca945b5 100644
--- a/Theme/Backend/monitoring-security.tpl.php
+++ b/Theme/Backend/monitoring-security.tpl.php
@@ -1,23 +1,23 @@
-getData('nav')->render(); ?>
@@ -49,8 +49,8 @@ echo $this->getData('nav')->render(); ?>
= $this->getHtml('Modified') ?>
| = $this->getHtml('Integrity') ?>
|
-
|
@@ -59,17 +59,17 @@ 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)
- )
- )
+ = \phpOMS\Security\PhpCode::validateStringIntegrity(
+ $content,
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/' . $file)
+ )
+ )->getBody()
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
-
|
|
@@ -78,17 +78,17 @@ echo $this->getData('nav')->render(); ?>
| = 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)
- )
- )
+ = \phpOMS\Security\PhpCode::validateStringIntegrity(
+ $content,
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/Model/develop/' . $file)
+ )
+ )->getBody()
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
-
|
|
@@ -97,13 +97,13 @@ echo $this->getData('nav')->render(); ?>
| = 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)
- )
- )
+ = \phpOMS\Security\PhpCode::validateStringIntegrity(
+ $content,
+ Rest::request(
+ new Request(
+ new Http('https://raw.githubusercontent.com/Orange-Management/Modules/develop/' . $file)
+ )
+ )->getBody()
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|