2 /*=====================================================================*\
3 || ################################################################### ||
4 || # ViewSVN [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
13 require_once('./global.php');
15 $path = $viewsvn->paths
->parse();
16 $repos = $viewsvn->paths
->fetch_repos($path);
17 $relpath = $viewsvn->paths
->fetch_path($path);
19 echo $viewsvn->paths
->construct_breadcrumb($path);
23 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, @$viewsvn->in
['rev']);
24 echo ($viewsvn->svn
->common
->fetch_head_rev($path) != @$viewsvn->in
['rev'] ?
'<a href="/viewsvn/' . $viewsvn->paths
->out('diff.php?low=' . @$viewsvn->in
['rev'] . '&high=HEAD', $path) . '">Diff to HEAD</a>' : '') .
25 ($prev != -1 ?
' - <a href="/viewsvn/' . $viewsvn->paths
->out('diff.php?low=' . $prev . '&high=' . @$viewsvn->in
['rev'], $path) . '">Diff to PREV</a>' : '');
27 echo '<pre>' . print_r($viewsvn->svn
->common
->fetch_log($path, @$viewsvn->in
['rev']), true
) . '</pre>';
29 $listing = $viewsvn->svn
->ls($repos, $relpath, @$viewsvn->in
['rev']);
34 foreach ($listing AS $item)
37 if ($item{ strlen($item) - 1 } == '/')
39 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('browse.php' . (@$viewsvn->in
['rev'] ?
'?rev=' . $viewsvn->in
['rev'] : ''), $path . $item) . '">' . $item . '</a>';
43 echo '<a href="/viewsvn/' . $viewsvn->paths
->out('log.php' . (@$viewsvn->in
['rev'] ?
'?rev=' . $viewsvn->in
['rev'] : ''), $path . $item) . '">'. $item . '</a>';
51 /*=====================================================================*\
52 || ###################################################################
55 || ###################################################################
56 \*=====================================================================*/