From: Florent Bruneau Date: Thu, 4 Oct 2007 20:38:21 +0000 (+0200) Subject: Should avoid php errors when auth fails on xnet X-Git-Tag: xorg/0.9.15~69 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7e1efe61bb98469f5702061d1e02665245639e2f;p=platal.git Should avoid php errors when auth fails on xnet Signed-off-by: Florent Bruneau --- diff --git a/include/xnet/session.inc.php b/include/xnet/session.inc.php index 29a519e..175a031 100644 --- a/include/xnet/session.inc.php +++ b/include/xnet/session.inc.php @@ -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 !"); }