return ($_headers['x-org-id'] == Session::get('forlife') or has_perms());
}
+function hook_shortcuts()
+{
+ global $globals;
+ return '<a href="' . $globals->baseurl . '/banana/profile">Préférences</a>';
+}
+
function hook_makeLink($params) {
global $globals;
$base = $globals->baseurl . '/banana';
function hook_makeImg($img, $alt, $height, $width)
{
global $globals;
- $url = $globals->baseurl . '/images/banana/' . $img . '.gif';
+ $url = $globals->baseurl . '/images/banana/' . $img;
if (!is_null($width)) {
$width = ' width="' . $width . '"';
if (!is_null($action)) {
if ($action == 'new') {
$get['action'] = 'new';
- } elseif (($action == 'reply' || $action == 'cancel') && !is_null($artid)) {
+ } elseif ($action == 'reply' && !is_null($artid)) {
+ $get['action'] = 'new';
+ $get['artid'] = $artid;
+ } elseif ($action == 'cancel' && !is_null($artid)) {
$get['action'] = $action;
$get['artid'] = $artid;
} elseif ($action == 'from' && !is_null($artid)) {
{* *}
{**************************************************************************}
-<h1>Options</h1>
-
{if !$banana->profile.autoup}
[<a href='javascript:dynpost("{rel}/{$platal->path}", {ldelim}"updateall": 1{rdelim})'>Mettre à jour</a>]
{/if}
-[<a href="{rel}/banana/profile">Profil</a>]
<br />