mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-03-22 02:20:07 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
33 lines
963 B
PHP
33 lines
963 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
namespace Icinga\Module\Graphite\Controllers;
|
|
|
|
use Icinga\Module\Graphite\Forms\Config\AdvancedForm;
|
|
use Icinga\Module\Graphite\Forms\Config\BackendForm;
|
|
use Icinga\Web\Controller;
|
|
|
|
class ConfigController extends Controller
|
|
{
|
|
public function init()
|
|
{
|
|
$this->assertPermission('config/modules');
|
|
parent::init();
|
|
}
|
|
|
|
public function backendAction()
|
|
{
|
|
$this->view->form = $form = new BackendForm();
|
|
$form->setIniConfig($this->Config())->handleRequest();
|
|
$this->view->tabs = $this->Module()->getConfigTabs()->activate('backend');
|
|
}
|
|
|
|
public function advancedAction()
|
|
{
|
|
$this->view->form = $form = new AdvancedForm();
|
|
$form->setIniConfig($this->Config())->handleRequest();
|
|
$this->view->tabs = $this->Module()->getConfigTabs()->activate('advanced');
|
|
}
|
|
}
|