X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth.php;h=4b218543ec9fef8998032552344198effd97f611;hb=46f272feb613c57febf40a0f7bf6a721e439b73b;hp=70c7e00a07275cde1d8c5fca13563b08fe110920;hpb=670b0ac0977d685aa05ba490bef58fd2995bcffb;p=platal.git diff --git a/modules/auth.php b/modules/auth.php index 70c7e00..4b21854 100644 --- a/modules/auth.php +++ b/modules/auth.php @@ -1,6 +1,6 @@ $this->make_hook('chall', AUTH_PUBLIC), 'groupex/export-econfiance.php' - => $this->make_hook('econf', AUTH_PUBLIC), + => $this->make_hook('econf', AUTH_PUBLIC, 'user', NO_HTTPS), 'webservices/manageurs.php' - => $this->make_hook('manageurs', AUTH_PUBLIC), + => $this->make_hook('manageurs', AUTH_PUBLIC, 'user', NO_HTTPS), 'auth-redirect.php' => $this->make_hook('redirect', AUTH_COOKIE), 'auth-groupex.php' => $this->make_hook('groupex_old', AUTH_COOKIE), @@ -110,7 +110,7 @@ class AuthModule extends PLModule xmlrpc_server_register_method($server, 'get_annuaire_infos', 'get_annuaire_infos'); xmlrpc_server_register_method($server, 'get_nouveau_infos', 'get_nouveau_infos'); - $request = $GLOBALS['HTTP_RAW_POST_DATA']; + $request = @$GLOBALS['HTTP_RAW_POST_DATA']; $response = xmlrpc_server_call_method($server, $request, null); header('Content-Type: text/xml'); print $response; @@ -150,11 +150,12 @@ class AuthModule extends PLModule $gpex_challenge = $_GET["challenge"]; // mise à jour de l'heure et de la machine de dernier login sauf quand on est en suid + $uid = S::i('uid'); if (!isset($_SESSION['suid'])) { $logger = (isset($_SESSION['log']) && $_SESSION['log']->uid == $uid) - ? $_SESSION['log'] : new CoreLogger($uid); + ? $_SESSION['log'] : new PlLogger($uid); global $platal; - $logger->log('connexion_auth_ext', $platal->path); + S::logger()->log('connexion_auth_ext', $platal->path); } /* on parcourt les entrees de groupes_auth */ @@ -173,14 +174,14 @@ class AuthModule extends PLModule function handler_admin_authgroupesx(&$page, $action = 'list', $id = null) { - $page->assign('xorg_title','Polytechnique.org - Administration - Auth groupes X'); + $page->setTitle('Administration - Auth groupes X'); $page->assign('title', 'Gestion de l\'authentification centralisée'); $table_editor = new PLTableEditor('admin/auth-groupes-x','groupesx_auth','id'); $table_editor->describe('name','nom',true); $table_editor->describe('privkey','clé privée',false); $table_editor->describe('datafields','champs renvoyés',true); $table_editor->apply($page, $action, $id); - } + } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: