Implement changed rest usage

This commit is contained in:
Dennis Eichhorn 2019-05-01 20:57:20 +02:00
parent 185e3a0491
commit b8e097dc2b
2 changed files with 79 additions and 70 deletions

View File

@ -39,7 +39,16 @@ 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, \md5(Rest::request(new Request(new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php'))))); ?> <td><?= \phpOMS\Security\PhpCode::validateFileIntegrity(
$file,
\md5(
Rest::request(
new Request(
new Http('https://raw.githubusercontent.com/Orange-Management/phpOMS/develop/Account/Account.php')
)
)->getBody()
)
); ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
</div> </div>

View File

@ -65,7 +65,7 @@ echo $this->getData('nav')->render(); ?>
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
@ -84,7 +84,7 @@ echo $this->getData('nav')->render(); ?>
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
@ -103,7 +103,7 @@ echo $this->getData('nav')->render(); ?>
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>