diff options
author | NewEraCracker <neweracracker@gmail.com> | 2016-01-14 15:59:59 +0000 |
---|---|---|
committer | NewEraCracker <neweracracker@gmail.com> | 2016-01-14 15:59:59 +0000 |
commit | 5c0ab3cd34fb5135c16639e3eb3a2a870ce3ce32 (patch) | |
tree | ae4ea269f6b99756f25f3649238b523a42123322 /src/usr/local/www/widgets | |
parent | ebfbb1b30c52dd9b9385dc3717c8dbb1cdafc9f2 (diff) | |
download | pfsense-5c0ab3cd34fb5135c16639e3eb3a2a870ce3ce32.zip pfsense-5c0ab3cd34fb5135c16639e3eb3a2a870ce3ce32.tar.gz |
All simple php echo to short
Short version is far more used than long php echo. This brings all code to same standard where possible.
Diffstat (limited to 'src/usr/local/www/widgets')
4 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/local/www/widgets/widgets/gateways.widget.php b/src/usr/local/www/widgets/widgets/gateways.widget.php index 2b9958e..b24e77e 100644 --- a/src/usr/local/www/widgets/widgets/gateways.widget.php +++ b/src/usr/local/www/widgets/widgets/gateways.widget.php @@ -129,9 +129,9 @@ if ($_POST) { } } ?> - <input name="display_type" class="radio" type="radio" id="display_type_gw_ip" value="gw_ip" <?php echo $display_type_gw_ip; ?> onchange="updateGatewayDisplays();" /> <span>Gateway IP</span> - <input name="display_type" class="radio" type="radio" id="display_type_monitor_ip" value="monitor_ip" <?php echo $display_type_monitor_ip; ?> onchange="updateGatewayDisplays();" /> <span>Monitor IP</span> - <input name="display_type" class="radio" type="radio" id="display_type_both_ip" value="both_ip" <?php echo $display_type_both_ip; ?> onchange="updateGatewayDisplays();" /> <span>Both</span> + <input name="display_type" class="radio" type="radio" id="display_type_gw_ip" value="gw_ip" <?=$display_type_gw_ip;?> onchange="updateGatewayDisplays();" /> <span>Gateway IP</span> + <input name="display_type" class="radio" type="radio" id="display_type_monitor_ip" value="monitor_ip" <?=$display_type_monitor_ip;?> onchange="updateGatewayDisplays();" /> <span>Monitor IP</span> + <input name="display_type" class="radio" type="radio" id="display_type_both_ip" value="both_ip" <?=$display_type_both_ip;?> onchange="updateGatewayDisplays();" /> <span>Both</span> <br /><br /> <input id="submit_settings" name="submit_settings" type="submit" onclick="return updatePref();" class="formbtn" value="Save Settings" /> </form> diff --git a/src/usr/local/www/widgets/widgets/ntp_status.widget.php b/src/usr/local/www/widgets/widgets/ntp_status.widget.php index a98d84a..e0420ef 100644 --- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php +++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php @@ -188,7 +188,7 @@ if ($_REQUEST['updateme']) { <?php if ($ntpq_counter == 0): ?> <i>No active peers available</i> <?php else: ?> - <?php echo $syncsource; ?> + <?=$syncsource;?> <?php endif; ?> </td> </tr> @@ -196,7 +196,7 @@ if ($_REQUEST['updateme']) { <tr> <th>Clock location</th> <td> - <a target="_gmaps" href="http://maps.google.com/?q=<?php echo $gps_lat; ?>,<?php echo $gps_lon; ?>"> + <a target="_gmaps" href="http://maps.google.com/?q=<?=$gps_lat;?>,<?=$gps_lon;?>"> <?php echo sprintf("%.5f", $gps_lat) . " " . $gps_la . ", " . sprintf("%.5f", $gps_lon) . " " . $gps_lo; ?> </a> diff --git a/src/usr/local/www/widgets/widgets/openvpn.widget.php b/src/usr/local/www/widgets/widgets/openvpn.widget.php index 2d34401..88cb7c9 100644 --- a/src/usr/local/www/widgets/widgets/openvpn.widget.php +++ b/src/usr/local/www/widgets/widgets/openvpn.widget.php @@ -133,7 +133,7 @@ $clients = openvpn_get_active_clients(); <td> <i class="fa fa-times-circle" onclick="killClient('<?=$server['mgmt']; ?>', '<?=$conn['remote_host']; ?>');" style="cursor:pointer;" name="<?php echo "i:{$server['mgmt']}:{$conn['remote_host']}"; ?>" - title='Kill client connection from <?php echo $conn['remote_host']; ?>'> + title='Kill client connection from <?=$conn['remote_host'];?>'> </i> </td> </tr> diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index 3f45cc7..8c70b5e 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -152,7 +152,7 @@ $filesystems = get_mounted_filesystems(); <tr> <th><?=gettext("NanoBSD Boot Slice");?></th> <td> - <?=htmlspecialchars(nanobsd_friendly_slice_name($BOOT_DEVICE));?> / <?=htmlspecialchars($BOOTFLASH);?><?php echo $rw; ?> + <?=htmlspecialchars(nanobsd_friendly_slice_name($BOOT_DEVICE));?> / <?=htmlspecialchars($BOOTFLASH);?><?=$rw;?> <?php if ($BOOTFLASH != $ACTIVE_SLICE): ?> <br /><br />Next Boot:<br /> <?=htmlspecialchars(nanobsd_friendly_slice_name($GLABEL_SLICE));?> / <?=htmlspecialchars($ACTIVE_SLICE);?> |