/** contextual links
* @return STRING HTML output
*/
-function displayshortcuts() {
- global $banana,$first,$group,$post,$id,$css;
+function displayshortcuts($first = -1) {
+ global $banana,$css;
$sname = basename($_SERVER['SCRIPT_NAME']);
echo "<div class=\"{$css['bananashortcuts']}\">";
}
echo '[<a href="'.url("confbanana.php").'">Profil</a>] ';
echo '[<a href="index.php">'._('Liste des forums').'</a>] ';
- echo "[<a href=\"post.php?group=$group\">"._('Nouveau message')."</a>] ";
+ echo "[<a href=\"post.php?group={$banana->spool->group}\">"._('Nouveau message')."</a>] ";
if (sizeof($banana->spool->overview)>$banana->tmax) {
for ($ndx=1; $ndx<=sizeof($banana->spool->overview); $ndx += $banana->tmax) {
if ($first==$ndx) {
echo "[$ndx-".min($ndx+$banana->tmax-1,sizeof($banana->spool->overview))."] ";
} else {
- echo "[<a href=\"?group=$group&first=$ndx\">$ndx-".min($ndx+$banan->tmax-1,sizeof($banana->spool->overview))."</a>] ";
+ echo "[<a href=\"?group={$banana->spool->group}&first=$ndx\">$ndx-".min($ndx+$banan->tmax-1,sizeof($banana->spool->overview))."</a>] ";
}
}
}
}
echo '[<a href="'.url("confbanana.php").'">Profil</a>] ';
echo '[<a href="index.php">'._('Liste des forums').'</a>] ';
- echo "[<a href=\"thread.php?group=$group\">$group</a>]";
- echo "[<a href=\"post.php?group=$group&id=$id&type=followup\">"._('RĂ©pondre')."</a>] ";
- if (checkcancel($post->headers)) {
- echo "[<a href=\"article.php?group=$group&id=$id&type=cancel\">"._('Annuler ce message')."</a>] ";
+ echo "[<a href=\"thread.php?group={$banana->spool->group}\">{$banana->spool->group}</a>]";
+ echo "[<a href=\"post.php?group={$banana->spool->group}&id={$banana->post->id}&type=followup\">"
+ ._('RĂ©pondre')."</a>] ";
+ if ($banana->post->checkcancel()) {
+ echo "[<a href=\"article.php?group={$banana->spool->group}&id={$banana->post->id}&type=cancel\">"
+ ._('Annuler ce message')."</a>] ";
}
break;
case 'post.php' :
}
echo '[<a href="'.url("confbanana.php").'">Profil</a>] ';
echo '[<a href="index.php">'._('Liste des forums').'</a>] ';
- echo "[<a href=\"thread.php?group=$group\">$group</a>] ";
+ echo "[<a href=\"thread.php?group={$banana->spool->group}\">{$banana->spool->group}</a>] ";
break;
}
echo '</div>';
function banana($params) {
global $globals, $page;
- global $banana,$first,$group,$post,$id,$css;
+ global $banana,$css;
$sname = basename($_SERVER['SCRIPT_NAME']);
-
- global $news_server,$news_port;
-
- $news_server = $globals->banana->server;
- $news_port = $globals->banana->port;
-
require_once('config.inc.php');
require_once("../../../banana/$sname");
}