mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-19 16:36:02 -04:00
26 lines
695 B
PHP
26 lines
695 B
PHP
<?php
|
|
|
|
use Icinga\Module\Director\ActionController;
|
|
|
|
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
|
|
|
|
class Director_ShowController extends ActionController
|
|
{
|
|
public function activitylogAction()
|
|
{
|
|
if ($id = $this->params->get('id')) {
|
|
$this->view->entry = $this->db()->fetchActivityLogEntry($id);
|
|
$this->view->title = $this->translate('Activity');
|
|
}
|
|
}
|
|
|
|
public function configAction()
|
|
{
|
|
$config = IcingaConfig::generate($this->db());
|
|
$this->view->files = array();
|
|
|
|
foreach ($config->getFiles() as $filename => $config) {
|
|
$this->view->files[$filename] = $config->getContent();
|
|
}
|
|
}
|
|
}
|