]>
src.bluestatic.org Git - viewsvn.git/blob - log.php
8514335aa0321c31151b6d56657318284d15cca6
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 define('SVN', '$Id$');
29 require_once('./global.php
');
31 $navbar = ConstructNavbar();
33 // ###################################################################
35 $logs = BSXml::Parse($lib->run('log
--xml
' . $lib->arg($repos->fetchPath($input->in['repos
']) . '/' . $input->in['path
']), true));
39 BSXml::UnifyNode($logs['log
']['logentry
']);
41 foreach ($logs['log
']['logentry
'] AS $index => $log)
43 $log['author
'] = $log['author
']['value
'];
44 $log['date
'] = FormatSvnDate($log['date
']['value
']);
45 $log['message_clean
'] = FormatLogMessage($log['msg
']['value
']);
47 $link['view
'] = ConstructLink('view
', $input->in['repos
'], $input->in['path
'], $log['revision
']);
48 $link['blame
'] = ConstructLink('blame
', $input->in['repos
'], $input->in['path
'], $log['revision
']);
49 $link['diff
'] = ConstructLink('diff
', $input->in['repos
'], $input->in['path
'], $log['revision
']);
51 eval('$nodes .= "' . $template->fetch('log_node') . '";');
54 // ###################################################################
56 eval('$template->flush("' . $template->fetch('log') . '");');
58 /*=====================================================================*\
59 || ###################################################################
62 || ###################################################################
63 \*=====================================================================*/