]>
src.bluestatic.org Git - viewsvn.git/blob - log.php
2 /*=====================================================================*\
3 || ###################################################################
4 || # ViewSVN [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
22 $fetchtemplates = array(
27 require_once('./global.php');
29 $navbar = $viewsvn->paths
->construct_breadcrumb($path, false);
31 // ###################################################################
33 // this is NOT supposed to allow for revision ranges
34 $logs = new SVNLog($repos, $relpath, 0, $viewsvn->paths
->fetch_rev_num());
36 $isdir = $viewsvn->svn
->common
->isdir($path);
40 foreach ($logs->fetch() AS $log)
42 $prev = $viewsvn->svn
->common
->fetch_prev_rev($path, $log['rev']);
44 $link['view'] = (!$isdir ? $viewsvn->paths
->out('view.php' . $viewsvn->paths
->fetch_rev_str(false, $log['rev']), $path) : '');
45 $link['blame'] = $viewsvn->paths
->out('blame.php' . $viewsvn->paths
->fetch_rev_str(false, $log['rev']), $path);
47 $show['diffhead'] = $viewsvn->svn
->common
->fetch_head_rev($path) != $log['rev'];
48 if ($show['diffhead'])
50 $link['diffhead'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true, 'HEAD', $log['rev']), $path);
53 $show['diffprev'] = $prev != -1;
54 if ($show['diffprev'])
56 $link['diffprev'] = $viewsvn->paths
->out('diff.php' . $viewsvn->paths
->fetch_rev_str(true, $log['rev'], $prev), $path);
59 $log['message_clean'] = nl2br(htmlspecialchars($log['message']));
61 eval('$nodes .= "' . $template->fetch('log_node') . '";');
64 // ###################################################################
66 eval('$template->flush("' . $template->fetch('log') . '");');
68 /*=====================================================================*\
69 || ###################################################################
72 || ###################################################################
73 \*=====================================================================*/