From 9b50c0ed68c80e59c040d4c11d986f32661d4c47 Mon Sep 17 00:00:00 2001 From: Charlie Marshall Date: Tue, 6 Aug 2013 23:46:42 +0100 Subject: remove whitespaces from widgets --- .../www/widgets/widgets/dyn_dns_status.widget.php | 6 +- .../widgets/interface_statistics.widget.php | 90 +++++++++++----------- .../www/widgets/widgets/interfaces.widget.php | 20 ++--- usr/local/www/widgets/widgets/openvpn.widget.php | 4 +- .../widgets/widgets/system_information.widget.php | 2 +- .../www/widgets/widgets/thermal_sensors.widget.php | 58 +++++++------- .../www/widgets/widgets/wake_on_lan.widget.php | 10 +-- 7 files changed, 95 insertions(+), 95 deletions(-) (limited to 'usr') diff --git a/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/usr/local/www/widgets/widgets/dyn_dns_status.widget.php index 2ae268b..6fc9da7 100644 --- a/usr/local/www/widgets/widgets/dyn_dns_status.widget.php +++ b/usr/local/www/widgets/widgets/dyn_dns_status.widget.php @@ -28,7 +28,7 @@ POSSIBILITY OF SUCH DAMAGE. */ /* - pfSense_BUILDER_BINARIES: /usr/bin/host + pfSense_BUILDER_BINARIES: /usr/bin/host pfSense_MODULE: dyndns */ @@ -109,8 +109,8 @@ if($_REQUEST['getdyndnsstatus']) { ".htmlspecialchars($types[$j]).""; else diff --git a/usr/local/www/widgets/widgets/interface_statistics.widget.php b/usr/local/www/widgets/widgets/interface_statistics.widget.php index ff14a2e..3feba5f 100644 --- a/usr/local/www/widgets/widgets/interface_statistics.widget.php +++ b/usr/local/www/widgets/widgets/interface_statistics.widget.php @@ -1,6 +1,6 @@ $ifname){ $ifinfo = get_interface_info($ifdescr); $interfacecounter++; - if ($ifinfo['status'] != "down"){ + if ($ifinfo['status'] != "down"){ $array_in_packets[] = $ifinfo['inpkts']; $array_out_packets[] = $ifinfo['outpkts']; $array_in_bytes[] = format_bytes($ifinfo['inbytes']); @@ -72,84 +72,84 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc"); else $array_collisions[] = "n/a"; } - - + + }//end for - - - - + + + + ?> -
+
- + - + - + - + - + - + - + - +
   
   
Packets In
Packets Out
Bytes In
Bytes Out
Errors In
Errors Out
Collisions
- + - $ifname): + foreach ($ifdescrs as $ifdescr => $ifname): $ifinfo = get_interface_info($ifdescr); if ($ifinfo['status'] != "down"){ ?> - - + - - - + - - - + " style="height:25px"> - - + - - - + " style="height:25px"> - - + - - - - - + -
-
\ No newline at end of file +
diff --git a/usr/local/www/widgets/widgets/interfaces.widget.php b/usr/local/www/widgets/widgets/interfaces.widget.php index 1a9398b..ebef0ba 100644 --- a/usr/local/www/widgets/widgets/interfaces.widget.php +++ b/usr/local/www/widgets/widgets/interfaces.widget.php @@ -38,42 +38,42 @@ require_once("pfsense-utils.inc"); require_once("functions.inc"); require_once("/usr/local/www/widgets/include/interfaces.inc"); - $i = 0; + $i = 0; $ifdescrs = get_configured_interface_with_descr(); ?> - + - $ifname) { $ifinfo = get_interface_info($ifdescr); $iswireless = is_interface_wireless($ifdescr); ?> - +
- "; } else if($iswireless) { - if($ifinfo['status'] == "associated") { ?> + if($ifinfo['status'] == "associated") { ?> wlan wlan_d cablenic -   +   - - + diff --git a/usr/local/www/widgets/widgets/openvpn.widget.php b/usr/local/www/widgets/widgets/openvpn.widget.php index 6413353..5c7d756 100644 --- a/usr/local/www/widgets/widgets/openvpn.widget.php +++ b/usr/local/www/widgets/widgets/openvpn.widget.php @@ -107,9 +107,9 @@ $clients = openvpn_get_active_clients(); ' class=""> - + diff --git a/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/usr/local/www/widgets/widgets/wake_on_lan.widget.php index 6deb74b..6639601 100644 --- a/usr/local/www/widgets/widgets/wake_on_lan.widget.php +++ b/usr/local/www/widgets/widgets/wake_on_lan.widget.php @@ -2,17 +2,17 @@ /* wake_on_lan.widget.php Copyright (C) 2010 Yehuda Katz - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INClUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -50,7 +50,7 @@ if (count($wolcomputers) > 0) { foreach($wolcomputers as $wolent) { echo '' . "\n"; echo '' . "\n"; - + $is_active = exec("/usr/sbin/arp -an |/usr/bin/grep {$wolent['mac']}| /usr/bin/wc -l|/usr/bin/awk '{print $1;}'"); if($is_active == 1) { echo '
up
Real/Virtual IP
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index d19627d..2bba499 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -165,7 +165,7 @@ $curcfg = $config['system']['firmware'];
diff --git a/usr/local/www/widgets/widgets/thermal_sensors.widget.php b/usr/local/www/widgets/widgets/thermal_sensors.widget.php index 4413ba6..99ed40a 100644 --- a/usr/local/www/widgets/widgets/thermal_sensors.widget.php +++ b/usr/local/www/widgets/widgets/thermal_sensors.widget.php @@ -4,7 +4,7 @@ Description: Thermal Sensors Widget. NOTE: depends on proper cofing in System >> Advanced >> Miscellaneous tab >> Thermal Sensors section. - File location: + File location: \usr\local\www\widgets\widgets\ Depends on: \usr\local\www\widgets\javascript\thermal_sensors.js @@ -179,73 +179,73 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) {
- Zone Warning: + Zone Warning: - - />
- Zone Critical: + Zone Critical: - - />
- Core Warning: + Core Warning: - - />
- Core Critical: + Core Critical: - - />
' . $wolent['descr'] . '
' . $wolent['mac'] . '
' . convert_friendly_interface_to_friendly_descr($wolent['interface']) . '' . "\n"; -- cgit v1.1