This file is indexed.

/usr/share/icingaweb2/modules/monitoring/application/views/scripts/partials/downtime/downtimes-header.phtml is in icingaweb2-module-monitoring 2.1.0-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Object\Service;
?>
<table class="action" data-base-target="_next">
    <tbody>
    <?php
    foreach ($this->downtimes as $i => $downtime):
        if ($i > 5) {
            break;
        }
        if ($downtime->objecttype === 'service') {
            $this->isService = true;
            $this->stateName =  Service::getStateText($downtime->service_state);
        } else {
            $this->isService = false;
            $this->stateName =  Host::getStateText($downtime->host_state);
        }
        $this->downtime = $downtime;
        $this->displayComment = false;
        ?>
        <tr>
            <?= $this->render('partials/downtime/downtime-header.phtml') ?>
        </tr>
    <?php endforeach ?>
    </tbody>
</table>
<?php if ($downtimes->count() > 5): ?>
<p>
    <?= $this->qlink(
        sprintf($this->translate('List all %d downtimes'), $downtimes->count()),
        $listAllLink,
        null,
        array(
            'data-base-target'  => '_next',
            'icon'              => 'down-open'
        )
    ) ?>
</p>
<?php endif ?>