summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2008-07-23 00:22:11 +0000
committerScott Dale <sdale@pfsense.org>2008-07-23 00:22:11 +0000
commit135e9b3bddb76933ac14f82d4a05b06832abd339 (patch)
tree0521e04924668107abf274129a16e63969d5a9b7 /usr/local/www
parent3f304727a0a1270514008c6979f35863c78e99dd (diff)
downloadpfsense-135e9b3bddb76933ac14f82d4a05b06832abd339.zip
pfsense-135e9b3bddb76933ac14f82d4a05b06832abd339.tar.gz
validate widget sequence before loading
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index ecb1b1b..4f92c2d 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -152,11 +152,10 @@ if ($_POST){
}
-if ($config['widgets'])
+if ($config['widgets'] && $pconfig['sequence'] != "")
{
$widgetlist = array();
$widgetlist = $pconfig['sequence'];
-
$colpos = array();
$savedwidgetfiles = array();
$widgetname = "";
@@ -501,6 +500,7 @@ echo $jscriptstr;
?>
<div id="col1" style="float:left;width:49%;padding-bottom:40px">
<?php
+
foreach($widgetlist as $widget) {
if(!stristr($widget, "widget.php"))
@@ -515,7 +515,7 @@ echo $jscriptstr;
$nicename = ucwords($nicename);
}
- if ($config['widgets']){
+ if ($config['widgets'] && $pconfig['sequence'] != ""){
if ($displayarray[$widgetcounter] == "show"){
$divdisplay = "block";
$display = "block";
@@ -583,7 +583,7 @@ echo $jscriptstr;
}
}
- if ($config['widgets']){
+ if ($config['widgets'] && $pconfig['sequence'] != ""){
if ($colpos[$widgetcounter] == "col2" && $printed == false)
{
$printed = true;
@@ -675,7 +675,7 @@ echo $jscriptstr;
<script type="text/javascript">
- <?php if (!$config['widgets']){ ?>
+ <?php if (!$config['widgets'] && $pconfig['sequence'] != ""){ ?>
window.onload = function(in_event)
{
hideAllWidgets();
OpenPOWER on IntegriCloud