Moving to GitHub.
[platal.git] / bin / banana.spoolgen.php
CommitLineData
ee68ddc1 1#!/usr/bin/php5
0337d704 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
57e834ac 11require_once 'connect.db.inc.php';
50e2ba89 12require_once dirname(__FILE__) . '/../include/banana/forum.inc.php';
f9182d1d 13ini_set('memory_limit', '128M');
0337d704 14
5f0ecf6c
FB
15Banana::$mbox_helper = $globals->spoolroot . '/banana/mbox-helper/mbox-helper';
16Banana::$spool_root = $globals->spoolroot . '/spool/banana/';
ad59fc86 17Banana::$nntp_host = ForumsBanana::buildURL();
5760f76b 18Banana::createAllSpool(array('NNTP', 'MLArchive'));
5f0ecf6c 19system("chown -R www-data:www-data " . Banana::$spool_root);
448c8cdc 20// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
0337d704 21?>