-class MyBanana extends Banana
-{
- function MyBanana()
- {
- global $opt;
- $this->host = "http://{$opt['u']}:{$opt['p']}@localhost:119/";
- echo $this->host;
- parent::Banana();
- }
-
- function createAllSpool()
- {
- $this->_require('groups');
- $this->_require('spool');
- $this->_require('misc');
-
- $groups = new BananaGroups(BANANA_GROUP_ALL);
-
- foreach (array_keys($groups->overview) as $g) {
- print "Generating spool for $g : ";
- $spool = new BananaSpool($g);
- print "done.\n";
- unset($spool);
- }
- $this->nntp->quit();
- }