diff options
author | jim-p <jimp@pfsense.org> | 2010-08-11 12:31:18 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-11 13:39:56 -0400 |
commit | 3b370abf73aa327ad490c37b9ad9aefb777a321c (patch) | |
tree | 4afa37e0f235f8186fbf1598ae6737f108585de7 /usr | |
parent | beca7814caec44638384a59e6001a41093479210 (diff) | |
download | pfsense-3b370abf73aa327ad490c37b9ad9aefb777a321c.zip pfsense-3b370abf73aa327ad490c37b9ad9aefb777a321c.tar.gz |
Change these PRINTs to echo for consistency, and reformat a little. Wrap vars inside strings in {}.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_lb_pool.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php index 9212cd1..fa591b9 100755 --- a/usr/local/www/status_lb_pool.php +++ b/usr/local/www/status_lb_pool.php @@ -131,30 +131,34 @@ foreach( (array) $relayctl as $line) { default: $bgcolor = "lightcoral"; } - PRINT "<tr>"; + echo "<tr>"; switch ($vipent['mode']) { case 'loadbalance': - if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."' checked></td>"; + if($svr[0]!="") + echo "<td><input type='checkbox' name='{$vipent['name']}_{$svr[0]}' checked></td>"; break; case 'failover': - if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."' checked></td>"; + if($svr[0]!="") + echo "<td><input type='radio' name='{$vipent['name']}' checked></td>"; break; } - PRINT "<td bgcolor=".$bgcolor."> {$svr[0]}:{$vipent['port']} </td></tr>"; + echo "<td bgcolor={$bgcolor}> {$svr[0]}:{$vipent['port']} </td></tr>"; } } foreach ((array) $vipent['serversdisabled'] as $server) { $svr = split("\|", $server); - PRINT "<tr>"; + echo "<tr>"; switch ($vipent['mode']) { case 'loadbalance': - if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."'></td>"; + if($svr[0]!="") + echo "<td><input type='checkbox' name='{$vipent['name']}_{$svr[0]}'></td>"; break; case 'failover': - if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."'></td>"; + if($svr[0]!="") + echo "<td><input type='radio' name='{$vipent['name']}'></td>"; break; } - PRINT "<td> {$svr[0]}:{$vipent['port']} </td></tr>"; + echo "<td> {$svr[0]}:{$vipent['port']} </td></tr>"; } ?> </table> |