var $profile = Array( 'name' => 'Anonymous <anonymouse@example.com>', 'sig' => '', 'org' => '',
'customhdr' =>'', 'display' => 0, 'lastnews' => 0, 'locale' => 'fr_FR', 'subscribe' => array());
- var $state = Array('group' => null, 'artid' => null);
+ var $state = Array('group' => null, 'artid' => null, 'action' => null);
var $nntp;
var $groups;
var $newgroups;
$banana->get = $myget;
}
-
if (!$banana->nntp) {
return '<p class="error">'._b_('Impossible de contacter le serveur').'</p>';
}
}
$artid = empty($banana->get['artid']) ? null : strtolower($banana->get['artid']);
$partid = !isset($banana->get['part']) ? -1 : $banana->get['part'];
- $banana->state = Array ('group' => $group, 'artid' => $artid);
+ $action = !isset($banana->get['action']) ? null : $banana->get['action'];
+ $banana->state = Array ('group' => $group, 'artid' => $artid, 'action' => $action);
if (is_null($group)) {
if (isset($banana->get['subscribe'])) {
} elseif (is_null($artid)) {
if (isset($_POST['action']) && $_POST['action'] == 'new') {
return $banana->action_doFup($group, isset($_POST['artid']) ? intval($_POST['artid']) : -1);
- } elseif (isset($banana->get['action']) && $banana->get['action'] == 'new') {
+ } elseif ($action == 'new') {
return $banana->action_newFup($group);
} else {
return $banana->action_showThread($group, isset($banana->get['first']) ? intval($banana->get['first']) : 1);
$res = '';
}
- if (isset($banana->get['action'])) {
- switch ($banana->get['action']) {
+ if (!is_null($action)) {
+ switch ($action) {
case 'cancel':
$res .= $banana->action_showArticle($group, $artid, $partid);
if ($banana->post->checkcancel()) {
}
if (isset($banana->get['pj'])) {
- $action = false;
- if (isset($banana->get['action']) && $banana->get['action'] == 'view') {
- $action = true;
+ $view = false;
+ if ($action == 'view') {
+ $view = true;
}
- $att = $banana->action_getAttachment($group, $artid, $banana->get['pj'], $action);
+ $att = $banana->action_getAttachment($group, $artid, $banana->get['pj'], $view);
if ($att != "") {
return $res.$att;
}
$res .= sprintf($fmt, $ndx, min($ndx+$banana->tmax-1,sizeof($banana->spool->overview)));
}
}
+ if (!is_null($action)) {
+ if ($action == 'new') {
+ $res .= ' > Nouveau Message';
+ }
+ }
} else {
- $res .= ' > Message';
+ if (!is_null($action)) {
+ $res .= ' > ' . makeHREF(Array('group' => $group,
+ 'artid' => $artid),
+ 'Message')
+ . ' > ';
+ if ($action == 'new') {
+ $res .= 'RĂ©pondre';
+ } elseif ($action == 'cancel') {
+ $res .= 'Annuler';
+ }
+ } else {
+ $res .= ' > Message';
+ }
}
}
return $res.'</div>';
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-10-19 19:58+0200\n"
+"POT-Creation-Date: 2006-07-15 11:50+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"