function _readFromFile()
{
- $file = dirname(dirname(__FILE__))."/spool/spool-{$this->group}.dat";
+ $file = $this->_spoolfile();
if (file_exists($file)) {
$this = unserialize(file_get_contents($file));
}
function _saveToFile()
{
- $file = dirname(dirname(__FILE__))."/spool/spool-{$this->group}.dat";
+ $file = $this->_spoolfile();
uasort($this->overview, "spoolcompare");
$this->roots = Array();
file_put_contents($file, serialize($this));
}
+ function _spoolfile()
+ {
+ global $banana;
+ $url = parse_url($banana->host);
+ $file = $url['host'].'_'.$url['port'].'_'.$this->group;
+ return dirname(dirname(__FILE__)).'/spool/'.$file;
+ }
+
function _updateSpool($arg)
{
global $banana;