3 /********************************************************************************
4 * spoolgen.php : spool generation
7 * This file is part of the banana distribution
8 * Copyright: See COPYING files that comes with this distribution
9 ********************************************************************************/
11 require_once 'connect.db.inc.php';
12 require_once dirname(__FILE__
).'/../modules/banana/banana.inc.php';
14 class MyBanana
extends Banana
19 $this->host
= "http://{$globals->banana->web_user}:{$globals->banana->web_pass}@{$globals->banana->server}:{$globals->banana->port}/";
23 function createAllSpool()
25 $this->_require('groups');
26 $this->_require('spool');
27 $this->_require('misc');
29 $groups = new BananaGroups(BANANA_GROUP_ALL
);
31 foreach (array_keys($groups->overview
) as $g) {
32 print "Generating spool for $g : ";
33 $spool = new BananaSpool($g);
41 $banana = new MyBanana();
42 $banana->createAllSpool();
43 system("chown -R www-data:www-data /var/spool/banana");