summaryrefslogtreecommitdiffstats
path: root/application/controllers/ConfigController.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:46:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:46:04 +0000
commitb880345a8a897b3fe600ef94a0fee5bb5f2f8558 (patch)
treefdc7483ceea33373b6cfa4a8c20c11cb02a2676a /application/controllers/ConfigController.php
parentInitial commit. (diff)
downloadicingaweb2-module-pnp-b880345a8a897b3fe600ef94a0fee5bb5f2f8558.tar.xz
icingaweb2-module-pnp-b880345a8a897b3fe600ef94a0fee5bb5f2f8558.zip
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--application/controllers/ConfigController.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php
new file mode 100644
index 0000000..f6a0dcd
--- /dev/null
+++ b/application/controllers/ConfigController.php
@@ -0,0 +1,25 @@
+<?php
+/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
+
+namespace Icinga\Module\Pnp\Controllers;
+
+use Icinga\Web\Controller;
+use Icinga\Module\Pnp\Forms\Config\GeneralConfigForm;
+
+class ConfigController extends Controller
+{
+ /**
+ * General configuration
+ */
+ public function indexAction()
+ {
+ $this->assertPermission('config/modules');
+
+ $form = new GeneralConfigForm();
+ $form->setIniConfig($this->Config());
+ $form->handleRequest();
+
+ $this->view->form = $form;
+ $this->view->tabs = $this->Module()->getConfigTabs()->activate('config');
+ }
+}