From 45a6627e6a8ea6a437a8c496c11898a2a017a23f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 24 Apr 2018 19:23:09 +0200 Subject: [PATCH] Implement test for file inspection --- Theme/Backend/Lang/en.lang.php | 9 ++++++ Theme/Backend/monitoring-security.tpl.php | 38 ++++++++++++++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 568781e..43c5dd0 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -19,22 +19,30 @@ return ['Monitoring' => [ 'CreatedBy' => 'Created By', 'Criticals' => 'Criticals', 'Debug' => 'Debug', + 'Deprecated' => 'Deprecated', 'Description' => 'Description', + 'DisabledFunctions' => 'Disabled Functions', 'DiskUsage' => 'DiskUsage', 'Emergencies' => 'Emergencies', 'Errors' => 'Errors', 'Exception' => 'Exception', 'File' => 'File', 'Info' => 'Info', + 'Inspect' => 'Inspect', + 'Inspection' => 'Inspection', + 'Integrity' => 'Integrity', 'Level' => 'Level', 'Line' => 'Line', 'Logs' => 'Logs', 'MemoryLimit' => 'Memory Limit', 'Message' => 'Message', + 'Modified' => 'Modified', + 'NG' => 'NG', 'Notices' => 'Notices', 'Status' => 'Status', 'System' => 'System', 'Total' => 'Total', + 'OK' => 'OK', 'OS' => 'OS', 'Penetrators' => 'Penetrators', 'PHPSettings' => 'PHP Settings', @@ -46,6 +54,7 @@ return ['Monitoring' => [ 'Theme' => 'Theme', 'Time' => 'Time', 'Timestamp' => 'Timestamp', + 'Unicode' => 'Unicode', 'Uri' => 'Uri', 'Version' => 'Version', 'Warnings' => 'Warnings', diff --git a/Theme/Backend/monitoring-security.tpl.php b/Theme/Backend/monitoring-security.tpl.php index 72a54a1..6fd40e8 100644 --- a/Theme/Backend/monitoring-security.tpl.php +++ b/Theme/Backend/monitoring-security.tpl.php @@ -10,6 +10,13 @@ * @version 1.0.0 * @link http://website.orange-management.de */ + +use phpOMS\Security\PhpCode; +use phpOMS\System\File\Local\Directory; +use phpOMS\System\File\Local\File; + +$files = Directory::listByExtension(__DIR__ . '/../../../../phpOMS/', 'php'); + echo $this->getData('nav')->render(); ?>
@@ -19,9 +26,38 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('DeprecatedFunctions'); ?> +
getHtml('DisabledFunctions'); ?>getHtml('OK') : $this->getHtml('NG'); ?> +
+ +
+
+
+ + + + + + + +
getHtml('Inspection') ?>
getHtml('Status') ?> + getHtml('File') ?> + getHtml('Unicode') ?> + getHtml('Deprecated') ?> + getHtml('Modified') ?> + getHtml('Integrity') ?> +
+ + getHtml('NG') : $this->getHtml('OK'); ?> + getHtml('NG') : $this->getHtml('OK'); ?> + format('Y-m-d'); ?> + + +
+
+
+