@@ -312,8 +310,10 @@ function print_info_box_np_undo($msg, $name="apply",$value="Apply changes", $und
$savebutton .= "
";
$savebutton .= "
";
- if($_POST['if'])
+ if(isset($_POST['if']))
$savebutton .= "
";
+ } else {
+ $savebutton = "
";
}
$nifty_redbox = "#990000";
$nifty_blackbox = "#000000";
@@ -331,10 +331,6 @@ function print_info_box_np_undo($msg, $name="apply",$value="Apply changes", $und
}
- if(!$savebutton) {
- $savebutton = "
";
- }
-
$url = $_SERVER['REQUEST_URI'];
echo <<
$alias_name){
- //$loading_image="
" .gettext("loading...")."";
- //switch ($alias_name['type']){
- //case "port":
- // $width="250";
- // break;
- //case "urltable":
- // $width="500";
- // break;
- //default:
- // $width="350";
- // break;
- //}
- //$span_begin = "";
- //$span_begin ="";
- //$span_end = "";
- //$span_begin=$span_begin.$config['aliases']['alias'][$alias_id]['name'];
- //var_dump($config['aliases']['alias'][$alias_id]);
if ($alias_name['name'] == $src) {
//var_dump($config['aliases']['alias'][$alias_id]);
$aliases_array['src']=$config['aliases']['alias'][$alias_id];
diff --git a/src/www/index.php b/src/www/index.php
index 6ab519e90..8895285bb 100644
--- a/src/www/index.php
+++ b/src/www/index.php
@@ -45,10 +45,6 @@ if (isset($_REQUEST['closenotice'])) {
echo get_menu_messages();
exit;
}
-if ($_REQUEST['act'] == 'alias_info_popup' && !preg_match("/\D/", $_REQUEST['aliasid'])) {
- alias_info_popup($_REQUEST['aliasid']);
- exit;
-}
##build list of widgets
$directory = "/usr/local/www/widgets/widgets/";
@@ -159,7 +155,7 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") {
##find custom configurations of a particular widget and load its info to $pconfig
foreach ($widgetnames as $widget) {
- if ($config['widgets'][$widget . '-config']) {
+ if (isset($config['widgets'][$widget . '-config'])) {
$pconfig[$widget . '-config'] = $config['widgets'][$widget . '-config'];
}
}
@@ -446,8 +442,13 @@ endif; ?>
$nicename = ucwords($nicename);
}
- if ($config['widgets'] && $pconfig['sequence'] != "") {
- switch($displayarray[$widgetcounter]){
+ if (isset($config['widgets']) && isset($pconfig['sequence'])) {
+ if (isset($displayarray[$widgetcounter])) {
+ $disparr = $displayarray[$widgetcounter];
+ } else {
+ $disparr = null;
+ }
+ switch($disparr){
case "show":
$divdisplay = "block";
$display = "block";
@@ -520,7 +521,7 @@ endif; ?>
@@ -529,19 +530,19 @@ endif; ?>
}
//echo widget title
echo $$widgettitle;
- if ($$widgettitlelink != "") {
+ if (isset($$widgettitlelink)) {
?>
@@ -49,7 +50,7 @@ require_once("widgets/include/interfaces.inc");
|
'" style="cursor:pointer">
=htmlspecialchars($ifname);?>
diff --git a/src/www/widgets/widgets/system_information.widget.php b/src/www/widgets/widgets/system_information.widget.php
index 64cab19bf..464d4d683 100644
--- a/src/www/widgets/widgets/system_information.widget.php
+++ b/src/www/widgets/widgets/system_information.widget.php
@@ -35,7 +35,7 @@ require_once('notices.inc');
include_once("includes/functions.inc.php");
require_once("script/load_phalcon.php");
-if ($_REQUEST['getupdatestatus']) {
+if (isset($_REQUEST['getupdatestatus'])) {
$pkg_json = trim(configd_run('firmware pkgstatus'));
if ($pkg_json != '') {
$pkg_status = json_decode($pkg_json, true);
@@ -128,7 +128,7 @@ endif; ?>
endif; ?>
|
-
| =gettext("Hardware crypto");?> |