diff --git a/src/www/widgets/widgets/system_information.widget.php b/src/www/widgets/widgets/system_information.widget.php index ebe137030..79abf33ec 100644 --- a/src/www/widgets/widgets/system_information.widget.php +++ b/src/www/widgets/widgets/system_information.widget.php @@ -32,48 +32,13 @@ require_once("guiconfig.inc"); require_once("system.inc"); - -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").""; - } elseif ($pkg_status["repository"]=="error") { - 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').""; - } else { - echo "".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])."
".gettext("Click to upgrade")." | ".gettext('Re-check now').""; - } - - exit; -} ?> -