icingaweb2/modules/monitoring/application/views/scripts/show/components/command.phtml

17 lines
377 B
PHTML
Raw Normal View History

<?php
$parts = explode('!', $object->check_command);
$command = array_shift($parts);
?><tr class="newsection">
<th><?= $this->translate('Command') ?></th>
<td><?= $this->escape($command) ?>
</tr>
<?php
$row = "<tr>\n <th>%s</th>\n <td>%s</td>\n</tr>\n";
for ($i = 0; $i < count($parts); $i++) {
printf($row, '$ARG' . ($i + 1) . '$', $this->escape($parts[$i]));
}
2013-10-15 12:48:33 +02:00