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