diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php
index c0ac12c..97efa8a 100644
--- a/Admin/Routes/Web/Backend.php
+++ b/Admin/Routes/Web/Backend.php
@@ -21,4 +21,16 @@ return [
'verb' => RouteVerb::GET,
],
],
+ '^.*/backend/admin/monitoring/security/dashboard.*$' => [
+ [
+ 'dest' => '\Modules\Monitoring\Controller:viewMonitoringSecurityDashboard',
+ 'verb' => RouteVerb::GET,
+ ],
+ ],
+ '^.*/backend/admin/monitoring/security/file/list.*$' => [
+ [
+ 'dest' => '\Modules\Monitoring\Controller:viewMonitoringSecurityFileList',
+ 'verb' => RouteVerb::GET,
+ ],
+ ],
];
diff --git a/Controller.php b/Controller.php
index f51cce7..4f1157e 100644
--- a/Controller.php
+++ b/Controller.php
@@ -139,4 +139,23 @@ class Controller extends ModuleAbstract implements WebInterface
return $view;
}
+
+ /**
+ * @param RequestAbstract $request Request
+ * @param ResponseAbstract $response Response
+ * @param mixed $data Generic data
+ *
+ * @return RenderableInterface
+ *
+ * @since 1.0.0
+ * @codeCoverageIgnore
+ */
+ public function viewMonitoringSecurityDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
+ {
+ $view = new View($this->app, $request, $response);
+ $view->setTemplate('/Modules/Monitoring/Theme/Backend/monitoring-security');
+ $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000706001, $request, $response));
+
+ return $view;
+ }
}
diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php
index 37f000d..c3dfd37 100644
--- a/Theme/Backend/Lang/Navigation.en.lang.php
+++ b/Theme/Backend/Lang/Navigation.en.lang.php
@@ -14,4 +14,5 @@ return ['Navigation' => [
'List' => 'List',
'Logs' => 'Logs',
'Monitoring' => 'Monitoring',
+ 'Security' => 'Security',
]];
diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php
index 53c72b9..568781e 100644
--- a/Theme/Backend/Lang/en.lang.php
+++ b/Theme/Backend/Lang/en.lang.php
@@ -37,6 +37,7 @@ return ['Monitoring' => [
'Total' => 'Total',
'OS' => 'OS',
'Penetrators' => 'Penetrators',
+ 'PHPSettings' => 'PHP Settings',
'RAMUsage' => 'RAM Usage',
'Release' => 'Release',
'Report' => 'Report',
diff --git a/Theme/Backend/monitoring-logs.tpl.php b/Theme/Backend/monitoring-logs.tpl.php
index ff5f103..512ee17 100644
--- a/Theme/Backend/monitoring-logs.tpl.php
+++ b/Theme/Backend/monitoring-logs.tpl.php
@@ -13,14 +13,6 @@
/**
* @var \phpOMS\Views\View $this
*/
-
-$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
-$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
-
-$footerView->setPages(0 / 25);
-$footerView->setPage(1);
-$footerView->setResults(0);
-
$logs = array_reverse($this->app->logger->get(25), true);
echo $this->getData('nav')->render(); ?>
diff --git a/Theme/Backend/monitoring-security-file-list.tpl.php b/Theme/Backend/monitoring-security-file-list.tpl.php
new file mode 100644
index 0000000..f2bfaeb
--- /dev/null
+++ b/Theme/Backend/monitoring-security-file-list.tpl.php
@@ -0,0 +1,41 @@
+getData('nav')->render(); ?>
+
+
+
+
+ = $this->getHtml('Files') ?>
+
+
+ | = $this->getHtml('File') ?>
+ | = $this->getHtml('Unicode') ?>
+ | = $this->getHtml('Deprecated') ?>
+ | = $this->getHtml('Integrity') ?>
+ |
+ $file) : $source = file_get_contents($file); ?>
+
+ | = $file; ?>
+ | = \phpOMS\Security\PhpCode::hasUnicode($source); ?>
+ | = \phpOMS\Security\PhpCode::hasDeprecatedFunction($source); ?>
+ | = \phpOMS\Security\PhpCode::validateFileIntegrity($file, ''); ?>
+
+ |
+
+
diff --git a/Theme/Backend/monitoring-security.tpl.php b/Theme/Backend/monitoring-security.tpl.php
index e69de29..72a54a1 100644
--- a/Theme/Backend/monitoring-security.tpl.php
+++ b/Theme/Backend/monitoring-security.tpl.php
@@ -0,0 +1,27 @@
+getData('nav')->render(); ?>
+
+
+
+
+ = $this->getHtml('PHPSettings'); ?>
+
+
+
+ | = $this->getHtml('DeprecatedFunctions'); ?> | = \phpOMS\Security\PhpCode::isDisabled(\phpOMS\Security\PhpCode::$disabledFunctions); ?>
+ |
+
+
+
+