Fix: Le style de la page de login incorrect quand on se deconnectait depuis une page située en dehors de la racine
This commit is contained in:
parent
2cef63805a
commit
ebce702c54
@ -603,9 +603,11 @@ function img_tick($alt = "default")
|
|||||||
*/
|
*/
|
||||||
function loginfunction()
|
function loginfunction()
|
||||||
{
|
{
|
||||||
|
global $langs;
|
||||||
|
|
||||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
||||||
print "\n<html><head><title>Dolibarr Authentification</title>";
|
print "\n<html><head><title>Dolibarr Authentification</title>";
|
||||||
print '<link rel="stylesheet" type="text/css" href="lib/login.css">
|
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'lib/login.css">
|
||||||
</head>
|
</head>
|
||||||
<body onload="donnefocus();">
|
<body onload="donnefocus();">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
@ -616,14 +618,15 @@ function loginfunction()
|
|||||||
<div class="main-inside">
|
<div class="main-inside">
|
||||||
';
|
';
|
||||||
|
|
||||||
echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="identification">';
|
print '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="identification">';
|
||||||
print '<table><tr>';
|
print '<table width="100%" cellpadding="0" cellspacing="0"><tr><td align="center">';
|
||||||
print '<td>Login : </td><td><input type="text" name="username"></td></tr>';;
|
print '<table width="100%">';
|
||||||
print '<tr><td>Password : </td><td><input type="password" name="password"></td></tr>';
|
print '<tr><td align="left">'.$langs->trans("Login").': </td><td><input type="text" name="username"></td></tr>';;
|
||||||
|
print '<tr><td align="left">'.$langs->trans("Password").': </td><td><input type="password" name="password"></td></tr>';
|
||||||
echo '</table>
|
print '</table>';
|
||||||
<p align="center"><input value="Login" type="submit">
|
print '</td></tr></table>';
|
||||||
</form>';
|
print '<br><center><input value="'.$langs->trans("Connexion").'" type="submit" class="button"></center>';
|
||||||
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user