/Web/Maintenance/Log2.php |
---|
File deleted |
/Web/Maintenance/Log.php |
---|
File deleted |
/Web/Maintenance/CommitLog.php |
---|
0,0 → 1,65 |
<?php |
if (isset($last)) unset ($last); |
Exec("svnlook youngest /home/MLAB", $last); |
$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 |
} |
?> |
<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--) { |
?> |
<h2> Revision <?php echo $last; ?> </h2> |
<?php |
if (isset($x)) unset ($x); |
Exec("svnlook info /home/MLAB -r $last", $x); |
?> |
<table> |
<tr> |
<th> Author </th> |
<td> <?php echo $x[0]; ?> </td> |
</tr> |
<tr> |
<th> Date </th> |
<td> <?php echo $x[1]; ?> </td> |
</tr> |
<tr> |
<th> Comment </th> |
<td> <?php echo $x[3]; ?> </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/HistoryLog.php |
---|
1,6 → 1,6 |
<h1> /root/history.log </h1> |
<pre> |
<?php |
readfile("/root/history.log"); |
@readfile("/root/history.log"); |
?> |
</pre> |
/Web/Maintenance/List.php |
---|
0,0 → 1,48 |
<table> |
<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> |
<tr> |
<td> Změny v konfiguraci </td> |
<td> <a href="?selection=HistoryLog">HistoryLog</a> </td> |
</tr> |
</table> |
<table> |
<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> |
<tr> |
<td> Administrace </td> |
<td> <a href="phpMyAdmin/index.php">phpMyAdmin</a> </td> |
</tr> |
</table> |
<table> |
<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> |
<a href="../Templates/Template.en.html">EN</a> </td> |
</tr> |
<tr> |
<td> Prázdná stránka </td> |
<td> <a href="../Templates/Empty.cs.html">CS</a> |
<a href="../Templates/Empty.en.html">EN</a> </td> |
</tr> |
</table> |
<p> |
<a href="ToDoList.html">To Do List</a> |
<br> |
</p> |
/Web/Maintenance/Maintenance.cs.php |
---|
52,14 → 52,8 |
<p class="Subtitle"> |
Stránka údržby webu. Je určena <b>pouze</b> pro <b>správce</b> webu. |
</p> |
<p> |
Tato stránka slouží správci webu pro údržbu systému. Stránka |
<b>není</b> určena pro <b>běžné</b> uživatele protože může zůsobit |
poškození webu. Stránka obsahuje pomocné odkazy a odkazy na rozpracované |
stránky. Funkčnost objektů na této stránce není zaručena. |
</p> |
<hr> |
<?php |
$lang="cs"; |
require_once("Maintenance.php"); |
?> |
</div> |
/Web/Maintenance/Maintenance.en.php |
---|
52,14 → 52,8 |
<p class=Subtitle> |
Maintenance Page is intended for <b>webmaster only</b>. |
</p> |
<p> |
This page is <b>not</b> for ordinary <b>users</b> because it |
can cause demage of the web. The page contains auxiliary links |
and links to not finished pages. The functionality of the objects |
on this page is not guaranteed. |
</p> |
<hr> |
<?php |
$lang="en"; |
require_once("Maintenance.php"); |
?> |
</div> |
/Web/Maintenance/Maintenance.php |
---|
1,19 → 1,13 |
<p> |
Zobraz vzorovou stránku |
<a href="../Templates/Template.cs.html">CS</a> |
<a href="../Templates/Template.en.html">EN</a> |
<br> |
Zobraz prázdnou stránku |
<a href="../Templates/Empty.cs.html">CS</a> |
<a href="../Templates/Empty.en.html">EN</a> |
<br> |
<a href="Log.php">Výpis naposled změněných souborů</a> |
<br> |
<a href="PhpInfo.php">Výpis PhpInfo()</a> |
<br> |
<a href="HistoryLog.php">Výpis history.log</a> |
<br> |
<a href="ToDoList.html">To Do List</a> |
<br> |
<a href="./phpMyAdmin/index.php">phpMyAdmin</a> |
</p> |
<?php |
// Zpracování parametru |
// Parametrem "selection" je jméno skriptu v aktuálním adresáři |
// bez přípony (php). Pokud neexistuje volí se defaultní volba. |
if (isset($selection)) unset($selection); // vyčisti proměnnou |
$selection=$_GET["selection"]; // vezmi parametr "selection" |
$selection=preg_replace("/[^a-zA-Z0-9]/e","",$selection); // ponech jen písmenka |
$selection.=".php"; // přidej příponu |
//echo $selection; |
if (!file_exists($selection)) // otestuj existenci |
$selection="List.php"; // defaultní volba |
include($selection); // vlož zvolený obsah |
?> |