create('XorgAuth', __('Auth. X.org'), array('xorgAuthWidget', 'widget'));
}
static public function widget($w) {
global $core;
$name = @$core->auth->getInfo('user_displayname');
if ($name) {
$str = '
- Tu es ' . $core->auth->getInfo('user_displayname') . '
';
if ($core->auth->check('usage,contentadmin,admin', $core->blog->id)) {
$str .= '- Interface de rédaction
';
}
return $str . '- Déconnexion
';
} else {
return '';
}
}
}
?>