3 public static function behavior_initWidgets(&$w) {
4 $w->create('XorgAuth', __('Auth. X.org'), array('xorgAuthWidget', 'widget'));
7 static public function widget(&$w) {
9 $name = $core->auth
->userID();
11 return '<p>Tu es ' . $core->auth
->getInfo('user_displayname') . '<br />'
12 . '<a href="' . $core->blog
->url
. 'auth/exit">déconnexion</a></p>';
14 return '<p><a href="' . $core->blog
->url
. 'auth/Xorg?path=' . $_SERVER['REQUEST_URI'] . '">M\'authentifier via Polytechnique.org</a></p>';