summaryrefslogtreecommitdiffstats
path: root/application/controllers/ConfigController.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:27 +0000
commitadc6ca9ee76d4b765c0e892fd452bc7e7ff28f4c (patch)
tree48747500fe157b459d74fac87e7114e6c846d215 /application/controllers/ConfigController.php
parentInitial commit. (diff)
downloadicingaweb2-module-audit-adc6ca9ee76d4b765c0e892fd452bc7e7ff28f4c.tar.xz
icingaweb2-module-audit-adc6ca9ee76d4b765c0e892fd452bc7e7ff28f4c.zip
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/controllers/ConfigController.php')
-rw-r--r--application/controllers/ConfigController.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php
new file mode 100644
index 0000000..5e6a31a
--- /dev/null
+++ b/application/controllers/ConfigController.php
@@ -0,0 +1,23 @@
+<?php
+
+/* Icinga Web 2 | (c) 2018 Icinga Development Team | GPLv2+ */
+
+namespace Icinga\Module\Audit\Controllers;
+
+use Icinga\Web\Controller;
+use Icinga\Module\Audit\Forms\Config\AuditLogConfigForm;
+
+class ConfigController extends Controller
+{
+ public function indexAction()
+ {
+ $form = new AuditLogConfigForm();
+ $form->setIniConfig($this->Config());
+ $form->setSubmitLabel($this->translate('Save Configuration'));
+
+ $form->handleRequest();
+
+ $this->view->form = $form;
+ $this->view->tabs = $this->Module()->getConfigTabs()->activate('config');
+ }
+}