diff options
author | Ermal Luçi <ermal.luci@gmail.com> | 2013-01-14 07:23:02 -0800 |
---|---|---|
committer | Ermal Luçi <ermal.luci@gmail.com> | 2013-01-14 07:23:02 -0800 |
commit | 9deea99c0e8bba20e8267147a4da6b808cc56b7d (patch) | |
tree | 8ffa239fc701c94c00c7cf11b2f148c2c188ce55 /usr | |
parent | c67eaa253a2a33304c7f6e7298517f031110351b (diff) | |
parent | 1fe0d1a19172b1b2b687a6603a058c55385ded63 (diff) | |
download | pfsense-9deea99c0e8bba20e8267147a4da6b808cc56b7d.zip pfsense-9deea99c0e8bba20e8267147a4da6b808cc56b7d.tar.gz |
Merge pull request #324 from ExolonDX/master
Update PHP shorthand tag
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/diag_dns.php | 4 | ||||
-rw-r--r-- | usr/local/www/diag_logs_filter_summary.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_nanobsd.php | 16 | ||||
-rwxr-xr-x | usr/local/www/diag_ndp.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_ping.php | 4 | ||||
-rw-r--r-- | usr/local/www/diag_testport.php | 4 | ||||
-rwxr-xr-x | usr/local/www/diag_traceroute.php | 4 | ||||
-rwxr-xr-x | usr/local/www/firewall_rules.php | 6 | ||||
-rwxr-xr-x | usr/local/www/firewall_shaper_queues.php | 4 | ||||
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 4 | ||||
-rwxr-xr-x | usr/local/www/interfaces.php | 2 | ||||
-rw-r--r-- | usr/local/www/interfaces_bridge.php | 2 | ||||
-rwxr-xr-x | usr/local/www/interfaces_qinq_edit.php | 10 | ||||
-rw-r--r-- | usr/local/www/interfaces_wireless_edit.php | 6 | ||||
-rwxr-xr-x | usr/local/www/pkg.php | 2 | ||||
-rw-r--r-- | usr/local/www/status_filter_reload.php | 2 | ||||
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 4 | ||||
-rw-r--r-- | usr/local/www/vpn_l2tp.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/interfaces.widget.php | 14 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/traffic_graphs.widget.php | 4 |
21 files changed, 50 insertions, 50 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index 0596373..931a885 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -146,7 +146,7 @@ if ($_POST) { include("head.inc"); ?> <body link="#000000" vlink="#000000" alink="#000000"> -<? include("fbegin.inc"); ?> +<?php include("fbegin.inc"); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> @@ -165,7 +165,7 @@ include("head.inc"); ?> <input name="host" type="text" class="formfld" id="host" size="20" value="<?=htmlspecialchars($host);?>"> </td> <td> - <? if ($resolved && $type) { ?> + <?php if ($resolved && $type) { ?> = <font size="+1"> <?php $found = 0; diff --git a/usr/local/www/diag_logs_filter_summary.php b/usr/local/www/diag_logs_filter_summary.php index 17acbbc..1d1da9e 100644 --- a/usr/local/www/diag_logs_filter_summary.php +++ b/usr/local/www/diag_logs_filter_summary.php @@ -177,7 +177,7 @@ include("head.inc"); ?> } </script> -<? include("fbegin.inc"); ?> +<?php include("fbegin.inc"); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <?php diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php index c88aa1b..80bb87e 100755 --- a/usr/local/www/diag_nanobsd.php +++ b/usr/local/www/diag_nanobsd.php @@ -245,10 +245,10 @@ if ($savemsg) <form action="diag_nanobsd.php" method="post" name="iform"> <?=gettext("Frequency:");?> <select name='rrdbackup'> - <option value='0' <? if (!isset($config['system']['rrdbackup']) || ($config['system']['rrdbackup'] == 0)) echo "selected"; ?>><?=gettext("Disable"); ?></option> - <? for ($x=1; $x<=24; $x++) { ?> - <option value='<?= $x ?>' <? if ($config['system']['rrdbackup'] == $x) echo "selected"; ?>><?= $x ?> <?=gettext("hour"); ?><? if ($x>1) echo "s"; ?></option> - <? } ?> + <option value='0' <?php if (!isset($config['system']['rrdbackup']) || ($config['system']['rrdbackup'] == 0)) echo "selected"; ?>><?=gettext("Disable"); ?></option> + <?php for ($x=1; $x<=24; $x++) { ?> + <option value='<?= $x ?>' <?php if ($config['system']['rrdbackup'] == $x) echo "selected"; ?>><?= $x ?> <?=gettext("hour"); ?><?php if ($x>1) echo "s"; ?></option> + <?php } ?> </select> <br/> <?=gettext("This will periodically backup the RRD data so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?> @@ -262,10 +262,10 @@ if ($savemsg) <form action="diag_nanobsd.php" method="post" name="iform"> <?=gettext("Frequency:");?> <select name='dhcpbackup'> - <option value='0' <? if (!isset($config['system']['dhcpbackup']) || ($config['system']['dhcpbackup'] == 0)) echo "selected"; ?>><?=gettext("Disable"); ?></option> - <? for ($x=1; $x<=24; $x++) { ?> - <option value='<?= $x ?>' <? if ($config['system']['dhcpbackup'] == $x) echo "selected"; ?>><?= $x ?> <?=gettext("hour"); ?><? if ($x>1) echo "s"; ?></option> - <? } ?> + <option value='0' <?php if (!isset($config['system']['dhcpbackup']) || ($config['system']['dhcpbackup'] == 0)) echo "selected"; ?>><?=gettext("Disable"); ?></option> + <?php for ($x=1; $x<=24; $x++) { ?> + <option value='<?= $x ?>' <?php if ($config['system']['dhcpbackup'] == $x) echo "selected"; ?>><?= $x ?> <?=gettext("hour"); ?><?php if ($x>1) echo "s"; ?></option> + <?php } ?> </select> <br/> <?=gettext("This will periodically backup the DHCP leases data so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?> diff --git a/usr/local/www/diag_ndp.php b/usr/local/www/diag_ndp.php index 6a02760..885598f 100755 --- a/usr/local/www/diag_ndp.php +++ b/usr/local/www/diag_ndp.php @@ -142,7 +142,7 @@ ob_implicit_flush(1); ?> </td> <td class="listr"> - <? + <?php if(isset($hwif[$entry['interface']])) echo $hwif[$entry['interface']]; else diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php index 155f0f7..d7efdcc 100755 --- a/usr/local/www/diag_ping.php +++ b/usr/local/www/diag_ping.php @@ -76,7 +76,7 @@ if (!isset($do_ping)) { include("head.inc"); ?> <body link="#000000" vlink="#000000" alink="#000000"> -<? include("fbegin.inc"); ?> +<?php include("fbegin.inc"); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> @@ -121,7 +121,7 @@ include("head.inc"); ?> </tr> <tr> <td valign="top" colspan="2"> - <? if ($do_ping) { + <?php if ($do_ping) { echo "<font face='terminal' size='2'>"; echo "<strong>" . gettext("Ping output") . ":</strong><br>"; echo('<pre>'); diff --git a/usr/local/www/diag_testport.php b/usr/local/www/diag_testport.php index 548d761..e91a2e3 100644 --- a/usr/local/www/diag_testport.php +++ b/usr/local/www/diag_testport.php @@ -100,7 +100,7 @@ if (!isset($do_testport)) { include("head.inc"); ?> <body link="#000000" vlink="#000000" alink="#000000"> -<? include("fbegin.inc"); ?> +<?php include("fbegin.inc"); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <?php echo gettext("This page allows you to perform a simple TCP connection test to determine if a host is up and accepting connections on a given port. This test does not function for UDP since there is no way to reliably determine if a UDP port accepts connections in this manner."); ?> @@ -181,7 +181,7 @@ include("head.inc"); ?> </tr> <tr> <td valign="top" colspan="2"> - <? if ($do_testport) { + <?php if ($do_testport) { echo "<font face='terminal' size='2'>"; echo "<strong>" . gettext("Port Test Results") . ":</strong><br>"; echo '<pre>'; diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php index dc44f6b..4b01d8a 100755 --- a/usr/local/www/diag_traceroute.php +++ b/usr/local/www/diag_traceroute.php @@ -47,7 +47,7 @@ include("head.inc"); ?> <body link="#000000" vlink="#000000" alink="#000000"> -<? include("fbegin.inc"); ?> +<?php include("fbegin.inc"); ?> <?php define('MAX_TTL', 64); @@ -115,7 +115,7 @@ if (!isset($do_traceroute)) { <tr> <td valign="top" colspan="2"> <p><span class="vexpl"><span class="red"><b><?=gettext("Note: ");?></b></span><?=gettext("Traceroute may take a while to complete. You may hit the Stop button on your browser at any time to see the progress of failed traceroutes.");?></span><p> - <? if ($do_traceroute) { + <?php if ($do_traceroute) { echo "<font face='terminal' size='2'>"; echo("<br><strong>" . gettext("Traceroute output:") . "</strong><br>"); echo('<pre>'); diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 3cbc398..4bc14dc 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -857,21 +857,21 @@ if($_REQUEST['undodrag']) { <span class="red"><?=gettext("Hint:");?></span> </strong><br> <ul> -<? if ("FloatingRules" != $if): ?> +<?php if ("FloatingRules" != $if): ?> <li><?=gettext("Rules are evaluated on a first-match basis (i.e. " . "the action of the first rule to match a packet will be executed). " . "This means that if you use block rules, you'll have to pay attention " . "to the rule order. Everything that isn't explicitly passed is blocked " . "by default. ");?> </li> -<? else: ?> +<?php else: ?> <li><?=gettext("Floating rules are evaluated on a first-match basis (i.e. " . "the action of the first rule to match a packet will be executed) only " . "if the 'quick' option is checked on a rule. Otherwise they will only apply if no " . "other rules match. Pay close attention to the rule order and options " . "chosen. If no rule here matches, the per-interface or default rules are used. ");?> </li> -<? endif; ?> +<?php endif; ?> </ul> </td> </tr> diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php index 7eadc7b..3974fa4 100755 --- a/usr/local/www/firewall_shaper_queues.php +++ b/usr/local/www/firewall_shaper_queues.php @@ -204,10 +204,10 @@ include("head.inc"); <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="30%" valign="top" algin="left"> - <? echo $tree; ?> + <?php echo $tree; ?> </td> <td width="70%" valign="top" align="center"> - <? + <?php if ($qname) echo "<pr class=\"pgtitle\">" . $qname . "</pr><br />"; echo "<table align=\"center\" class=\"tabcont\" width=\"80%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">"; diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php index f2de3ea..f9eae9c 100755 --- a/usr/local/www/firewall_virtual_ip.php +++ b/usr/local/www/firewall_virtual_ip.php @@ -181,7 +181,7 @@ include("head.inc"); ?> </td></tr> <tr> - <td><input type="hidden" id="id" name="id" value="<? echo $id; ?>"></td> + <td><input type="hidden" id="id" name="id" value="<?php echo $id; ?>"></td> </tr> <tr> <td> @@ -218,7 +218,7 @@ include("head.inc"); <?=htmlspecialchars(strtoupper($config['interfaces'][$vipent['interface']]['descr']));?> </td> <td class="listr" align="center" ondblclick="document.location='firewall_virtual_ip_edit.php?id=<?=$i;?>';"> - <? if($vipent['mode'] == "proxyarp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_parp.gif' title='Proxy ARP'>"; elseif($vipent['mode'] == "carp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_carp.gif' title='CARP'>"; elseif($vipent['mode'] == "other") echo "<img src='./themes/".$g['theme']."/images/icons/icon_other.gif' title='Other'>"; elseif($vipent['mode'] == "ipalias") echo "<img src='./themes/".$g['theme']."/images/icons/icon_ifalias.gif' title='IP Alias'>";?> + <?php if($vipent['mode'] == "proxyarp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_parp.gif' title='Proxy ARP'>"; elseif($vipent['mode'] == "carp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_carp.gif' title='CARP'>"; elseif($vipent['mode'] == "other") echo "<img src='./themes/".$g['theme']."/images/icons/icon_other.gif' title='Other'>"; elseif($vipent['mode'] == "ipalias") echo "<img src='./themes/".$g['theme']."/images/icons/icon_ifalias.gif' title='IP Alias'>";?> </td> <td class="listbg" ondblclick="document.location='firewall_virtual_ip_edit.php?id=<?=$i;?>';"> <?=htmlspecialchars($vipent['descr']);?> diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index c4c127b..a297cb8 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -2586,7 +2586,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), <tr> <td valign="top" class="vncell">802.1X <?=gettext("Authentication Roaming Preauth"); ?></td> <td class="vtable"> - <input name="rsn_preauth" id="rsn_preauth" type="checkbox" class="formfld unknown" size="66" value="yes" <? if ($pconfig['rsn_preauth']) echo "checked"; ?>> + <input name="rsn_preauth" id="rsn_preauth" type="checkbox" class="formfld unknown" size="66" value="yes" <?php if ($pconfig['rsn_preauth']) echo "checked"; ?>> <br/> </td> </tr> diff --git a/usr/local/www/interfaces_bridge.php b/usr/local/www/interfaces_bridge.php index 9dfdd29..f9faba3 100644 --- a/usr/local/www/interfaces_bridge.php +++ b/usr/local/www/interfaces_bridge.php @@ -117,7 +117,7 @@ include("head.inc"); <?=htmlspecialchars(strtoupper($bridge['bridgeif']));?> </td> <td class="listr"> - <? $members = explode(',', $bridge['members']); + <?php $members = explode(',', $bridge['members']); $j = 0; foreach ($members as $member) { if (isset($ifdescrs[$member])) { diff --git a/usr/local/www/interfaces_qinq_edit.php b/usr/local/www/interfaces_qinq_edit.php index cace70c..16e629c 100755 --- a/usr/local/www/interfaces_qinq_edit.php +++ b/usr/local/www/interfaces_qinq_edit.php @@ -320,17 +320,17 @@ function removeRow(el) { <td width="78%" class="vtable"> <?php /* ?> <br/> - <input type="checkbox" value="yes" name="autoassign" id="autoassign" <? if ($pconfig['autoassign']) echo checked;?>/> + <input type="checkbox" value="yes" name="autoassign" id="autoassign" <?php if ($pconfig['autoassign']) echo checked;?>/> <span class="vexpl"> Auto assign interface so it can be configured with ip etc...</span> <br/> - <input type="checkbox" value="yes" name="autoenable" id="autoenable" <? if ($pconfig['autoenable']) echo checked;?>/> + <input type="checkbox" value="yes" name="autoenable" id="autoenable" <?php if ($pconfig['autoenable']) echo checked;?>/> <span class="vexpl"> Auto enable interface so it can be used on filter rules.</span> <br/> - <input type="checkbox" value="yes" name="autoadjustmtu" id="autoadjustmtu" <? if ($pconfig['autoadjustmtu']) echo "checked";?>> + <input type="checkbox" value="yes" name="autoadjustmtu" id="autoadjustmtu" <?php if ($pconfig['autoadjustmtu']) echo "checked";?>> <span class="vexpl"> Allows to keep clients mtu unchanged(1500). <br/>NOTE: if you are using jumbo frames this option is not needed and may produce incorrect results!</span> <?php */ ?> <br/> - <input name="autogroup" type="checkbox" value="yes" id="autogroup" <? if ($pconfig['autogroup']) echo "checked";?>> + <input name="autogroup" type="checkbox" value="yes" id="autogroup" <?php if ($pconfig['autogroup']) echo "checked";?>> <span class="vexpl"><?=gettext("Adds interface to QinQ interface groups so you can write filter rules easily.");?></span> </td> </tr> @@ -367,7 +367,7 @@ function removeRow(el) { ?> <tr> <td class="vtable"> - <input name="members<?php echo $counter; ?>" class="formselect" id="members<?php echo $counter; ?>" value="<? echo $member;?>"> + <input name="members<?php echo $counter; ?>" class="formselect" id="members<?php echo $counter; ?>" value="<?php echo $member;?>"> </td> <td> <a onclick="removeRow(this); return false;" href="#"><img border="0" src="/themes/<?echo $g['theme'];?>/images/icons/icon_x.gif" /></a> diff --git a/usr/local/www/interfaces_wireless_edit.php b/usr/local/www/interfaces_wireless_edit.php index 335fb5b..3b1367d 100644 --- a/usr/local/www/interfaces_wireless_edit.php +++ b/usr/local/www/interfaces_wireless_edit.php @@ -178,9 +178,9 @@ include("head.inc"); <td valign="top" class="vncellreq"><?=gettext("Mode");?></td> <td class="vtable"> <select name="mode" class="formselect"> - <option <? if ($pconfig['mode'] == 'bss') echo "selected";?> value="bss"><?=gettext("Infrastructure (BSS)");?></option> - <option <? if ($pconfig['mode'] == 'adhoc') echo "selected";?> value="adhoc"><?=gettext("Ad-hoc (IBSS)");?></option> - <option <? if ($pconfig['mode'] == 'hostap') echo "selected";?> value="hostap"><?=gettext("Access Point");?></option> + <option <?php if ($pconfig['mode'] == 'bss') echo "selected";?> value="bss"><?=gettext("Infrastructure (BSS)");?></option> + <option <?php if ($pconfig['mode'] == 'adhoc') echo "selected";?> value="adhoc"><?=gettext("Ad-hoc (IBSS)");?></option> + <option <?php if ($pconfig['mode'] == 'hostap') echo "selected";?> value="hostap"><?=gettext("Access Point");?></option> </select></td> </tr> <tr> diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php index 79beef2..8b31512 100755 --- a/usr/local/www/pkg.php +++ b/usr/local/www/pkg.php @@ -157,7 +157,7 @@ include("fbegin.inc"); ?> <form action="pkg.php" name="pkgform" method="get"> <input type='hidden' name='xml' value='<?=$_REQUEST['xml']?>'> -<? if($_GET['savemsg'] <> "") $savemsg = htmlspecialchars($_GET['savemsg']); ?> +<?php if($_GET['savemsg'] <> "") $savemsg = htmlspecialchars($_GET['savemsg']); ?> <div id="savemsg"></div> <?php if ($savemsg) print_info_box($savemsg); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php index 7b4d2f1..075deec 100644 --- a/usr/local/www/status_filter_reload.php +++ b/usr/local/www/status_filter_reload.php @@ -74,7 +74,7 @@ include("head.inc"); <?php if ($config['hasync'] && $config['hasync']["synchronizetoip"] != ""): ?> <input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter"> -<? endif; ?> +<?php endif; ?> </form> <br/><br/><br/> <div id="status" name="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;"> diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 2bfdd5d..de11cfc 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -542,10 +542,10 @@ function monitor_change() { <td width="22%" valign="top" class="vncell"><?=gettext("Advanced");?></td> <td width="78%" class="vtable"> <?php $showbutton = (!empty($pconfig['latencylow']) || !empty($pconfig['latencyhigh']) || !empty($pconfig['losslow']) || !empty($pconfig['losshigh']) || (isset($pconfig['weight']) && $pconfig['weight'] > 1) || (isset($pconfig['interval']) && ($pconfig['interval'] > $apinger_default['interval'])) || (isset($pconfig['down']) && !($pconfig['down'] == $apinger_default['down']))); ?> - <div id="showadvgatewaybox" <? if ($showbutton) echo "style='display:none'"; ?>> + <div id="showadvgatewaybox" <?php if ($showbutton) echo "style='display:none'"; ?>> <input type="button" onClick="show_advanced_gateway()" value="Advanced"></input> - Show advanced option</a> </div> - <div id="showgatewayadv" <? if (!$showbutton) echo "style='display:none'"; ?>> + <div id="showgatewayadv" <?php if (!$showbutton) echo "style='display:none'"; ?>> <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Weight");?></td> diff --git a/usr/local/www/vpn_l2tp.php b/usr/local/www/vpn_l2tp.php index a2b5643..699e468 100644 --- a/usr/local/www/vpn_l2tp.php +++ b/usr/local/www/vpn_l2tp.php @@ -375,7 +375,7 @@ function enable_change(enable_over) { <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Secret");?></td> <td width="78%" class="vtable"> - <input type="password" name="secret" id="secret" class="formfld pwd" value="<? echo htmlspecialchars($pconfig['secret']); ?>"> + <input type="password" name="secret" id="secret" class="formfld pwd" value="<?php echo htmlspecialchars($pconfig['secret']); ?>"> <br /> <?=gettext("Specify optional secret shared between peers. Required on some devices/setups.");?><br /> </td> diff --git a/usr/local/www/widgets/widgets/interfaces.widget.php b/usr/local/www/widgets/widgets/interfaces.widget.php index a0393d5..e77f9d6 100644 --- a/usr/local/www/widgets/widgets/interfaces.widget.php +++ b/usr/local/www/widgets/widgets/interfaces.widget.php @@ -56,12 +56,12 @@ require_once("/usr/local/www/widgets/include/interfaces.inc"); } else if($iswireless) { if($ifinfo['status'] == "associated") { ?> <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_wlan.gif" /> - <? } else { ?> + <?php } else { ?> <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_wlan_d.gif" /> - <? } ?> - <? } else { ?> + <?php } ?> + <?php } else { ?> <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_cablenic.gif"/> - <? } ?> + <?php } ?> <strong><u> <span onClick="location.href='/interfaces.php?if=<?=$ifdescr; ?>'" style="cursor:pointer"> <?=htmlspecialchars($ifname);?></span></u></strong> @@ -83,7 +83,7 @@ require_once("/usr/local/www/widgets/include/interfaces.inc"); <td> <div id="<?php echo $ifname;?>-block" style="display:none" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" title="<?=$ifname;?> is disabled" /></div> </td> - <? } else if ($ifinfo['status'] == "no carrier") { ?> + <?php } else if ($ifinfo['status'] == "no carrier") { ?> <td> <div id="<?php echo $ifname;?>-down" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_down.gif" title="<?=$ifname;?> is down" /></div> </td> @@ -93,7 +93,7 @@ require_once("/usr/local/www/widgets/include/interfaces.inc"); <td> <div id="<?php echo $ifname;?>-up" style="display:none" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_up.gif" title="<?=$ifname;?> is up" /></div> </td> - <? } else if ($ifinfo['status'] == "down") { ?> + <?php } else if ($ifinfo['status'] == "down") { ?> <td> <div id="<?php echo $ifname;?>-block" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" title="<?=$ifname;?> is disabled" /></div> </td> @@ -103,7 +103,7 @@ require_once("/usr/local/www/widgets/include/interfaces.inc"); <td> <div id="<?php echo $ifname;?>-down" style="display:none" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_down.gif" title="<?=$ifname;?> is down" /></div> </td> - <? } else { ?><?=htmlspecialchars($ifinfo['status']); }?> + <?php } else { ?><?=htmlspecialchars($ifinfo['status']); }?> <td> <div id="<?php echo $ifname;?>-media" style="display:inline"><?=htmlspecialchars($ifinfo['media']);?></div> </td> diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php index 836144b..c9653fc 100644 --- a/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/usr/local/www/widgets/widgets/ipsec.widget.php @@ -208,4 +208,4 @@ else { ?> </tr> </table> </div> -<? } ?>
\ No newline at end of file +<?php } ?> diff --git a/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/usr/local/www/widgets/widgets/traffic_graphs.widget.php index 4ca730b..a9e4e47 100644 --- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -146,9 +146,9 @@ foreach ($ifdescrs as $ifname => $ifdescr) { <div style="clear:both;"></div> </div> <div id="<?=$ifname;?>graphdiv" style="display:<?php echo $graphdisplay;?>"> - <embed id="graph" src="graph.php?ifnum=<?=$ifname;?>&ifname=<?=rawurlencode($ifname);?>&timeint=<?=$refreshinterval;?>&initdelay=<?=($graphcounter+1) * 2;?>" type="image/svg+xml" width="<? echo $width; ?>" height="<? echo $height; ?>" pluginspage="http://www.adobe.com/svg/viewer/install/auto" /> + <embed id="graph" src="graph.php?ifnum=<?=$ifname;?>&ifname=<?=rawurlencode($ifname);?>&timeint=<?=$refreshinterval;?>&initdelay=<?=($graphcounter+1) * 2;?>" type="image/svg+xml" width="<?php echo $width; ?>" height="<?php echo $height; ?>" pluginspage="http://www.adobe.com/svg/viewer/install/auto" /> </div> </div> - <? } + <?php } } ?> |