data = unserialize(file_get_contents($cache)); } else { $this->data = array('data' => array(), 'processed' => array()); } foreach (glob('/home/chris/svn/*') as $repo) { $name = basename($repo); $titl = '' . $name . ''; $revs = count(glob($repo . '/db/revs/*')); $done = max(1, (int) $this->data['processed'][$name]); for ($i = $done; $i < $revs; $i++) { $date = strtotime(substr(`svnlook date $repo -r $i`, 0, 19)); $revh = '' . $i . ''; $mesg = '' . htmlentities(trim(`svnlook log $repo -r $i`)) . ''; $mesg = 'Committed revision ' . $revh . ' to ' . $titl . ' with log message ' . $mesg; $this->data['data'][] = new Event($date, $mesg); } $this->data['processed'][$name] = $revs; } file_put_contents($cache, serialize($this->data)); unset($this->data['processed']); } public function getData() { return $this->data['data']; } } $_SOURCES[] =& new SvnSource(); ?>