Les archives de FluxBB.fr
Vous n'êtes pas identifié(e).
Bonjour,
Je souhaite mettre un formulaire d'identification rapide sur mon forum, j'ai donc suivi la marche à suivre et remplacé la variable $tpl_temp par le code ci-dessous.
{
$tpl_temp =
'<form id="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">'.
'<div id="brdwelcome" class="inbox">'.
'<input type="hidden" name="form_sent" value="1" />'.
'<input type="hidden" name="redirect_url" value="'.$_SERVER['REQUEST_URI'].'" />'.
'<label><strong>'.$lang_common['Username'].'</strong> '.
'<input type="text" name="req_username" size="13" maxlength="25" /></label> '.
'<label><strong>'.$lang_common['Password'].'</strong> '.
'<input type="password" name="req_password" size="13" maxlength="16" /></label> '.
'<input type="submit" name="login" value="'.$lang_common['Login'].'" />'.
'</div>'.
'</form>';
}Cependant la redirection après l'identification ne marche pas, apparemment le problème vient de .$_SERVER['REQUEST_URI'] qui me renvoi /forum/page.php au lieu de page.php. Je ne vois pas par contre résoudre ce problème.
Merci de votre aide
A+
Hors ligne
J'ai le meme probleme
Hors ligne
C'est normale cette redirection.
Remplace :
$_SERVER['REQUEST_URI']Par :
str_replace('/forum/', '', $_SERVER['REQUEST_URI']);M@x.
...
Hors ligne