fa4ea545ddc13f1f32cb42b5dcce02a9ab0ee531
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
->getInfo('user_displayname');
11 $str = '<div><ul><li>Tu es ' . $core->auth
->getInfo('user_displayname') . '</li>';
12 if ($core->auth
->check('usage,contentadmin,admin', $core->blog
->id
)) {
13 $str .= '<li><a href="' . $core->blog
->url
. 'admin/index.php">Interface de rédaction</a></li>';
15 return $str . '<li><a href="' . $core->blog
->url
. 'auth/exit">Déconnexion</a></li></ul></div>';
17 return '<ul><li><a href="' . $core->blog
->url
. 'auth/Xorg?path=' . $_SERVER['PATH_INFO'] . '">M\'authentifier via Polytechnique.org</a></li></ul>';