10,20 → 10,28 |
<p>Need to get in touch, or wish to contribute some packages? Feel free to drop a line to the usenet group <b>alt.os.free-dos</b>. Alternatively, you could also reach me directly via <a href="https://sourceforge.net/u/userid-1220451/">sourceforge</a>. |
|
<?php |
// find the latest ISO file available |
// find the latest 'full' ISO available |
$files = glob("svarog386-full-*.iso", GLOB_NOSORT); |
$files = array_combine($files, array_map("filemtime", $files)); |
arsort($files); |
$latest_iso = key($files); |
$latest_iso_full = key($files); |
// compute file size and date of the 'full' ISO |
$fsize_full = filesize($latest_iso_full) >> 20; |
$ftime_full = date("d M Y", $files[$latest_iso_full]); |
|
// compute file size and date |
$fsize = filesize($latest_iso) >> 20; |
$ftime = date("d M Y", $files[$latest_iso]); |
// find the latest 'nosrc' ISO available |
$files = glob("svarog386-nosrc-*.iso", GLOB_NOSORT); |
$files = array_combine($files, array_map("filemtime", $files)); |
arsort($files); |
$latest_iso_nosrc = key($files); |
// compute file size and date of the 'nosrc' ISO |
$fsize_nosrc = filesize($latest_iso_nosrc) >> 20; |
$ftime_nosrc = date("d M Y", $files[$latest_iso_nosrc]); |
|
echo " <p style=\"margin: 1.2em auto 0 auto; font-size: 1.2em; text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso}\">Download the latest Svarog386 ISO</a></p>\n"; |
echo " <p style=\"margin: 1.2em auto 0 auto; font-size: 1.2em; text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_full}\">Download the latest Svarog386 ISO</a></p>\n"; |
echo ' <p style="margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;">'; |
|
echo "({$fsize}M, last update: {$ftime}, <a href=\"/{$latest_iso}.md5\" style=\"color: inherit;\">MD5</a>)"; |
echo "({$fsize_full}M, last update: {$ftime_full}, <a href=\"/{$latest_iso_full}.md5\" style=\"color: inherit;\">MD5</a>)"; |
|
echo "</p>\n"; |
|