icingaweb2-module-director/application/controllers/ShowController.php

20 lines
622 B
PHP

<?php
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
use Icinga\Module\Director\Util;
use Icinga\Module\Director\Web\Controller\ActionController;
class Director_ShowController extends ActionController
{
public function activitylogAction()
{
if ($id = $this->params->get('id')) {
$this->view->entry = $this->db()->fetchActivityLogEntryById($id);
} elseif ($checksum = $this->params->get('checksum')) {
$this->view->entry = $this->db()->fetchActivityLogEntry(Util::hex2binary($checksum));
}
$this->view->title = $this->translate('Activity');
}
}