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, false
);
21 $diff = new SVNDiff($repos, $relpath, @$viewsvn->in
['low'], @$viewsvn->in
['high']);
24 <style type
="text/css">
29 background
-color
: #99EE99;
34 background
-color
: #EE9999;
39 font
: normal
11px monospace
;
46 foreach ($diff->fetch() AS $filename => $file)
48 echo '<h2>' . $filename . '</h2>';
50 foreach ($file AS $hunk)
52 echo '<table cellspacing="1" cellpadding="1" width="100%">';
54 foreach ($hunk AS $key => $line)
56 if ($key == 'hunk' AND isset($line['old']))
59 <tr style="background-color: #F7F7F7">
60 <td colspan="3"> </td>
65 if ($line['act'] == '+')
69 else if ($line['act'] == '-')
79 <tr style="background-color: #EEEEDD; border-width: 0px 1px 1px 0px">
80 <td>' . $line['oldlineno'] . '</td>
81 <td>' . $line['newlineno'] . '</td>
82 <td style="background-color: ' . $color . '">' . $viewsvn->svn
->format($line['line']) . '</td>
93 /*=====================================================================*\
94 || ###################################################################
97 || ###################################################################
98 \*=====================================================================*/