url->register('xorgAuth', 'Xorg', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth')); class xorgAuthWidget { static public function widget(&$w) { global $core; if ($core->auth->xorg_infos['forlife']) { return '

Tu es ' . $core->auth->xorg_infos['prenom'] . ' ' . $core->auth->xorg_infos['nom'] . '
' . 'déconnexion

'; } else { return '

M\'authentifier via Polytechnique.org

'; } } } class xorgAuthentifier extends dcUrlHandlers { static public function doAuth($args) { @session_start(); global $core; switch ($args) { case 'exit': $core->auth->killSession(); break; case 'Xorg': $core->auth->callXorg(); break; case 'XorgReturn': $core->auth->returnXorg(); break; default: self::p404(); } return; } } ?>