From 24503e3abe705acde2df159aeae61be0d009f92e Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 19 Nov 2008 17:27:03 -0500 Subject: Imported sources --- pages/projects.php | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 pages/projects.php (limited to 'pages/projects.php') diff --git a/pages/projects.php b/pages/projects.php new file mode 100644 index 0000000..4129cdf --- /dev/null +++ b/pages/projects.php @@ -0,0 +1,94 @@ +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(); + +?> -- cgit 1.4.1