Commit 2137737b authored by slopez's avatar slopez
Browse files

debug

parent 41ca8862
......@@ -54,7 +54,7 @@ switch ($_REQUEST["domain"])
if ( !$site->user->is_valid() )
{
//header("Location: article.php?name=site:wrongpassorduser");
header("Location: article.php?name=site:wrongpassorduser");
exit();
}
......@@ -85,6 +85,8 @@ $page = $topdir;
*/
if ( $_SESSION['session_redirect'] )
{
print_r($_SESSION['session_redirect']);
exit();
$page = $_SESSION['session_redirect'];
unset($_SESSION['session_redirect']);
}
......
......@@ -201,18 +201,17 @@ class utilisateur extends stdentity
"OR `utilisateurs`.`email_utl` = '".mysql_real_escape_string($regs[1]."@assidu-utbm.fr")."' " .
"OR `utl_etu_utbm`.`email_utbm` = '".mysql_real_escape_string($regs[1]."@utbm.fr")."' " .
"OR `utl_etu_utbm`.`email_utbm` = '".mysql_real_escape_string($regs[1]."@assidu-utbm.fr")."' " .
"LIMIT 1",1);
"LIMIT 1");
else
$req = new requete($this->db,
"SELECT `utilisateurs`.* FROM `utilisateurs` " .
"LEFT JOIN `utl_etu_utbm` ON `utl_etu_utbm`.`id_utilisateur` = `utilisateurs`.`id_utilisateur` " .
"WHERE `utilisateurs`.`email_utl` = '" . mysql_real_escape_string($email) . "' OR " .
"`utl_etu_utbm`.`email_utbm` = '" . mysql_real_escape_string($email) . "' " .
"LIMIT 1",1);
"LIMIT 1");
if ( $req->lines == 1 )
{
print_r('coin');
$this->_load($req->get_row());
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment