Should avoid php errors when auth fails on xnet
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 4 Oct 2007 20:38:21 +0000 (22:38 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 4 Oct 2007 20:38:21 +0000 (22:38 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/xnet/session.inc.php

index 29a519e..175a031 100644 (file)
@@ -109,6 +109,10 @@ class XnetSession
         global $globals, $page;
 
         if (md5('1'.S::v('challenge').$globals->xnet->secret.Get::i('uid').'1') != Get::v('auth')) {
+            if (!$page) {
+                require_once 'xnet.inc.php';
+                new_skinned_page('platal/index.tpl');
+            }
             $page->kill("Erreur d'authentification avec polytechnique.org !");
         }