mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-01-24 22:38:41 +00:00
Implement account/group relation and depth handling
This commit is contained in:
parent
260f710235
commit
85d681067d
|
|
@ -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(); ?>
|
|||
<td><?= $file; ?>
|
||||
<td><?= \phpOMS\Security\PhpCode::hasUnicode($source); ?>
|
||||
<td><?= \phpOMS\Security\PhpCode::hasDeprecatedFunction($source); ?>
|
||||
<td><?= \phpOMS\Security\PhpCode::validateFileIntegrity($file, ''); ?>
|
||||
<td><?= \phpOMS\Security\PhpCode::validateFileIntegrity($file, \md5(Rest::request(new Request(new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php'))))); ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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(); ?>
|
|||
<td><?= $this->getHtml('Modified') ?>
|
||||
<td><?= $this->getHtml('Integrity') ?>
|
||||
<tbody>
|
||||
<?php foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); ?>
|
||||
<?php
|
||||
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); ?>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $file; ?>
|
||||
|
|
@ -56,6 +59,52 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= File::changed(__DIR__ . '/../../../../phpOMS/' . $file)->format('Y-m-d'); ?>
|
||||
<td>
|
||||
<?= \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'); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
$files = Directory::listByExtension(__DIR__ . '/../../../../Model/', 'php', 'tests(\/|\\\)');
|
||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../Model/' . $file); ?>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $file; ?>
|
||||
<td><?= PhpCode::hasUnicode($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= File::changed(__DIR__ . '/../../../../Model/' . $file)->format('Y-m-d'); ?>
|
||||
<td>
|
||||
<?= \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'); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
$files = Directory::listByExtension(__DIR__ . '/../../../../Modules/', 'php', 'tests(\/|\\\)');
|
||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../Modules/' . $file); ?>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $file; ?>
|
||||
<td><?= PhpCode::hasUnicode($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||
<td><?= File::changed(__DIR__ . '/../../../../Modules/' . $file)->format('Y-m-d'); ?>
|
||||
<td>
|
||||
<?= \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'); ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user