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 |
11 | require_once 'connect.db.inc.php'; |
5760f76b |
12 | require_once dirname(__FILE__).'/../include/banana/ml.inc.php'; |
f9182d1d |
13 | ini_set('memory_limit', '128M'); |
0337d704 |
14 | |
6720bd53 |
15 | Banana::$mbox_helper = $globals->banana->mbox_helper; |
6544d0e1 |
16 | Banana::$spool_root = $globals->banana->spool_root; |
5760f76b |
17 | Banana::$nntp_host = "news://{$globals->banana->web_user}:{$globals->banana->web_pass}@{$globals->banana->server}:{$globals->banana->port}/"; |
18 | Banana::createAllSpool(array('NNTP', 'MLArchive')); |
0337d704 |
19 | system("chown -R www-data:www-data /var/spool/banana"); |
a7de4ef7 |
20 | // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: |
0337d704 |
21 | ?> |