Login Bug cleared
This commit is contained in:
parent
8d59aca986
commit
39d5b8078c
|
@ -133,144 +133,160 @@ function display_LoginPage($config_object,$profile)
|
||||||
echo "<br><br>";
|
echo "<br><br>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form action="login.php" method="post">
|
<table width="650" align="center" border="2" rules="none" bgcolor="white">
|
||||||
<table width="650" align="center" border="2" rules="none" bgcolor="white">
|
<tr>
|
||||||
<tr>
|
<td style="border-style:none" width="70" rowspan="2">
|
||||||
<td style="border-style:none" width="70" rowspan="9">
|
<img src="../graphics/lam.png" alt="Logo">
|
||||||
<img src="../graphics/lam.png" alt="Logo">
|
</td>
|
||||||
</td>
|
<td width="580">
|
||||||
<td style="border-style:none" height="70" colspan="2" align="center">
|
<form action="login.php" method="post">
|
||||||
<font color="darkblue"><b><big><?php echo _("Enter Username and Password for Account"); ?></big></b></font>
|
<table width="580">
|
||||||
</td>
|
<tr>
|
||||||
<td style="border-style:none" rowspan="9" width="70">
|
<td style="border-style:none" height="70" colspan="2" align="center">
|
||||||
|
<font color="darkblue"><b><big><?php echo _("Enter Username and Password for Account"); ?></big></b></font>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
<td style="border-style:none" rowspan="9" width="70">
|
||||||
<tr>
|
|
||||||
<td style="border-style:none" height="35" align="right"><b>
|
</td>
|
||||||
<?php
|
</tr>
|
||||||
echo _("Username") . ":";
|
<tr>
|
||||||
?>
|
<td style="border-style:none" height="35" align="right"><b>
|
||||||
</b> </td>
|
<?php
|
||||||
<td style="border-style:none" height="35" align="left">
|
echo _("Username") . ":";
|
||||||
<select name="username" size="1">
|
?>
|
||||||
<?php
|
</b> </td>
|
||||||
$admins = $config_object->get_Admins();
|
<td style="border-style:none" height="35" align="left">
|
||||||
for($i = 0; $i < count($admins); $i++) {
|
<select name="username" size="1" tabindex="0">
|
||||||
$text = explode(",", $admins[$i]);
|
<?php
|
||||||
$text = explode("=", $text[0]);
|
$admins = $config_object->get_Admins();
|
||||||
?>
|
for($i = 0; $i < count($admins); $i++) {
|
||||||
<option value="<?php echo $admins[$i]; ?>"><?php echo $text[1]; ?></option>
|
$text = explode(",", $admins[$i]);
|
||||||
<?php
|
$text = explode("=", $text[0]);
|
||||||
}
|
?>
|
||||||
?>
|
<option value="<?php echo $admins[$i]; ?>"><?php echo $text[1]; ?></option>
|
||||||
</select>
|
<?php
|
||||||
</td>
|
}
|
||||||
</tr>
|
?>
|
||||||
<tr>
|
</select>
|
||||||
<td style="border-style:none" height="35" align="right"><b>
|
</td>
|
||||||
<?php
|
</tr>
|
||||||
echo _("Password") . ":";
|
<tr>
|
||||||
?>
|
<td style="border-style:none" height="35" align="right"><b>
|
||||||
</b> </td>
|
<?php
|
||||||
<td style="border-style:none" height="35" align="left">
|
echo _("Password") . ":";
|
||||||
<input type="password" name="passwd">
|
?>
|
||||||
</td>
|
</b> </td>
|
||||||
</tr>
|
<td style="border-style:none" height="35" align="left">
|
||||||
<tr>
|
<input type="password" name="passwd" tabindex="1">
|
||||||
<?php
|
</td>
|
||||||
if($message != "") {
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
<td height="35" colspan="3" align="center">
|
|
||||||
<?php
|
|
||||||
echo $message;
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<td style="border-style:none" align="right"><b>
|
|
||||||
<?php
|
|
||||||
echo _("Your Language") . ":";
|
|
||||||
?>
|
|
||||||
</b> </td>
|
|
||||||
<td style="border-style:none" height="35" align="left">
|
|
||||||
<select name="language" size="1">
|
|
||||||
<?php
|
|
||||||
for($i = 0; $i < count($languages); $i++) {
|
|
||||||
if($languages[$i]["default"] == "YES") {
|
|
||||||
?>
|
|
||||||
<option selected value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
|
||||||
<?php
|
<?php
|
||||||
|
if($message != "") {
|
||||||
|
?>
|
||||||
|
<td height="35" colspan="3" align="center">
|
||||||
|
<?php
|
||||||
|
echo $message;
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
?>
|
||||||
|
<td style="border-style:none" align="right"><b>
|
||||||
|
<?php
|
||||||
|
echo _("Your Language") . ":";
|
||||||
|
?>
|
||||||
|
</b> </td>
|
||||||
|
<td style="border-style:none" height="35" align="left">
|
||||||
|
<select name="language" size="1" tabindex="2">
|
||||||
|
<?php
|
||||||
|
for($i = 0; $i < count($languages); $i++) {
|
||||||
|
if($languages[$i]["default"] == "YES") {
|
||||||
|
?>
|
||||||
|
<option selected value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
</tr>
|
||||||
<?php
|
<tr>
|
||||||
}
|
<td style="border-style:none" height="50" colspan="2" align="center">
|
||||||
}
|
<input name="checklogin" type="hidden" value="checklogin">
|
||||||
?>
|
<input name="submit" type="submit" value="<?php echo _("Login"); ?>" tabindex="3">
|
||||||
</select>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<?php
|
<tr>
|
||||||
}
|
<td style="border-style:none" height="50" colspan="2" align="center">
|
||||||
?>
|
<?php
|
||||||
</tr>
|
if($error_message != "") {
|
||||||
<tr>
|
echo "<font color=\"red\"><b>" . $error_message . "</b></font>";
|
||||||
<td style="border-style:none" height="50" colspan="2" align="center">
|
}
|
||||||
<input name="checklogin" type="submit" value="<?php echo _("Login"); ?>">
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
</table>
|
||||||
<td style="border-style:none" height="50" colspan="2" align="center">
|
</form>
|
||||||
<?php
|
|
||||||
if($error_message != "") {
|
|
||||||
echo "<font color=\"red\"><b>" . $error_message . "</b></font>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:none" height="30" colspan="2">
|
|
||||||
<hr>
|
|
||||||
<b>
|
|
||||||
<?php
|
|
||||||
echo _("LDAP server") . ": ";
|
|
||||||
?></b>
|
|
||||||
<?php echo $config_object->get_ServerURL(); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:none" height="30"><b>
|
|
||||||
<?php
|
|
||||||
echo _("Configuration profile") . ": ";
|
|
||||||
if(!$_POST['profileChange']) {
|
|
||||||
$_POST['profile'] = $_SESSION['config']->file;
|
|
||||||
}
|
|
||||||
?></b>
|
|
||||||
<?php echo $_POST['profile']; ?>
|
|
||||||
</td>
|
</td>
|
||||||
<td style="border-style:none" height="30" align="right">
|
</tr>
|
||||||
<select name="profile" size="1">
|
<tr>
|
||||||
<?php
|
<td>
|
||||||
for($i=0;$i<count($profiles);$i++) {
|
<form action="login.php" method="post">
|
||||||
?>
|
<table width="580">
|
||||||
<option value="<?php echo $profiles[$i]; ?>"><?php echo $profiles[$i]; ?></option>
|
<tr>
|
||||||
<?php
|
<td style="border-style:none" height="30" colspan="2">
|
||||||
}
|
<hr>
|
||||||
?>
|
<b>
|
||||||
</select>
|
<?php
|
||||||
<input name="profileChange" type="submit" value="<?php echo _("Change Profile"); ?>">
|
echo _("LDAP server") . ": ";
|
||||||
|
?></b>
|
||||||
|
<?php echo $config_object->get_ServerURL(); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border-style:none" height="30"><b>
|
||||||
|
<?php
|
||||||
|
echo _("Configuration profile") . ": ";
|
||||||
|
if(!$_POST['profileChange']) {
|
||||||
|
$_POST['profile'] = $_SESSION['config']->file;
|
||||||
|
}
|
||||||
|
?></b>
|
||||||
|
<?php echo $_POST['profile']; ?>
|
||||||
|
</td>
|
||||||
|
<td style="border-style:none" height="30" align="right">
|
||||||
|
<select name="profile" size="1" tabindex="4">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($profiles);$i++) {
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $profiles[$i]; ?>"><?php echo $profiles[$i]; ?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<input name="profileChange" type="hidden" value="profileChange">
|
||||||
|
<input name="submit" type="submit" value="<?php echo _("Change Profile"); ?>" tabindex="5">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border-style:none" height="10" colspan="2"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
</table>
|
||||||
<td style="border-style:none" height="10" colspan="2"></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br><br>
|
<br><br>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -138,144 +138,160 @@ function display_LoginPage($config_object,$profile)
|
||||||
echo "<br><br>";
|
echo "<br><br>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form action="login.php" method="post">
|
<table width="650" align="center" border="2" rules="none" bgcolor="white">
|
||||||
<table width="650" align="center" border="2" rules="none" bgcolor="white">
|
<tr>
|
||||||
<tr>
|
<td style="border-style:none" width="70" rowspan="2">
|
||||||
<td style="border-style:none" width="70" rowspan="9">
|
<img src="../graphics/lam.png" alt="Logo">
|
||||||
<img src="../graphics/lam.png" alt="Logo">
|
</td>
|
||||||
</td>
|
<td width="580">
|
||||||
<td style="border-style:none" height="70" colspan="2" align="center">
|
<form action="login.php" method="post">
|
||||||
<font color="darkblue"><b><big><?php echo _("Enter Username and Password for Account"); ?></big></b></font>
|
<table width="580">
|
||||||
</td>
|
<tr>
|
||||||
<td style="border-style:none" rowspan="9" width="70">
|
<td style="border-style:none" height="70" colspan="2" align="center">
|
||||||
|
<font color="darkblue"><b><big><?php echo _("Enter Username and Password for Account"); ?></big></b></font>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
<td style="border-style:none" rowspan="9" width="70">
|
||||||
<tr>
|
|
||||||
<td style="border-style:none" height="35" align="right"><b>
|
</td>
|
||||||
<?php
|
</tr>
|
||||||
echo _("Username") . ":";
|
<tr>
|
||||||
?>
|
<td style="border-style:none" height="35" align="right"><b>
|
||||||
</b> </td>
|
<?php
|
||||||
<td style="border-style:none" height="35" align="left">
|
echo _("Username") . ":";
|
||||||
<select name="username" size="1" tabindex="0">
|
?>
|
||||||
<?php
|
</b> </td>
|
||||||
$admins = $config_object->get_Admins();
|
<td style="border-style:none" height="35" align="left">
|
||||||
for($i = 0; $i < count($admins); $i++) {
|
<select name="username" size="1" tabindex="0">
|
||||||
$text = explode(",", $admins[$i]);
|
<?php
|
||||||
$text = explode("=", $text[0]);
|
$admins = $config_object->get_Admins();
|
||||||
?>
|
for($i = 0; $i < count($admins); $i++) {
|
||||||
<option value="<?php echo $admins[$i]; ?>"><?php echo $text[1]; ?></option>
|
$text = explode(",", $admins[$i]);
|
||||||
<?php
|
$text = explode("=", $text[0]);
|
||||||
}
|
?>
|
||||||
?>
|
<option value="<?php echo $admins[$i]; ?>"><?php echo $text[1]; ?></option>
|
||||||
</select>
|
<?php
|
||||||
</td>
|
}
|
||||||
</tr>
|
?>
|
||||||
<tr>
|
</select>
|
||||||
<td style="border-style:none" height="35" align="right"><b>
|
</td>
|
||||||
<?php
|
</tr>
|
||||||
echo _("Password") . ":";
|
<tr>
|
||||||
?>
|
<td style="border-style:none" height="35" align="right"><b>
|
||||||
</b> </td>
|
<?php
|
||||||
<td style="border-style:none" height="35" align="left">
|
echo _("Password") . ":";
|
||||||
<input type="password" name="passwd" tabindex="1">
|
?>
|
||||||
</td>
|
</b> </td>
|
||||||
</tr>
|
<td style="border-style:none" height="35" align="left">
|
||||||
<tr>
|
<input type="password" name="passwd" tabindex="1">
|
||||||
<?php
|
</td>
|
||||||
if($message != "") {
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
<td height="35" colspan="3" align="center">
|
|
||||||
<?php
|
|
||||||
echo $message;
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<td style="border-style:none" align="right"><b>
|
|
||||||
<?php
|
|
||||||
echo _("Your Language") . ":";
|
|
||||||
?>
|
|
||||||
</b> </td>
|
|
||||||
<td style="border-style:none" height="35" align="left">
|
|
||||||
<select name="language" size="1" tabindex="2">
|
|
||||||
<?php
|
|
||||||
for($i = 0; $i < count($languages); $i++) {
|
|
||||||
if($languages[$i]["default"] == "YES") {
|
|
||||||
?>
|
|
||||||
<option selected value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
|
||||||
<?php
|
<?php
|
||||||
|
if($message != "") {
|
||||||
|
?>
|
||||||
|
<td height="35" colspan="3" align="center">
|
||||||
|
<?php
|
||||||
|
echo $message;
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
?>
|
||||||
|
<td style="border-style:none" align="right"><b>
|
||||||
|
<?php
|
||||||
|
echo _("Your Language") . ":";
|
||||||
|
?>
|
||||||
|
</b> </td>
|
||||||
|
<td style="border-style:none" height="35" align="left">
|
||||||
|
<select name="language" size="1" tabindex="2">
|
||||||
|
<?php
|
||||||
|
for($i = 0; $i < count($languages); $i++) {
|
||||||
|
if($languages[$i]["default"] == "YES") {
|
||||||
|
?>
|
||||||
|
<option selected value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $languages[$i]["link"] . ":" . $languages[$i]["descr"]; ?>"><?php echo $languages[$i]["descr"]; ?></option>
|
</tr>
|
||||||
<?php
|
<tr>
|
||||||
}
|
<td style="border-style:none" height="50" colspan="2" align="center">
|
||||||
}
|
<input name="checklogin" type="hidden" value="checklogin">
|
||||||
?>
|
<input name="submit" type="submit" value="<?php echo _("Login"); ?>" tabindex="3">
|
||||||
</select>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<?php
|
<tr>
|
||||||
}
|
<td style="border-style:none" height="50" colspan="2" align="center">
|
||||||
?>
|
<?php
|
||||||
</tr>
|
if($error_message != "") {
|
||||||
<tr>
|
echo "<font color=\"red\"><b>" . $error_message . "</b></font>";
|
||||||
<td style="border-style:none" height="50" colspan="2" align="center">
|
}
|
||||||
<input name="checklogin" type="submit" value="<?php echo _("Login"); ?>" tabindex="3">
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
</table>
|
||||||
<td style="border-style:none" height="50" colspan="2" align="center">
|
</form>
|
||||||
<?php
|
|
||||||
if($error_message != "") {
|
|
||||||
echo "<font color=\"red\"><b>" . $error_message . "</b></font>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:none" height="30" colspan="2">
|
|
||||||
<hr>
|
|
||||||
<b>
|
|
||||||
<?php
|
|
||||||
echo _("LDAP server") . ": ";
|
|
||||||
?></b>
|
|
||||||
<?php echo $config_object->get_ServerURL(); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:none" height="30"><b>
|
|
||||||
<?php
|
|
||||||
echo _("Configuration profile") . ": ";
|
|
||||||
if(!$_POST['profileChange']) {
|
|
||||||
$_POST['profile'] = $_SESSION['config']->file;
|
|
||||||
}
|
|
||||||
?></b>
|
|
||||||
<?php echo $_POST['profile']; ?>
|
|
||||||
</td>
|
</td>
|
||||||
<td style="border-style:none" height="30" align="right">
|
</tr>
|
||||||
<select name="profile" size="1" tabindex="4">
|
<tr>
|
||||||
<?php
|
<td>
|
||||||
for($i=0;$i<count($profiles);$i++) {
|
<form action="login.php" method="post">
|
||||||
?>
|
<table width="580">
|
||||||
<option value="<?php echo $profiles[$i]; ?>"><?php echo $profiles[$i]; ?></option>
|
<tr>
|
||||||
<?php
|
<td style="border-style:none" height="30" colspan="2">
|
||||||
}
|
<hr>
|
||||||
?>
|
<b>
|
||||||
</select>
|
<?php
|
||||||
<input name="profileChange" type="submit" value="<?php echo _("Change Profile"); ?>" tabindex="5">
|
echo _("LDAP server") . ": ";
|
||||||
|
?></b>
|
||||||
|
<?php echo $config_object->get_ServerURL(); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border-style:none" height="30"><b>
|
||||||
|
<?php
|
||||||
|
echo _("Configuration profile") . ": ";
|
||||||
|
if(!$_POST['profileChange']) {
|
||||||
|
$_POST['profile'] = $_SESSION['config']->file;
|
||||||
|
}
|
||||||
|
?></b>
|
||||||
|
<?php echo $_POST['profile']; ?>
|
||||||
|
</td>
|
||||||
|
<td style="border-style:none" height="30" align="right">
|
||||||
|
<select name="profile" size="1" tabindex="4">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($profiles);$i++) {
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $profiles[$i]; ?>"><?php echo $profiles[$i]; ?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<input name="profileChange" type="hidden" value="profileChange">
|
||||||
|
<input name="submit" type="submit" value="<?php echo _("Change Profile"); ?>" tabindex="5">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border-style:none" height="10" colspan="2"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
</table>
|
||||||
<td style="border-style:none" height="10" colspan="2"></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br><br>
|
<br><br>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue