<?php
header('Content-Type: text/html; charset=utf-8');
date_default_timezone_set('Europe/Bratislava');
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">
<html>
 <head>
  <title>minvskaddress</title>
  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=charset=utf-8\">
 </head>
 <body>
<h1>minvskaddress</h1>
<p>Prečítaj podrobnosti pre súbory&nbsp;
<a href=\"https://groups.google.com/g/osm_sk/c/Qj0bDMC6EME/m/i8MzhkCDBgAJ\">ra_" . date("Y") . "-xx-xx.zip</a>&nbsp;
 v každom súbore je <font color = \"green\">osm_adresy/<b>citaj_ma.html</b></font>.
</p>
<p>
<table border=\"0\" cellpadding=\"6\" cellspacing=\"0\">
<tr>
<th>Názov</th>
<th>Dátum</th>
<th>Veľkosť</th>
</tr>";
//a &nbsp;<a href=\"https://groups.google.com/g/osm_sk/c/80mQ7rpQit8/m/BrVaI_VHAwAJ\">chybaju_ulice</a>,

$handle=opendir('.');
while (false!==($file = readdir($handle))):

if ($file != "." && $file != ".." &&$file!="index.php"):
$cas = date("d.m.Y H:i", filemtime($file));
$velkost = number_format(round(filesize($file)/1024,0), 0, '', ' ');
$vystup[$file] = "<tr>
<td><a href=\"$file\">$file</a></td>
<td>$cas</td>
<td align=\"right\" nowrap>$velkost kiB</td>
</tr>\r\n";

endif; //if ($file != "."):
endwhile;
closedir($handle);
if ($vystup):
arsort ($vystup);
  #while (list ($key, $val) = each ($vystup)):
  foreach ($vystup as $key => $val) {
    echo $val;
  }
  #endwhile;
endif;
echo "</table>
<p>
OSM fórum: <a href = \"https://groups.google.com/g/osm_sk/c/Qj0bDMC6EME/m/i8MzhkCDBgAJ\">Pomôcka pre hľadanie zmien v adresách</a><br>
Kontrola: <a href = \"https://osm.margus.sk/ra_body_mimo_obce.csv\">Adresy mimo hranice obce</a><br>
Štatistika: <a href = \"https://minvskaddress.freemap.sk/stats.csv\">Počet adries v OSM vs MINV register adries</a><br>
<a href = \"https://osm.margus.sk/ako/\">Export budov z katastra</a><br>
<a target=\"_adresy\" href = \"https://minvskaddress.freemap.sk/\">MINV dáta (adresy) vs OSM</a>
</body></html>";
 ?>
