Improvement.
[platal.git] / bin / banana.spoolgen.php
1 #!/usr/bin/php5
2 <?php
3 /********************************************************************************
4 * spoolgen.php : spool generation
5 * --------------
6 *
7 * This file is part of the banana distribution
8 * Copyright: See COPYING files that comes with this distribution
9 ********************************************************************************/
10
11 require_once 'connect.db.inc.php';
12 require_once dirname(__FILE__) . '/../include/banana/forum.inc.php';
13 ini_set('memory_limit', '128M');
14
15 Banana::$mbox_helper = $globals->spoolroot . '/banana/mbox-helper/mbox-helper';
16 Banana::$spool_root = $globals->spoolroot . '/spool/banana/';
17 Banana::$nntp_host = ForumsBanana::buildURL();
18 Banana::createAllSpool(array('NNTP', 'MLArchive'));
19 system("chown -R www-data:www-data " . Banana::$spool_root);
20 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
21 ?>