summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager_settings.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-04-08 20:22:39 +0100
committerColin Fleming <cj_fleming@sky.com>2013-04-08 20:22:39 +0100
commit1df3c262f9ac35ef0bb32fb27b54dd093b2948b1 (patch)
tree5d9a1ce6bae5e8fe57a9b438360e6db864037e8b /usr/local/www/system_usermanager_settings.php
parent4fd2fed2ad6672c3be771146048bee61317f3197 (diff)
downloadpfsense-1df3c262f9ac35ef0bb32fb27b54dd093b2948b1.zip
pfsense-1df3c262f9ac35ef0bb32fb27b54dd093b2948b1.tar.gz
Tidy up "system_usermanager_settings.php" XHTML
Add CDATA sections to SCRIPT tags Update HTML boolean operators
Diffstat (limited to 'usr/local/www/system_usermanager_settings.php')
-rwxr-xr-xusr/local/www/system_usermanager_settings.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php
index d3ef3fe..33b6b82 100755
--- a/usr/local/www/system_usermanager_settings.php
+++ b/usr/local/www/system_usermanager_settings.php
@@ -97,15 +97,17 @@ include("head.inc");
<?php
if($save_and_test) {
- echo "<script language='javascript'>\n";
+ echo "<script type=\"text/javascript\">\n";
+ echo "//<![CDATA[\n";
echo "myRef = window.open('system_usermanager_settings_test.php?authserver={$pconfig['authmode']}','mywin', ";
echo "'left=20,top=20,width=700,height=550,toolbar=1,resizable=0');\n";
echo "if (myRef==null || typeof(myRef)=='undefined') alert('" . gettext("Popup blocker detected. Action aborted.") ."');\n";
+ echo "//]]>\n";
echo "</script>\n";
}
?>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="user manager settings">
<tr>
<td class="tabnavtbl">
<?php
@@ -122,11 +124,12 @@ if(!$pconfig['backend'])
?>
</td>
+ </tr>
<tr>
<td>
<div id="mainarea">
<form id="iform" name="iform" action="system_usermanager_settings.php" method="post">
- <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6">
+ <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6" summary="main area">
<tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Session Timeout"); ?></td>
<td width="78%" class="vtable">
@@ -145,9 +148,9 @@ if(!$pconfig['backend'])
foreach ($auth_servers as $auth_server):
$selected = "";
if ($auth_server['name'] == $pconfig['authmode'])
- $selected = "selected";
+ $selected = "selected=\"selected\"";
if (!isset($pconfig['authmode']) && $auth_server['name'] == "Local Database")
- $selected = "selected";
+ $selected = "selected=\"selected\"";
?>
<option value="<?=$auth_server['name'];?>" <?=$selected;?>><?=$auth_server['name'];?></option>
OpenPOWER on IntegriCloud