Line -... |
Line 1... |
- |
|
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ý |
- |
|
17 |
} |
- |
|
18 |
} |
8 |
<p><pre> |
19 |
else |
- |
|
20 |
{ |
- |
|
21 |
$x="Missing Error File"; // Pokud není chybový soubor |
9 |
miho |
22 |
} |
10 |
</pre></p> |
23 |
?> |
11 |
<h2>Errors</h1> |
24 |
<table> |
12 |
<p><pre> |
25 |
<tr> |
- |
|
26 |
<th> Last Error </th> |
- |
|
27 |
<td> <code><?php echo $x; ?> </code></td> |
13 |
</pre></p> |
28 |
</tr> |
14 |
<h2>Last Changed</h1> |
29 |
</table> |
- |
|
30 |
|
15 |
<p><pre> |
31 |
<?php |
- |
|
32 |
// Cyklus přes posledních několik commitů |
- |
|
33 |
for($i=1; $i<=5; $i++, $last--) { |
- |
|
34 |
?> |
- |
|
35 |
|
- |
|
36 |
<h2> Revision <?php echo $last; ?> </h2> |
16 |
<?php |
37 |
<?php |
17 |
if (isset($x)) unset($x); |
38 |
if (isset($x)) unset ($x); |
- |
|
39 |
Exec("svnlook info /home/MLAB -r $last", $x); |
- |
|
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> |
- |
|
53 |
</tr> |
- |
|
54 |
<tr> |
- |
|
55 |
<td colspan=2> |
- |
|
56 |
<code><?php |
- |
|
57 |
if (isset($x)) unset($x); |
18 |
Exec("svnlook changed /home/MLAB", $x); |
58 |
Exec("svnlook changed /home/MLAB -r $last", $x); |
19 |
echo implode("\n", $x); |
59 |
echo implode("\n", $x); ?></code> </td> |
- |
|
60 |
</table> |
- |
|
61 |
|
- |
|
62 |
<?php |
- |
|
63 |
// Konec cyklu |
- |
|
64 |
} |
20 |
?> |
65 |
?> |
21 |
</pre></p> |
- |
|
22 |
</body> |
- |
|
23 |
</html> |
- |
|