'headers' => array('From' => 'Anonymous <anonymouse@example.com>'),
'display' => 0,
'lastnews' => 0,
- 'locale' => 'fr_FR',
+ 'locale' => 'fr_FR.UTF-8',
'subscribe' => array(),
'autoup' => 1);
static public $boxpattern;
{
Banana::$page->setPage('forums');
$groups = Banana::$protocole->getBoxList(Banana::BOXES_SUB, Banana::$profile['lastnews'], true);
- $newgroups = Banana::$protocole->getBoxList(Banana::BOXES_NEW, Banana::$profile['lastnews'], true);
Banana::$page->assign('groups', $groups);
- Banana::$page->assign('newgroups', $newgroups);
+ if (empty(Banana::$profile['subscribe']) || Banana::$profile['lastnews']) {
+ $newgroups = Banana::$protocole->getBoxList(Banana::BOXES_NEW, Banana::$profile['lastnews'], true);
+ Banana::$page->assign('newgroups', $newgroups);
+ }
return true;
}
static public function formatDate($text)
{
- return utf8_encode(strftime("%A %d %B %Y, %H:%M (fuseau serveur)", strtotime($text)));
+ return strftime("%A %d %B %Y, %H:%M (fuseau serveur)", strtotime($text));
}
public function translateHeaders()
} else {
$format = '%a %e %b';
}
- return utf8_encode(strftime($format, $stamp));
+ return strftime($format, $stamp);
}
/** displays children tree of a post