14f1a075 |
1 | <?php |
2 | /******************************************************************************** |
3ca86dfe |
3 | * spoolgen.php : spool generation |
4 | * -------------- |
5 | * |
6 | * This file is part of the banana distribution |
7 | * Copyright: See COPYING files that comes with this distribution |
8 | ********************************************************************************/ |
14f1a075 |
9 | |
10 | ini_set('max_execution_time','300'); |
3ca86dfe |
11 | ini_set('include_path','.:..:../platal/include:../../platal/include'); |
14f1a075 |
12 | |
0d407ce1 |
13 | require_once("include/encoding.inc.php"); |
14 | require_once("include/config.inc.php"); |
15 | require_once("include/NetNNTP.inc.php"); |
16 | require_once("include/post.inc.php"); |
17 | require_once("include/groups.inc.php"); |
18 | require_once("include/spool.inc.php"); |
19 | require_once("include/password.inc.php"); |
14f1a075 |
20 | |
21 | |
2dbc0167 |
22 | $groups = new BananaGroups(2); |
14f1a075 |
23 | $list = array_keys($groups->overview); |
24 | unset($groups); |
25 | foreach ($list as $g) { |
3ca86dfe |
26 | print "Generating spool for $g : "; |
2dbc0167 |
27 | $spool = new BananaSpool($g); |
3ca86dfe |
28 | print "done.\n"; |
29 | unset($spool); |
14f1a075 |
30 | } |
2dbc0167 |
31 | $banana->nntp->quit(); |
14f1a075 |
32 | ?> |