Exemple #1
0
 public function __construct(User $user, $params = null)
 {
     $this->user =& $user;
     global $globals;
     Banana::$msgedit_canattach = false;
     Banana::$spool_root = $globals->spoolroot . '/spool/banana/';
     array_push(Banana::$msgparse_headers, 'x-org-id', 'x-org-mail');
     Banana::$nntp_host = self::buildURL($user->login());
     if (S::admin()) {
         Banana::$msgshow_mimeparts[] = 'source';
     }
     Banana::$debug_nntp = $globals->debug & DEBUG_BT;
     Banana::$debug_smarty = $globals->debug & DEBUG_SMARTY;
     Banana::$feed_active = S::hasAuthToken();
     parent::__construct($params, 'NNTP', 'PlatalBananaPage');
     if (@$params['action'] == 'profile') {
         Banana::$action = 'profile';
     }
 }
Exemple #2
0
#!/usr/bin/php5
<?php 
/********************************************************************************
 * spoolgen.php : spool generation
 * --------------
 *
 * This file is part of the banana distribution
 * Copyright: See COPYING files that comes with this distribution
 ********************************************************************************/
require_once 'connect.db.inc.php';
require_once dirname(__FILE__) . '/../../include/banana/forum.inc.php';
ini_set('memory_limit', '128M');
Banana::$mbox_helper = $globals->spoolroot . '/banana/mbox-helper/mbox-helper';
Banana::$spool_root = $globals->spoolroot . '/spool/banana/';
Banana::$nntp_host = ForumsBanana::buildURL();
Banana::refreshAllFeeds(array('NNTP'));
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: