require_once('banana/banana.inc.php');
function hook_formatDisplayHeader($_header, $_text) {
- global $globals, $banana;
+ global $banana;
if ($_header == 'from') {
$id = $banana->post->headers['x-org-id'];
$_text = formatFrom($_text);
- return $_text . ' <a href="' . $globals->baseurl . '/profile/'
- . $id . '" class="popup2" title="' . $id . '">'
- . '<img src="' . $globals->baseurl . '/images/loupe.gif" alt="fiche" title="fiche" />'
- . '</a>';
+ return $_text . ' <a href="profile/' . $id . '" class="popup2" title="' . $id . '">'
+ . '<img src="images/loupe.gif" alt="fiche" title="fiche" /></a>';
}
}
function hook_shortcuts()
{
- global $globals;
- return Array('profile' => Array('<a href="' . $globals->baseurl . '/banana/profile">Préférences</a>',
+ return Array('profile' => array('<a href="banana/profile">Préférences</a>',
'Préférences'));
}
function hook_makeLink($params) {
- global $globals;
- $base = $globals->baseurl . '/banana';
+ $base = 'banana';
if ($params['subscribe'] == 1) {
return $base . '/subscription';
}
function hook_makeImg($img, $alt, $height, $width)
{
- global $globals;
- $url = $globals->baseurl . '/images/banana/' . $img;
+ $url = 'images/banana/' . $img;
if (!is_null($width)) {
$width = ' width="' . $width . '"';
function PlatalBanana()
{
global $globals;
-
+
$uid = S::v('uid');
$req = XDB::query(
"SELECT nom, mail, sig, FIND_IN_SET('threads',flags), FIND_IN_SET('automaj',flags)