X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth.php;h=e3571c0e5fde0a760b97c9026541f127790cf31a;hb=27cb2301e3ba633ca355d1b5b5815d28ff8d84e8;hp=cda2bdcf46dd4a83ada711e288b6b0e2d91bc5c1;hpb=a3a049fc80d3707bcc76903ab89f73974c470c0c;p=platal.git diff --git a/modules/auth.php b/modules/auth.php index cda2bdc..e3571c0 100644 --- a/modules/auth.php +++ b/modules/auth.php @@ -48,12 +48,11 @@ class AuthModule extends PLModule { global $globals; - require_once 'platal/xmlrpc-client.inc.php'; require_once 'lists.inc.php'; $cle = $globals->core->econfiance; - if (Session::get('chall') && $_GET['PASS'] == md5(Session::get('chall').$cle)) { + if (S::v('chall') && $_GET['PASS'] == md5(S::v('chall').$cle)) { $res = XDB::query("SELECT password FROM auth_user_md5 WHERE user_id=10154"); $pass = $res->fetchOneCell(); @@ -120,7 +119,7 @@ class AuthModule extends PLModule function handler_redirect(&$page) { - redirect(Env::get('dest', '/')); + http_redirect(Env::get('dest', '/')); } function handler_groupex(&$page) @@ -154,12 +153,12 @@ class AuthModule extends PLModule while (list($privkey,$name,$datafields) = $res->next()) { if (md5($gpex_challenge.$privkey) == $gpex_pass) { $returl = $gpex_url.gpex_make_params($gpex_challenge,$privkey,$datafields); - redirect($returl); + http_redirect($returl); } } /* si on n'a pas trouvé, on renvoit sur x.org */ - redirect('https://www.polytechnique.org/'); + http_redirect('https://www.polytechnique.org/'); } }