summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/0001-php-short-open-tags.patch
blob: 539f1baf6b80fc0d2a7d3dae01f4dc87d2c8066f (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Author: David Kunz <david.kunz@dknet.ch>
Description: correcting in php short open tags (Closes: #977714).

diff -Naurp icingaweb2-module-boxydash-orig/application/views/scripts/index/index.phtml icingaweb2-module-boxydash/application/views/scripts/index/index.phtml
--- icingaweb2-module-boxydash-orig/application/views/scripts/index/index.phtml
+++ icingaweb2-module-boxydash/application/views/scripts/index/index.phtml
@@ -1,4 +1,4 @@
-<?
+<?php
 use Icinga\Module\Monitoring\Object\Service;
 use Icinga\Module\Monitoring\Object\Host;
 
@@ -15,7 +15,7 @@ use Icinga\Module\Monitoring\Object\Host
 <div class="content">
 
     <h1>Boxy Dashboard</h1>
-    <? if ($this->showlegend){ ?>
+    <?php if ($this->showlegend){ ?>
     <div class="boxy_legend">
         <span class="boxy_sublegend">
             <span class="legendtext">&#10004; = Acknowledged</span>
@@ -36,9 +36,9 @@ use Icinga\Module\Monitoring\Object\Host
             <span class="boxy_legend_box unknown-ack" >unknown</span>
         </span>
     </div>
-    <? } ?>
+    <?php } ?>
 <h2>Host Info</h2>
-<?
+<?php
 foreach ($this->hosts as $host){
     $title = htmlspecialchars($host->{'host_display_name'});
     $size=$this->boxsize;
@@ -50,12 +50,12 @@ foreach ($this->hosts as $host){
         $title.=" (Acknowledged)";
     }?>
     <a href='<?= $this->path_prefix ?>/monitoring/host/show?host=<?=$host->{'host_name'}?>' class='boxy_box state <?=$returncode?>' style='width:<?=$size?>px; height:<?=$size?>px; font-size:<?=$size?>px;' title="<?=$title?>"><?=$content?></a>
-<? } ?>
+<?php } ?>
 
 <br clear="all"/>
 <h2>Service Info</h2>
 
-<? foreach ($this->services as $service){
+<?php foreach ($this->services as $service){
     $service->{'service_hard_state'} = ($service->{'service_hard_state'}) ? "hard" : "soft";
     $title = $service->{'host_display_name'}.": ".$service->{'service_description'};
     #."(".$service->{'current_check_attempt'} .",".$service->{'max_check_attempts'} .")(". $service->{'service_hard_state'}.")+acked:".$service->{'service_acknowledged'} ;
@@ -78,7 +78,7 @@ foreach ($this->hosts as $host){
     $title=htmlspecialchars($title."\n ".$service->{'service_output'});?>
     <a href='<?= $this->path_prefix ?>/monitoring/service/show?host=<?=$service->{'host_name'}?>&service=<?=$service->{'service_description'}?>' class='boxy_box state <?=$returncode?>' style='width:<?=$size?>px; height:<?=$size?>px; font-size:<?=$size?>px;' title="<?=$title?>"><?=$content?></a>
 
-<? } ?>
+<?php } ?>
 <br clear=all>
 <pre style="font-size:20px"><?=$this->debug?></pre>
 </div>