357 |
miho |
1 |
<?php |
|
|
2 |
if (isset($last)) unset ($last); |
|
|
3 |
Exec("svnlook youngest /home/MLAB", $last); |
358 |
miho |
4 |
$last=$last[0]; // Poslední revize |
357 |
miho |
5 |
?> |
|
|
6 |
<h1> Commit Log </h1> |
|
|
7 |
<?php |
|
|
8 |
if (isset($x)) unset ($x); |
358 |
miho |
9 |
$x=@file("DynData/svn.err"); // Chybový soubor |
|
|
10 |
if ($x!="") |
|
|
11 |
{ |
|
|
12 |
$x=preg_replace("/\n/","",$x); // Ukousni konce řádek |
|
|
13 |
$x=implode("\n",$x); // Slož řádky |
|
|
14 |
if ($x=="") |
|
|
15 |
{ |
|
|
16 |
$x="O.K."; // Soubor existuje a je prázdný |
|
|
17 |
} |
|
|
18 |
} |
|
|
19 |
else |
|
|
20 |
{ |
|
|
21 |
$x="Missing Error File"; // Pokud není chybový soubor |
|
|
22 |
} |
357 |
miho |
23 |
?> |
|
|
24 |
<table> |
358 |
miho |
25 |
<tr> |
|
|
26 |
<th> Last Error </th> |
|
|
27 |
<td> <code><?php echo $x; ?> </code></td> |
|
|
28 |
</tr> |
|
|
29 |
</table> |
357 |
miho |
30 |
|
155 |
miho |
31 |
<?php |
357 |
miho |
32 |
// Cyklus přes posledních několik commitů |
358 |
miho |
33 |
for($i=1; $i<=5; $i++, $last--) { |
155 |
miho |
34 |
?> |
358 |
miho |
35 |
|
357 |
miho |
36 |
<h2> Revision <?php echo $last; ?> </h2> |
|
|
37 |
<?php |
|
|
38 |
if (isset($x)) unset ($x); |
|
|
39 |
Exec("svnlook info /home/MLAB -r $last", $x); |
|
|
40 |
?> |
|
|
41 |
<table> |
358 |
miho |
42 |
<tr> |
357 |
miho |
43 |
<th> Author </th> |
|
|
44 |
<td> <?php echo $x[0]; ?> </td> |
|
|
45 |
</tr> |
|
|
46 |
<tr> |
|
|
47 |
<th> Date </th> |
|
|
48 |
<td> <?php echo $x[1]; ?> </td> |
|
|
49 |
</tr> |
358 |
miho |
50 |
<tr> |
|
|
51 |
<th> Comment </th> |
|
|
52 |
<td> <?php echo $x[3]; ?> </td> |
|
|
53 |
</tr> |
|
|
54 |
<tr> |
|
|
55 |
<td colspan=2> |
|
|
56 |
<code><?php |
357 |
miho |
57 |
if (isset($x)) unset($x); |
|
|
58 |
Exec("svnlook changed /home/MLAB -r $last", $x); |
|
|
59 |
echo implode("\n", $x); ?></code> </td> |
|
|
60 |
</table> |
358 |
miho |
61 |
|
357 |
miho |
62 |
<?php |
|
|
63 |
// Konec cyklu |
358 |
miho |
64 |
} |
|
|
65 |
?> |