13,48 → 13,22 |
</div> |
|
<?php |
// 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_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]); |
|
// 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]); |
$downarr = parse_ini_file('downloads.ini', TRUE); |
|
// find the latest 'micro' ISO available |
$files = glob("svarog386-micro-*.iso", GLOB_NOSORT); |
$files = array_combine($files, array_map("filemtime", $files)); |
arsort($files); |
$latest_iso_micro = key($files); |
// compute file size and date of the 'micro' ISO |
$fsize_micro = filesize($latest_iso_micro) >> 20; |
$ftime_micro = date("d M Y", $files[$latest_iso_micro]); |
|
//echo " <p style=\"margin: 1.2em auto 0 auto; font-size: 1.2em; text-align: center; font-weight: bold;\">Download the latest Svarog386 ISO</p>\n"; |
|
echo " <div style=\"width: 45%; float: left; margin: 1.2em 5% 0 0;\">\n"; |
echo " <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_nosrc}\">Download Svarog386</a></p>\n"; |
echo " <p style=\"margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;\">({$fsize_nosrc}M, last update: {$ftime_nosrc}, <a href=\"/{$latest_iso_nosrc}.md5\" style=\"color: inherit;\">MD5</a>)</p>\n"; |
echo " <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$downarr['nosrc']['url']}\">Download Svarog386</a></p>\n"; |
echo " <p style=\"margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;\">(" . $downarr['nosrc']['size'] >> 20 . "M, last update: " . date("d M Y", $downarr['nosrc']['date']) . ", <a href=\"/{$downarr['nosrc']['md5']}\" style=\"color: inherit;\">MD5</a>)</p>\n"; |
echo " </div>\n"; |
|
echo " <div style=\"width: 45%; float: right; margin: 1.2em 0 0 5%;\">\n"; |
echo " <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_full}\">Download Svarog386 (+sources)</a></p>\n"; |
echo " <p style=\"margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;\">({$fsize_full}M, last update: {$ftime_full}, <a href=\"/{$latest_iso_full}.md5\" style=\"color: inherit;\">MD5</a>)</p>\n"; |
echo " <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$downarr['full']['url']}\">Download Svarog386 (+sources)</a></p>\n"; |
echo " <p style=\"margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;\">(" . $downarr['full']['size'] >> 20 . "M, last update: " . date("d M Y", $downarr['full']['date']) . ", <a href=\"/{$downarr['full']['md5']}\" style=\"color: inherit;\">MD5</a>)</p>\n"; |
echo " </div>\n"; |
|
echo " <div style=\"width: 100%; margin: 1.2em 0 0 0;\">\n"; |
echo " <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_micro}\">Download Svarog386 micro (core OS only)</a></p>\n"; |
echo " <p style=\"margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;\">({$fsize_micro}M, last update: {$ftime_micro}, <a href=\"/{$latest_iso_micro}.md5\" style=\"color: inherit;\">MD5</a>)</p>\n"; |
echo " <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$downarr['micro']['url']}\">Download Svarog386 micro (core OS only)</a></p>\n"; |
echo " <p style=\"margin: 0 auto 1.4em auto; font-size: 1em; text-align: center; color: #333;\">(" . $downarr['micro']['size'] >> 20 . "M, last update: " . date("d M Y", $downarr['micro']['date']) . ", <a href=\"/{$downarr['micro']['md5']}\" style=\"color: inherit;\">MD5</a>)</p>\n"; |
echo " </div>\n"; |
|
?> |