summaryrefslogtreecommitdiffstats
path: root/etc/inc/authgui.inc
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-02-06 19:27:32 +0000
committerColin Fleming <cj_fleming@sky.com>2013-02-06 19:27:32 +0000
commit52593da5dbff0bfa2dc86f1e8c28c9a5632ea4d6 (patch)
tree35dc6a187010dbbdc3d33c71dbf2946aa1aa2338 /etc/inc/authgui.inc
parent0715ad5093226a9fd29b1abbbf57a9892efe4100 (diff)
downloadpfsense-52593da5dbff0bfa2dc86f1e8c28c9a5632ea4d6.zip
pfsense-52593da5dbff0bfa2dc86f1e8c28c9a5632ea4d6.tar.gz
Update HTML in "include" files
Udated the DOCTYPE to make it W3C standard/compliant. Moved "sorttable.js", "ticker.js" and the "antiClickJack style" from "fbegin.inc" and place them in "head.inc" (where they belong), this may also help the Widescreen package to work. Close BR, INPUT and IMG tags properly, update IMG tags with "alt" and update TABLE tags with "summary". Updated the SCRIPT and STYLE with proper CDATA sections. Updated LINK with the correct types.
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r--etc/inc/authgui.inc38
1 files changed, 21 insertions, 17 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index e344546..9974e56 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -107,8 +107,8 @@ function display_error_form($http_code, $desc) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<script type="text/javascript" src="/javascript/jquery.js"></script>
<title><?=$http_code?></title>
@@ -120,7 +120,7 @@ function display_error_form($http_code, $desc) {
<link rel="stylesheet" type="text/css" href="/themes/<?= $g['theme'] ?>/all.css" media="all" />
<?php endif; ?>
<script type="text/javascript">
- <!--
+ //<![CDATA[
function page_load() {}
function clearError() {
if($('#inputerrors'))
@@ -130,7 +130,7 @@ function display_error_form($http_code, $desc) {
require("headjs.php");
echo getHeadJS();
?>
- //-->
+ //]]>
</script>
<script type="text/javascript" src="/themes/<?= $g['theme'] ?>/javascript/niftyjsCode.js"></script>
</head>
@@ -209,12 +209,16 @@ $have_cookies = isset($_COOKIE["cookie_test"]);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<script type="text/javascript" src="/javascript/jquery.js"></script>
- <script>$(document).ready(function() { jQuery('#usernamefld').focus(); });</script>
-
+ <script type="text/javascript">
+ //<![CDATA[
+ $(document).ready(function() { jQuery('#usernamefld').focus(); });
+ /]]>
+ </script>
+
<title><?=gettext("Login"); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="/themes/<?= $g['theme'] ?>/images/icons/favicon.ico" />
@@ -224,7 +228,7 @@ $have_cookies = isset($_COOKIE["cookie_test"]);
<link rel="stylesheet" type="text/css" href="/themes/<?= $g['theme'] ?>/all.css" media="all" />
<?php endif; ?>
<script type="text/javascript">
- <!--
+ //<![CDATA[
function page_load() {}
function clearError() {
if($('#inputerrors'))
@@ -234,7 +238,7 @@ $have_cookies = isset($_COOKIE["cookie_test"]);
require("headjs.php");
echo getHeadJS();
?>
- //-->
+ //]]>
</script>
<script type="text/javascript" src="/themes/<?= $g['theme'] ?>/javascript/niftyjsCode.js"></script>
</head>
@@ -247,24 +251,24 @@ $have_cookies = isset($_COOKIE["cookie_test"]);
}
$noautocomplete = isset($config['system']['webgui']['noautocomplete']) ? 'autocomplete="off"' : '';
?>
- <form id="iform" name="login_iform" method="post" <?= $noautocomplete ?> action="<?=$_SERVER['SCRIPT_NAME'];?>">
- <h1></h1>
+ <form id="iform" name="iform" method="post" <?= $noautocomplete ?> action="<?=$_SERVER['SCRIPT_NAME'];?>">
+ <h1>&nbsp;</h1>
<div id="inputerrors"><?=$_SESSION['Login_Error'];?></div>
<p>
<span style="text-align:left">
- <?=gettext("Username:"); ?><br>
+ <?=gettext("Username:"); ?><br />
<input onclick="clearError();" onchange="clearError();" id="usernamefld" type="text" name="usernamefld" class="formfld user" tabindex="1" />
</span>
</p>
- <br>
<p>
+ <br />
<span style="text-align:left">
- <?=gettext("Password:"); ?> <br>
+ <?=gettext("Password:"); ?> <br />
<input onclick="clearError();" onchange="clearError();" id="passwordfld" type="password" name="passwordfld" class="formfld pwd" tabindex="2" />
</span>
</p>
- <br>
<p>
+ <br />
<span style="text-align:center; font-weight: normal ; font-style: italic">
<?=gettext("Enter username and password to login."); ?>
</span>
@@ -280,7 +284,7 @@ $have_cookies = isset($_COOKIE["cookie_test"]);
<span style="text-align:center">
<input type="submit" name="login" class="formbtn" value="<?=gettext("Login"); ?>" tabindex="3" />
</span>
- </P>
+ </p>
</form>
</div>
</body>
OpenPOWER on IntegriCloud