From b779511e2e362444439555754f6e5926ffd21715 Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Thu, 21 Feb 2013 19:28:22 +0000 Subject: Tidy up HTML errors in INDEX.PHP Without any "widgets" selected, INDEX.PHP (i.e. the "dashboard") produces 230+ HTML errors, so: Remove the "closehead" php variable Close INPUT, BR and IMG tags Add ALT parameter to IMG tags Add CDATA sections to SCRIPT tags Heading tags cannot contain DIV tags --- usr/local/www/index.php | 83 ++++++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 43 deletions(-) (limited to 'usr/local/www/index.php') diff --git a/usr/local/www/index.php b/usr/local/www/index.php index c8d721c..f70e376 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -161,8 +161,8 @@ if (!is_array($config['widgets'])) { if(file_exists('/conf/trigger_initial_wizard')) { echo << - + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + {$g['product_name']}.localdomain - {$g['product_name']} first time setup @@ -175,13 +175,13 @@ EOF; echo "\n"; if(file_exists("/usr/local/www/themes/{$g['theme']}/wizard.css")) - echo "\n"; + echo "\n"; else - echo ""; + echo ""; echo "
\n"; echo "
\n"; - echo "

\n"; + echo "\"logo\"

\n"; echo "

\n"; echo sprintf(gettext("Welcome to %s!\n"),$g['product_name']) . "

"; echo gettext("One moment while we start the initial setup wizard.") . "

\n"; @@ -190,8 +190,10 @@ EOF; echo "

\n"; echo "\n"; echo "\n"; exit; } @@ -274,8 +276,8 @@ foreach($phpincludefiles as $includename) { ##begin AJAX $jscriptstr = << - + EOD; -$closehead = false; + ## Set Page Title and Include Header $pgtitle = array(gettext("Status: Dashboard")); @@ -470,18 +472,17 @@ include("head.inc"); -

"; + echo "
\"big

"; if ($savemsg) print_info_box($savemsg); @@ -511,12 +512,12 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard"); //echo widget title ?> -
+
-

@@ -526,18 +527,16 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard");