setRespository('http://svn.fourisland.com/' . $_GET['project']); $svn->setAuth('hatkirby','popstartwo506'); $data = $svn->getFile($path,$rev); if (substr($path,strlen($path)-1,1) != '/') { $template->add('DATA', str_replace(' ',' ',str_replace(' ',' ',nl2br(htmlentities($data))))); $template->adds_block('FILE', array('NAME' => $path)); } else { $template->add('DATA', $data); } $logs = $svn->getFileLogs($path); $template->add('LOGDATA', str_replace("\n\n",'
',htmlentities($logs[count($logs)-1]['comment']))); $template->add('AUTHOR', $logs[count($logs)-1]['author']); $template->add('DATE', date('F dS Y \a\\t g:i:s a',strtotime($logs[count($logs)-1]['date']))); if ($rev != -1) { $template->adds_block('FORWARD', array( 'URL' => ('/projects/' . $_GET['project'] . '/browse' . $path . '?rev=' . ($rev+1)), 'NUM' => ($rev+1))); } if ($rev == -1) { $rev = $svn->getVersion(); } if ($rev != 1) { $template->adds_block('BACK', array( 'URL' => ('/projects/' . $_GET['project'] . '/browse' . $path . '?rev=' . ($rev-1)), 'NUM' => ($rev-1))); } } } else if (isset($_GET['file'])) { } } $template->display(); ?>