mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-02-13 07:48:40 +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
|
* @version 1.0.0
|
||||||
* @link http://website.orange-management.de
|
* @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
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
|
|
@ -34,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td><?= $file; ?>
|
<td><?= $file; ?>
|
||||||
<td><?= \phpOMS\Security\PhpCode::hasUnicode($source); ?>
|
<td><?= \phpOMS\Security\PhpCode::hasUnicode($source); ?>
|
||||||
<td><?= \phpOMS\Security\PhpCode::hasDeprecatedFunction($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; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,9 @@
|
||||||
use phpOMS\Security\PhpCode;
|
use phpOMS\Security\PhpCode;
|
||||||
use phpOMS\System\File\Local\Directory;
|
use phpOMS\System\File\Local\Directory;
|
||||||
use phpOMS\System\File\Local\File;
|
use phpOMS\System\File\Local\File;
|
||||||
|
use phpOMS\Message\Http\Rest;
|
||||||
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
use phpOMS\Message\Http\Request;
|
||||||
|
use phpOMS\Uri\Http;
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
|
@ -48,7 +49,9 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td><?= $this->getHtml('Modified') ?>
|
<td><?= $this->getHtml('Modified') ?>
|
||||||
<td><?= $this->getHtml('Integrity') ?>
|
<td><?= $this->getHtml('Integrity') ?>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<td><?= $file; ?>
|
<td><?= $file; ?>
|
||||||
|
|
@ -56,6 +59,52 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td><?= PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
<td><?= PhpCode::hasDeprecatedFunction($content) ? $this->getHtml('NG') : $this->getHtml('OK'); ?>
|
||||||
<td><?= File::changed(__DIR__ . '/../../../../phpOMS/' . $file)->format('Y-m-d'); ?>
|
<td><?= File::changed(__DIR__ . '/../../../../phpOMS/' . $file)->format('Y-m-d'); ?>
|
||||||
<td>
|
<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; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user