summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNewEraCracker <neweracracker@gmail.com>2016-01-07 15:30:27 +0000
committerStephen Beaver <sbeaver@netgate.com>2016-01-07 15:50:30 -0500
commitfa172bc5e8142ccfecdcb8cac021a59cef5c2d7e (patch)
tree9b9c4072ccdab045601977d9158065fb5d160b6e
parent02ba2c972a6518b6cbe2eaeb791b2e99964c93a9 (diff)
downloadpfsense-fa172bc5e8142ccfecdcb8cac021a59cef5c2d7e.zip
pfsense-fa172bc5e8142ccfecdcb8cac021a59cef5c2d7e.tar.gz
Convert short open tags to full tags
Short open tag is discouraged since it is only available if enabled See https://secure.php.net/manual/en/language.basic-syntax.phptags.php
-rwxr-xr-xsrc/usr/local/www/diag_dns.php6
-rw-r--r--src/usr/local/www/diag_ndp.php2
-rw-r--r--src/usr/local/www/exec.php2
-rw-r--r--src/usr/local/www/status_dhcp_leases.php32
-rw-r--r--src/usr/local/www/status_dhcpv6_leases.php34
-rw-r--r--src/usr/local/www/status_graph.php4
-rw-r--r--src/usr/local/www/system_gateways.php6
-rw-r--r--src/usr/local/www/system_routes.php2
8 files changed, 44 insertions, 44 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php
index d413def..3b64cd3 100755
--- a/src/usr/local/www/diag_dns.php
+++ b/src/usr/local/www/diag_dns.php
@@ -260,7 +260,7 @@ if (!$input_errors && $type) {
</ul>
</div>
</div>
-<? endif?>
+<?php endif; ?>
<!-- Second table displays the server resolution times -->
<div class="panel panel-default">
@@ -275,11 +275,11 @@ if (!$input_errors && $type) {
</thead>
<tbody>
-<? foreach ((array)$dns_speeds as $qt):?>
+<?php foreach ((array)$dns_speeds as $qt):?>
<tr>
<td><?=$qt['dns_server']?></td><td><?=$qt['query_time']?></td>
</tr>
-<? endforeach?>
+<?php endforeach; ?>
</tbody>
</table>
</div>
diff --git a/src/usr/local/www/diag_ndp.php b/src/usr/local/www/diag_ndp.php
index 348002d..56e2719 100644
--- a/src/usr/local/www/diag_ndp.php
+++ b/src/usr/local/www/diag_ndp.php
@@ -154,7 +154,7 @@ include("head.inc");
?>
<?=$mac?>
- <? if (isset($mac_man[$mac_hi])):?>
+ <?php if (isset($mac_man[$mac_hi])):?>
(<?=$mac_man[$mac_hi]?>)
<?endif?>
diff --git a/src/usr/local/www/exec.php b/src/usr/local/www/exec.php
index 44a2136..5264df4 100644
--- a/src/usr/local/www/exec.php
+++ b/src/usr/local/www/exec.php
@@ -240,7 +240,7 @@ if (!isBlank($_POST['txtCommand'])):?>
</div>
</div>
</div>
-<? endif ?>
+<?php endif; ?>
<form action="exec.php" method="post" enctype="multipart/form-data" name="frmExecPlus" onsubmit="return frmExecPlus_onSubmit( this );">
<div class="panel panel-default">
diff --git a/src/usr/local/www/status_dhcp_leases.php b/src/usr/local/www/status_dhcp_leases.php
index 60fa055..cd7573a 100644
--- a/src/usr/local/www/status_dhcp_leases.php
+++ b/src/usr/local/www/status_dhcp_leases.php
@@ -342,7 +342,7 @@ if (count($pools) > 0) {
</tr>
</thead>
<tbody>
-<? foreach ($pools as $data):?>
+<?php foreach ($pools as $data):?>
<tr>
<td><?=$data['name']?></td>
<td><?=$data['mystate']?></td>
@@ -350,7 +350,7 @@ if (count($pools) > 0) {
<td><?=$data['peerstate']?></td>
<td><?=adjust_gmt($data['peerdate'])?></td>
</tr>
-<? endforeach?>
+<?php endforeach; ?>
</tbody>
</table>
</div>
@@ -423,36 +423,36 @@ foreach ($leases as $data):
<td>
<?=$mac?>
- <? if (isset($mac_man[$mac_hi])):?>
+ <?php if (isset($mac_man[$mac_hi])):?>
(<?=$mac_man[$mac_hi]?>)
<?endif?>
</td>
<td><?=htmlentities($data['hostname'])?></td>
-<? if ($data['type'] != "static"):?>
+<?php if ($data['type'] != "static"):?>
<td><?=adjust_gmt($data['start'])?></td>
<td><?=adjust_gmt($data['end'])?></td>
-<? else: ?>
+<?php else: ?>
<td>n/a</td>
<td>n/a</td>
-<? endif; ?>
+<?php endif; ?>
<td><?=$data['online']?></td>
<td><?=$data['act']?></td>
<td>
-<? if ($data['type'] == "dynamic"): ?>
+<?php if ($data['type'] == "dynamic"): ?>
<a class="fa fa-plus-square-o" title="<?=gettext("Add static mapping")?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&amp;mac=<?=$data['mac']?>&amp;hostname=<?=htmlspecialchars($data['hostname'])?>"></a>
-<? else: ?>
+<?php else: ?>
<a class="fa fa-pencil" title="<?=gettext('Edit static mapping')?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&amp;id=<?=$data['staticmap_array_index']?>"></a>
-<? endif; ?>
+<?php endif; ?>
<a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&amp;mac=<?=$data['mac']?>&amp;descr=<?=htmlentities($data['hostname'])?>"></a>
-<? if ($data['online'] != "online"):?>
+<?php if ($data['online'] != "online"):?>
<a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=$data['if']?>&amp;mac=<?=$data['mac']?>"></a>
-<? endif; ?>
+<?php endif; ?>
-<? if ($data['type'] == "dynamic" && $data['online'] != "online"):?>
+<?php if ($data['type'] == "dynamic" && $data['online'] != "online"):?>
<a class="fa fa-trash" title="<?=gettext('Delete lease')?>" href="status_dhcp_leases.php?deleteip=<?=$data['ip']?>&amp;all=<?=intval($_GET['all'])?>"></a>
-<? endif?>
+<?php endif; ?>
</td>
-<? endforeach; ?>
+<?php endforeach; ?>
</tr>
</tbody>
</table>
@@ -472,14 +472,14 @@ foreach ($leases as $data):
</tr>
</thead>
<tbody>
-<? foreach ($dhcp_leases_subnet_counter as $listcounters):?>
+<?php foreach ($dhcp_leases_subnet_counter as $listcounters):?>
<tr>
<td><?=$iflist[$listcounters['dhcpif']]?></td>
<td><?=$listcounters['from']?></td>
<td><?=$listcounters['to']?></td>
<td><?=$listcounters['count']?></td>
</tr>
-<? endforeach; ?>
+<?php endforeach; ?>
</tbody>
</table>
</div>
diff --git a/src/usr/local/www/status_dhcpv6_leases.php b/src/usr/local/www/status_dhcpv6_leases.php
index e557906..97ac585 100644
--- a/src/usr/local/www/status_dhcpv6_leases.php
+++ b/src/usr/local/www/status_dhcpv6_leases.php
@@ -411,7 +411,7 @@ if (count($pools) > 0) {
</tr>
</thead>
<tbody>
-<? foreach ($pools as $data):?>
+<?php foreach ($pools as $data):?>
<tr>
<td><?=$data['name']?></td>
<td><?=$data['mystate']?></td>
@@ -419,7 +419,7 @@ if (count($pools) > 0) {
<td><?=$data['peerstate']?></td>
<td><?=adjust_gmt($data['peerdate'])?></td>
</tr>
-<? endforeach?>
+<?php endforeach; ?>
</tbody>
</table>
</div>
@@ -496,30 +496,30 @@ foreach ($leases as $data):
<td>
<?=$mac?>
- <? if (isset($mac_man[$mac_hi])):?>
+ <?php if (isset($mac_man[$mac_hi])):?>
(<?=$mac_man[$mac_hi]?>)
<?endif?>
</td>
<td><?=htmlentities($data['hostname'])?></td>
-<? if ($data['type'] != "static"):?>
+<?php if ($data['type'] != "static"):?>
<td><?=adjust_gmt($data['start'])?></td>
<td><?=adjust_gmt($data['end'])?></td>
-<? else: ?>
+<?php else: ?>
<td>n/a</td>
<td>n/a</td>
-<? endif; ?>
+<?php endif; ?>
<td><?=$data['online']?></td>
<td><?=$data['act']?></td>
<td>
-<? if ($data['type'] == "dynamic"): ?>
+<?php if ($data['type'] == "dynamic"): ?>
<a <a class="fa fa-plus-square-o" title="<?=gettext("Add static mapping")?>" href="services_dhcpv6_edit.php?if=<?=$data['if']?>&amp;duid=<?=$data['duid']?>&amp;hostname=<?=htmlspecialchars($data['hostname'])?>"></a>
-<? endif; ?>
+<?php endif; ?>
<a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&amp;mac=<?=$data['mac']?>&amp;descr=<?=htmlentities($data['hostname'])?>"></a>
-<? if ($data['type'] == "dynamic" && $data['online'] != "online"):?>
+<?php if ($data['type'] == "dynamic" && $data['online'] != "online"):?>
<a class="fa fa-trash" title="<?=gettext('Delete lease')?>" href="status_dhcpv6_leases.php?deleteip=<?=$data['ip']?>&amp;all=<?=intval($_GET['all'])?>"></a>
-<? endif?>
+<?php endif; ?>
</td>
-<? endforeach; ?>
+<?php endforeach; ?>
</tr>
</tbody>
</table>
@@ -582,22 +582,22 @@ foreach ($prefixes as $data):
<td><i class="fa <?=$icon?>"></i></td>
<td>
<?=$data['prefix']?>
-<? if ($mappings[$data['iaid'] . $data['duid']]): ?>
+<?php if ($mappings[$data['iaid'] . $data['duid']]): ?>
<br />
<?=gettext('Routed To')?>: <?=$mappings[$data['iaid'] . $data['duid']]?>
-<? endif; ?>
+<?php endif; ?>
</td>
<td><?=$data['iaid']?></td>
<td><?=$data['duid']?></td>
-<? if ($data['type'] != "static"):?>
+<?php if ($data['type'] != "static"):?>
<td><?=adjust_gmt($data['start'])?></td>
<td><?=adjust_gmt($data['end'])?></td>
-<? else: ?>
+<?php else: ?>
<td>n/a</td>
<td>n/a</td>
-<? endif; ?>
+<?php endif; ?>
<td><?=$data['act']?></td>
-<? endforeach; ?>
+<?php endforeach; ?>
</tr>
</tbody>
</table>
diff --git a/src/usr/local/www/status_graph.php b/src/usr/local/www/status_graph.php
index 8625682..62fe385 100644
--- a/src/usr/local/www/status_graph.php
+++ b/src/usr/local/www/status_graph.php
@@ -262,8 +262,8 @@ if (ipsec_enabled()) {
<object data="graph.php?ifnum=<?=htmlspecialchars($curif);?>&amp;ifname=<?=rawurlencode($ifdescrs[htmlspecialchars($curif)]);?>">
<param name="id" value="graph" />
<param name="type" value="image/svg+xml" />
- <param name="width" value="<? echo $width; ?>" />
- <param name="height" value="<? echo $height; ?>" />
+ <param name="width" value="<?php echo $width; ?>" />
+ <param name="height" value="<?php echo $height; ?>" />
<param name="pluginspage" value="http://www.adobe.com/svg/viewer/install/auto" />
</object>
</div>
diff --git a/src/usr/local/www/system_gateways.php b/src/usr/local/www/system_gateways.php
index 0a6905f..e73d00b 100644
--- a/src/usr/local/www/system_gateways.php
+++ b/src/usr/local/www/system_gateways.php
@@ -319,7 +319,7 @@ foreach ($a_gateways as $i => $gateway):
<a href="system_gateways_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext('Edit');?>"></a>
<a href="system_gateways_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy')?>"></a>
-<? if (is_numeric($gateway['attribute'])): ?>
+<?php if (is_numeric($gateway['attribute'])): ?>
<?php if (isset($gateway['disabled'])) {
?>
<a href="?act=toggle&amp;id=<?=$i?>" class="fa fa-check-square-o" title="<?=gettext('Enable')?>"></a>
@@ -330,10 +330,10 @@ foreach ($a_gateways as $i => $gateway):
?>
<a href="system_gateways.php?act=del&amp;id=<?=$i?>" class="fa fa-trash" title="<?=gettext('Delete')?>"></a>
-<? endif?>
+<?php endif; ?>
</td>
</tr>
-<? endforeach?>
+<?php endforeach; ?>
</tbody>
</table>
diff --git a/src/usr/local/www/system_routes.php b/src/usr/local/www/system_routes.php
index 5e5e41e..f5e3c3c 100644
--- a/src/usr/local/www/system_routes.php
+++ b/src/usr/local/www/system_routes.php
@@ -315,7 +315,7 @@ foreach ($a_routes as $i => $route):
</td>
</tr>
-<? endforeach?>
+<?php endforeach; ?>
</table>
<nav class="action-buttons">
OpenPOWER on IntegriCloud