htmlspecialchars() log messages
[viewsvn.git] / blame.php
1 <?php
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 \*=====================================================================*/
12
13 require_once('./global.php');
14
15 $path = $viewsvn->paths->parse();
16 $repos = $viewsvn->paths->fetch_repos($path);
17 $relpath = $viewsvn->paths->fetch_path($path);
18
19 echo $viewsvn->paths->construct_breadcrumb($path, false);
20
21 $blame = new SVNBlame($repos, $relpath, @$viewsvn->in['rev']);
22
23 echo '<table cellspacing="1" cellpadding="1" style="background-color: #EFEFEF" width="100%">';
24
25 foreach ($blame->fetch() AS $entry)
26 {
27 echo '
28 <tr style="background-color: white">
29 <td>' . $entry['rev'] . '</td>
30 <td>' . $entry['author'] . '</td>
31 <td>' . str_replace(array(' ', "\t"), array('&nbsp;', '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'), htmlspecialchars($entry['line'])) . '</td>
32 </tr>';
33 }
34
35 echo '
36 </table>';
37
38 /*=====================================================================*\
39 || ###################################################################
40 || # $HeadURL$
41 || # $Id$
42 || ###################################################################
43 \*=====================================================================*/
44 ?>