function handler_banana($page, $group = null, $action = null, $artid = null) { $page->changeTpl('banana/index.tpl'); $page->setTitle('Forums & PA'); $get = array(); if (Post::has('updateall')) { $get['updateall'] = Post::v('updateall'); } require_once 'banana/forum.inc.php'; get_banana_params($get, $group, $action, $artid); run_banana($page, 'ForumsBanana', $get); }
function handler_archives($page, $liste = null, $action = null, $artid = null) { global $globals; if (is_null($liste)) { return PL_NOT_FOUND; } $this->is_group_admin($page); $mlist = $this->prepare_list($liste); $page->changeTpl('lists/archives.tpl'); if (list($det) = $mlist->getMembers()) { if (substr($liste, 0, 5) != 'promo' && ($det['ins'] || $det['priv']) && !$det['own'] && $det['sub'] < 2) { $page->kill("La liste n'existe pas ou tu n'as pas le droit de la consulter."); } $get = array('listname' => $mlist->mbox, 'domain' => $mlist->domain); if (Post::has('updateall')) { $get['updateall'] = Post::v('updateall'); } require_once 'banana/ml.inc.php'; get_banana_params($get, null, $action, $artid); run_banana($page, 'MLBanana', $get); } else { $page->kill("La liste n'existe pas ou tu n'as pas le droit de la consulter."); } }
function handler_forum($page, $group = null, $artid = null) { global $globals; $page->changeTpl('xnetgrp/forum.tpl'); if (!$globals->asso('forum')) { return PL_NOT_FOUND; } require_once 'banana/forum.inc.php'; $get = array(); get_banana_params($get, $globals->asso('forum'), $group, $artid); run_banana($page, 'ForumsBanana', $get); }