2015-06-01 14:33:07 +02:00
|
|
|
<?php
|
|
|
|
|
2015-06-11 22:49:33 +02:00
|
|
|
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
|
2015-06-23 14:37:23 +02:00
|
|
|
use Icinga\Module\Director\Util;
|
2015-06-30 11:27:32 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
2015-06-11 22:49:33 +02:00
|
|
|
|
2015-06-01 14:33:07 +02:00
|
|
|
class Director_ShowController extends ActionController
|
|
|
|
{
|
|
|
|
public function activitylogAction()
|
|
|
|
{
|
|
|
|
if ($id = $this->params->get('id')) {
|
2015-06-18 11:01:45 +02:00
|
|
|
$this->view->entry = $this->db()->fetchActivityLogEntryById($id);
|
|
|
|
} elseif ($checksum = $this->params->get('checksum')) {
|
2015-06-23 14:37:23 +02:00
|
|
|
$this->view->entry = $this->db()->fetchActivityLogEntry(Util::hex2binary($checksum));
|
2015-06-01 14:33:07 +02:00
|
|
|
}
|
2015-06-18 11:01:45 +02:00
|
|
|
|
|
|
|
$this->view->title = $this->translate('Activity');
|
2015-06-01 14:33:07 +02:00
|
|
|
}
|
|
|
|
}
|