diff --git a/src/www/widgets/widgets/system_information.widget.php b/src/www/widgets/widgets/system_information.widget.php index e94f36189..ae5910eb3 100644 --- a/src/www/widgets/widgets/system_information.widget.php +++ b/src/www/widgets/widgets/system_information.widget.php @@ -1,32 +1,32 @@ , Manuel Kasper - and Jonathan Watt . - All rights reserved. + Copyright (C) 2014-2016 Deciso B.V. + Copyright (C) 2007 Scott Dale + Copyright (C) 2004-2005 T. Lechat , Manuel Kasper + and Jonathan Watt . + All rights reserved. - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: + 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. + 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. + 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 - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. + 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 + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. */ require_once("guiconfig.inc"); @@ -44,266 +44,284 @@ if (stristr($swapinfo, '%')) { } -if (isset($_REQUEST['getupdatestatus'])) { +if (isset($_POST['getupdatestatus'])) { $pkg_json = trim(configd_run('firmware check')); if ($pkg_json != '') { $pkg_status = json_decode($pkg_json, true); } if (!isset($pkg_status) || $pkg_status["connection"]=="error") { - echo "".gettext("Connection Error")."
".gettext("Click to retry").""; + echo "".gettext("Connection Error")."
".gettext("Click to retry").""; } elseif ($pkg_status["repository"]=="error") { - echo "".gettext("Repository Problem")."
".gettext("Click to retry").""; + echo "".gettext("Repository Problem")."
".gettext("Click to retry").""; } elseif ($pkg_status["updates"]=="0") { - echo "".gettext("Your system is up to date.")."
".gettext('Click to check for updates').""; + echo "".gettext("Your system is up to date.")."
".gettext('Click to check for updates').""; } else { - echo "".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])."
".gettext("Click to upgrade")." | ".gettext('Re-check now').""; + echo "".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])."
".gettext("Click to upgrade")." | ".gettext('Re-check now').""; } exit; } $filesystems = get_mounted_filesystems(); - ?> + + + + - - - - - - - - - +
- -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - +
+
+ +
+
+ () + + - - + +
+
+ +
+
+ + - - - - - - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + - - + + +
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+
- - -
-
- -
- 1) : -?> -
- CPUs:
- -
-
-
- "; - } - ?> -
- -
-
- -
-
- () -
- -
- + + -
-
- -
-
- () -
- + + -
-
- -
-
- -
-
-
- -
-
- -
-
- () -
- -
-
- -
-
- used MB -
+
+
+ +
+
+ +
+
+ used MB +
- -
-
- -
-
- used MB -
+
+ +
+
+ +
+
+ used MB +
-
-
- -
-
- +
+ +
+ + - : used
'; - } + : used
'; + } endforeach; ?> -
-