X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg%2Fsession.inc.php;h=265d2c06cf8b3063cf84851a3503b962cd7a8e8a;hb=ef42a9d667bc59456c156d0c5085be9efc1954b7;hp=3a251f925f6ba18dc4d6b796c5171a6d8907c065;hpb=bfa821a042bcaef6bf2805ece371835ed16f52df;p=platal.git diff --git a/include/xorg/session.inc.php b/include/xorg/session.inc.php index 3a251f9..265d2c0 100644 --- a/include/xorg/session.inc.php +++ b/include/xorg/session.inc.php @@ -280,10 +280,20 @@ function start_connexion ($uid, $identified) if (check_ip('ban')) { send_warning_mail($mail_subject); $_SESSION = array(); + $_SESSION['perms'] = new FlagSet(); global $page; + $newpage = false; + if (!$page) { + require_once 'xorg.inc.php'; + new_skinned_page('platal/index.tpl'); + $newpage = true; + } $page->trig("Une erreur est survenue lors de la procédure d'authentification. " ."Merci de contacter au plus vite " ."support@polytechnique.org"); + if ($newpage) { + $page->run(); + } return false; } }