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 $fetchtemplates = array(
17 require_once('./global.php');
19 $navbar = $viewsvn->paths
->construct_breadcrumb($path);
21 // ###################################################################
23 $link['log'] = $viewsvn->paths
->out('log.php' . $viewsvn->paths
->fetch_rev_str(), $path);
25 $show['head'] = ($viewsvn->svn
->common
->fetch_head_rev($path) != $viewsvn->paths
->fetch_rev_num() AND $viewsvn->paths
->fetch_rev_num() != 'HEAD');
28 $link['gohead'] = $viewsvn->paths
->out('browse.php' . $viewsvn->paths
->fetch_rev_str(false
, 'HEAD'), $path);
29 $link['diffhead'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, 'HEAD', $viewsvn->paths
->fetch_rev_num()), $path);
32 $show['prev'] = (($prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $viewsvn->paths
->fetch_rev_num())) != -1 ? true
: false
);
35 $link['diffprev'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true
, $viewsvn->paths
->fetch_rev_num(), $prev), $path);
38 // ###################################################################
40 $logmsg = $viewsvn->svn
->common
->fetch_log($path, $viewsvn->paths
->fetch_rev_num());
41 unset($logmsg['files']);
43 $catdata = $viewsvn->svn
->format(implode("\n", $viewsvn->svn
->cat($repos, $relpath, $viewsvn->paths
->fetch_rev_num())));
45 // ###################################################################
47 eval('$template->flush("' . $template->fetch('view') . '");');
49 /*=====================================================================*\
50 || ###################################################################
53 || ###################################################################
54 \*=====================================================================*/