/Web/Maintenance/CommitLog.php
1,38 → 1,38
<?php
if (isset($last)) unset ($last);
Exec("svnlook youngest /home/MLAB", $last);
$last=$last[0]; // Poslední revize
$last=$last[0]; // Poslední revize
?>
<h1> Commit Log </h1>
<?php
if (isset($x)) unset ($x);
$x=@file("DynData/svn.err"); // Chybový soubor
if ($x!="")
{
$x=preg_replace("/\n/","",$x); // Ukousni konce řádek
$x=implode("\n",$x); // Slož řádky
if ($x=="")
{
$x="O.K."; // Soubor existuje a je prázdný
}
}
else
{
$x="Missing Error File"; // Pokud není chybový soubor
}
$x=@file("DynData/svn.err"); // Chybový soubor
if ($x!="")
{
$x=preg_replace("/\n/","",$x); // Ukousni konce řádek
$x=implode("\n",$x); // Slož řádky
if ($x=="")
{
$x="O.K."; // Soubor existuje a je prázdný
}
}
else
{
$x="Missing Error File"; // Pokud není chybový soubor
}
?>
<table>
<tr>
<th> Last Error </th>
<td> <code><?php echo $x; ?> </code></td>
</tr>
</table>
<tr>
<th> Last Error </th>
<td> <code><?php echo $x; ?> </code></td>
</tr>
</table>
 
<?php
// Cyklus přes posledních několik commitů
for($i=1; $i<=5; $i++, $last--) {
for($i=1; $i<=5; $i++, $last--) {
?>
 
<h2> Revision <?php echo $last; ?> </h2>
<?php
if (isset($x)) unset ($x);
39,7 → 39,7
Exec("svnlook info /home/MLAB -r $last", $x);
?>
<table>
<tr>
<tr>
<th> Author </th>
<td> <?php echo $x[0]; ?> </td>
</tr>
47,19 → 47,19
<th> Date </th>
<td> <?php echo $x[1]; ?> </td>
</tr>
<tr>
<th> Comment </th>
<td> <?php echo $x[3]; ?> &nbsp; </td>
</tr>
<tr>
<td colspan=2>
<code><?php
<tr>
<th> Comment </th>
<td> <?php echo $x[3]; ?> &nbsp; </td>
</tr>
<tr>
<td colspan=2>
<code><?php
if (isset($x)) unset($x);
Exec("svnlook changed /home/MLAB -r $last", $x);
echo implode("\n", $x); ?></code> </td>
</table>
 
<?php
// Konec cyklu
}
?>
}
?>
/Web/Maintenance/List.php
1,45 → 1,45
<table>
<tr>
<th colspan=2 class="Center"> Záznamy o změnách </th>
</tr>
<th colspan=2 class="Center"> Záznamy o změnách </th>
</tr>
<tr>
<td> Poslední commity </td>
<td> <a href="?selection=CommitLog">CommitLog</a> </td>
</tr>
<td> <a href="?selection=CommitLog">CommitLog</a> </td>
</tr>
<tr>
<td> Změny v konfiguraci </td>
<td> <a href="?selection=HistoryLog">HistoryLog</a> </td>
</tr>
<td> <a href="?selection=HistoryLog">HistoryLog</a> </td>
</tr>
</table>
 
<table>
<tr>
<th colspan=2 class="Center"> Údržba PHP </th>
</tr>
<th colspan=2 class="Center"> Údržba PHP </th>
</tr>
<tr>
<td> Výpis stavu PHP </td>
<td> <a href="PhpInfo.php">PhpInfo</a> </td>
</tr>
<td> <a href="PhpInfo.php">PhpInfo</a> </td>
</tr>
<tr>
<td> Administrace </td>
<td> <a href="phpMyAdmin/index.php">phpMyAdmin</a> </td>
</tr>
<td> <a href="phpMyAdmin/index.php">phpMyAdmin</a> </td>
</tr>
</table>
 
<table>
<tr>
<th colspan=2 class="Center"> Vzorové stránky </th>
</tr>
<th colspan=2 class="Center"> Vzorové stránky </th>
</tr>
<tr>
<td> Vzorová stránka </td>
<td> <a href="../Templates/Template.cs.html">CS</a>
<td> <a href="../Templates/Template.cs.html">CS</a>
<a href="../Templates/Template.en.html">EN</a> </td>
</tr>
</tr>
<tr>
<td> Prázdná stránka </td>
<td> <a href="../Templates/Empty.cs.html">CS</a>
<td> <a href="../Templates/Empty.cs.html">CS</a>
<a href="../Templates/Empty.en.html">EN</a> </td>
</tr>
</tr>
</table>
 
<p>