projects
/
dotclear.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support https in blog URLs
[dotclear.git]
/
widget.auth.php
diff --git
a/widget.auth.php
b/widget.auth.php
index
1efd583
..
985ee53
100644
(file)
--- a/
widget.auth.php
+++ b/
widget.auth.php
@@
-1,20
+1,20
@@
<?php
class xorgAuthWidget {
<?php
class xorgAuthWidget {
- public static function behavior_initWidgets(
&
$w) {
+ public static function behavior_initWidgets($w) {
$w->create('XorgAuth', __('Auth. X.org'), array('xorgAuthWidget', 'widget'));
}
$w->create('XorgAuth', __('Auth. X.org'), array('xorgAuthWidget', 'widget'));
}
- static public function widget(
&
$w) {
+ static public function widget($w) {
global $core;
$name = @$core->auth->getInfo('user_displayname');
if ($name) {
global $core;
$name = @$core->auth->getInfo('user_displayname');
if ($name) {
- $str = '<
p>Tu es ' . $core->auth->getInfo('user_displayname') . '<br /
>';
+ $str = '<
div><ul><li><strong>Tu es ' . $core->auth->getInfo('user_displayname') . '</strong></li
>';
if ($core->auth->check('usage,contentadmin,admin', $core->blog->id)) {
if ($core->auth->check('usage,contentadmin,admin', $core->blog->id)) {
- $str .= '<
a href="' . $core->blog->url . 'admin/index.php">Interface de rédaction</a><br /
>';
+ $str .= '<
li><a href="' . $core->blog->url . 'admin/index.php">Interface de rédaction</a></li
>';
}
}
- return $str . '<
a href="' . $core->blog->url . 'auth/exit">Déconnexion</a></p
>';
+ return $str . '<
li><a href="' . $core->blog->url . 'auth/exit">Déconnexion</a></li></ul></div
>';
} else {
} else {
- return '<
p><a href="' . $core->blog->url . 'auth/Xorg?path=' . $_SERVER['PATH_INFO'] . '">M\'authentifier via Polytechnique.org</a></p
>';
+ return '<
ul><li><a href="' . $core->blog->url . 'auth/Xorg?path=' . $_SERVER['PATH_INFO'] . '">M\'authentifier via Polytechnique.org</a></li></ul
>';
}
}
}
}
}
}