From abdee6c40dd7530b852177be098c173e32bb0d56 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 28 Apr 2016 18:24:43 +0200 Subject: [PATCH] (dashboard) step by step cleanup, move changeTabDIV to ipsec.widget.php, remove unused widgetAjax --- src/www/index.php | 86 +++--------------------- src/www/widgets/widgets/ipsec.widget.php | 40 ++++++++++- 2 files changed, 47 insertions(+), 79 deletions(-) diff --git a/src/www/index.php b/src/www/index.php index 8077692a2..7a810b1bb 100644 --- a/src/www/index.php +++ b/src/www/index.php @@ -72,7 +72,7 @@ sort($widgetfiles); array_unshift($widgetfiles, "system_information.widget.php"); ##if no config entry found, initialize config entry -if (!is_array($config['widgets'])) { +if (empty($config['widgets']) || !is_array($config['widgets'])) { $config['widgets'] = array(); } @@ -160,39 +160,15 @@ foreach ($phpincludefiles as $includename) { include($directory . $includename); } -##begin AJAX -$jscriptstr = << + + + -EOD; - -include("head.inc"); - -?> - - - \n"; -echo $jscriptstr; ?> - +