mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-02-13 15:58:41 +00:00
Implement changed rest usage
This commit is contained in:
parent
185e3a0491
commit
b8e097dc2b
|
|
@ -21,26 +21,35 @@ use phpOMS\Uri\Http;
|
||||||
|
|
||||||
$files = \phpOMS\System\File\Local\Directory(__DIR__ . '/../../../../phpOMS', '^.+\.php$');
|
$files = \phpOMS\System\File\Local\Directory(__DIR__ . '/../../../../phpOMS', '^.+\.php$');
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="box col-xs-12 wf-100">
|
<div class="box col-xs-12 wf-100">
|
||||||
<table class="table darkred">
|
<table class="table darkred">
|
||||||
<caption><?= $this->getHtml('Files') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<caption><?= $this->getHtml('Files') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="wf-100"><?= $this->getHtml('File') ?>
|
<td class="wf-100"><?= $this->getHtml('File') ?>
|
||||||
<td><?= $this->getHtml('Unicode') ?>
|
<td><?= $this->getHtml('Unicode') ?>
|
||||||
<td><?= $this->getHtml('Deprecated') ?>
|
<td><?= $this->getHtml('Deprecated') ?>
|
||||||
<td><?= $this->getHtml('Integrity') ?>
|
<td><?= $this->getHtml('Integrity') ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($files as $key => $file) : $source = \file_get_contents($file); ?>
|
<?php foreach ($files as $key => $file) : $source = \file_get_contents($file); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<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, \md5(Rest::request(new Request(new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php'))))); ?>
|
<td><?= \phpOMS\Security\PhpCode::validateFileIntegrity(
|
||||||
<?php endforeach; ?>
|
$file,
|
||||||
</table>
|
\md5(
|
||||||
</div>
|
Rest::request(
|
||||||
</div>
|
new Request(
|
||||||
|
new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php')
|
||||||
|
)
|
||||||
|
)->getBody()
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Orange Management
|
||||||
*
|
*
|
||||||
* PHP Version 7.2
|
* PHP Version 7.2
|
||||||
*
|
*
|
||||||
* @package TBD
|
* @package TBD
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use phpOMS\Message\Http\Request;
|
use phpOMS\Message\Http\Request;
|
||||||
use phpOMS\Message\Http\Rest;
|
use phpOMS\Message\Http\Rest;
|
||||||
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\Uri\Http;
|
use phpOMS\Uri\Http;
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -49,8 +49,8 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td><?= $this->getHtml('Modified') ?>
|
<td><?= $this->getHtml('Modified') ?>
|
||||||
<td><?= $this->getHtml('Integrity') ?>
|
<td><?= $this->getHtml('Integrity') ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php', 'tests(\/|\\\)');
|
||||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); ?>
|
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../phpOMS/' . $file); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -59,17 +59,17 @@ 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(
|
<?= \phpOMS\Security\PhpCode::validateStringIntegrity(
|
||||||
$content,
|
$content,
|
||||||
Rest::request(
|
Rest::request(
|
||||||
new Request(
|
new Request(
|
||||||
new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/' . $file)
|
new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/' . $file)
|
||||||
)
|
)
|
||||||
)
|
)->getBody()
|
||||||
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php
|
<?php
|
||||||
$files = Directory::listByExtension(__DIR__ . '/../../../../Model/', 'php', 'tests(\/|\\\)');
|
$files = Directory::listByExtension(__DIR__ . '/../../../../Model/', 'php', 'tests(\/|\\\)');
|
||||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../Model/' . $file); ?>
|
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../Model/' . $file); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -78,17 +78,17 @@ 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__ . '/../../../../Model/' . $file)->format('Y-m-d'); ?>
|
<td><?= File::changed(__DIR__ . '/../../../../Model/' . $file)->format('Y-m-d'); ?>
|
||||||
<td>
|
<td>
|
||||||
<?= \phpOMS\Security\PhpCode::validateStringIntegrity(
|
<?= \phpOMS\Security\PhpCode::validateStringIntegrity(
|
||||||
$content,
|
$content,
|
||||||
Rest::request(
|
Rest::request(
|
||||||
new Request(
|
new Request(
|
||||||
new Http('https://raw.githubusercontent.com/Orange-Management/Model/develop/' . $file)
|
new Http('https://raw.githubusercontent.com/Orange-Management/Model/develop/' . $file)
|
||||||
)
|
)
|
||||||
)
|
)->getBody()
|
||||||
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php
|
<?php
|
||||||
$files = Directory::listByExtension(__DIR__ . '/../../../../Modules/', 'php', 'tests(\/|\\\)');
|
$files = Directory::listByExtension(__DIR__ . '/../../../../Modules/', 'php', 'tests(\/|\\\)');
|
||||||
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../Modules/' . $file); ?>
|
foreach ($files as $file) : $content = \file_get_contents(__DIR__ . '/../../../../Modules/' . $file); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -97,13 +97,13 @@ 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__ . '/../../../../Modules/' . $file)->format('Y-m-d'); ?>
|
<td><?= File::changed(__DIR__ . '/../../../../Modules/' . $file)->format('Y-m-d'); ?>
|
||||||
<td>
|
<td>
|
||||||
<?= \phpOMS\Security\PhpCode::validateStringIntegrity(
|
<?= \phpOMS\Security\PhpCode::validateStringIntegrity(
|
||||||
$content,
|
$content,
|
||||||
Rest::request(
|
Rest::request(
|
||||||
new Request(
|
new Request(
|
||||||
new Http('https://raw.githubusercontent.com/Orange-Management/Modules/develop/' . $file)
|
new Http('https://raw.githubusercontent.com/Orange-Management/Modules/develop/' . $file)
|
||||||
)
|
)
|
||||||
)
|
)->getBody()
|
||||||
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|
) ? $this->getHtml('OK') : $this->getHtml('NG'); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user