Subversion Repositories SvarDOS

Rev

Rev 137 | Rev 163 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 137 Rev 162
Line 11... Line 11...
11
 
11
 
12
    <p>Need to get in touch? Wish to contribute some packages, translate Svarog386 to your language, or otherwise contribute? Feel free to drop a line or two to the usenet group <b><a href="?p=tech&amp;art=support">alt.os.free-dos</a></b>.
12
    <p>Need to get in touch? Wish to contribute some packages, translate Svarog386 to your language, or otherwise contribute? Feel free to drop a line or two to the usenet group <b><a href="?p=tech&amp;art=support">alt.os.free-dos</a></b>.
13
    </div>
13
    </div>
14
 
14
 
15
<?php
15
<?php
16
  // find the latest 'full' ISO available
-
 
17
  $files = glob("svarog386-full-*.iso", GLOB_NOSORT);
-
 
18
  $files = array_combine($files, array_map("filemtime", $files));
-
 
19
  arsort($files);
-
 
20
  $latest_iso_full = key($files);
-
 
21
  // compute file size and date of the 'full' ISO
-
 
22
  $fsize_full = filesize($latest_iso_full) >> 20;
-
 
23
  $ftime_full = date("d M Y", $files[$latest_iso_full]);
-
 
24
 
-
 
25
  // find the latest 'nosrc' ISO available
-
 
26
  $files = glob("svarog386-nosrc-*.iso", GLOB_NOSORT);
-
 
27
  $files = array_combine($files, array_map("filemtime", $files));
-
 
28
  arsort($files);
-
 
29
  $latest_iso_nosrc = key($files);
-
 
30
  // compute file size and date of the 'nosrc' ISO
-
 
31
  $fsize_nosrc = filesize($latest_iso_nosrc) >> 20;
-
 
32
  $ftime_nosrc = date("d M Y", $files[$latest_iso_nosrc]);
-
 
33
 
-
 
34
  // find the latest 'micro' ISO available
-
 
35
  $files = glob("svarog386-micro-*.iso", GLOB_NOSORT);
-
 
36
  $files = array_combine($files, array_map("filemtime", $files));
-
 
37
  arsort($files);
-
 
38
  $latest_iso_micro = key($files);
-
 
39
  // compute file size and date of the 'micro' ISO
-
 
40
  $fsize_micro = filesize($latest_iso_micro) >> 20;
-
 
41
  $ftime_micro = date("d M Y", $files[$latest_iso_micro]);
-
 
42
 
16
 
43
  //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";
17
  $downarr = parse_ini_file('downloads.ini', TRUE);
44
 
18
 
45
  echo "    <div style=\"width: 45%; float: left; margin: 1.2em 5% 0 0;\">\n";
19
  echo "    <div style=\"width: 45%; float: left; margin: 1.2em 5% 0 0;\">\n";
46
  echo "      <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_nosrc}\">Download Svarog386</a></p>\n";
20
  echo "      <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$downarr['nosrc']['url']}\">Download Svarog386</a></p>\n";
47
  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";
21
  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";
48
  echo "    </div>\n";
22
  echo "    </div>\n";
49
 
23
 
50
  echo "    <div style=\"width: 45%; float: right; margin: 1.2em 0 0 5%;\">\n";
24
  echo "    <div style=\"width: 45%; float: right; margin: 1.2em 0 0 5%;\">\n";
51
  echo "      <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_full}\">Download Svarog386 (+sources)</a></p>\n";
25
  echo "      <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$downarr['full']['url']}\">Download Svarog386 (+sources)</a></p>\n";
52
  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";
26
  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";
53
  echo "    </div>\n";
27
  echo "    </div>\n";
54
 
28
 
55
  echo "    <div style=\"width: 100%; margin: 1.2em 0 0 0;\">\n";
29
  echo "    <div style=\"width: 100%; margin: 1.2em 0 0 0;\">\n";
56
  echo "      <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$latest_iso_micro}\">Download Svarog386 micro (core OS only)</a></p>\n";
30
  echo "      <p style=\"text-align: center; font-weight: bold;\"><a href=\"/{$downarr['micro']['url']}\">Download Svarog386 micro (core OS only)</a></p>\n";
57
  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";
31
  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";
58
  echo "    </div>\n";
32
  echo "    </div>\n";
59
 
33
 
60
?>
34
?>
61
 
35
 
62
    <p>You might want to know what it is exactly that you are about to download, before fetching the multi-megabytes ISO file. Feel free to browse the <a href="listing.txt">listing</a> of all the packages that come with Svarog386.</p>
36
    <p>You might want to know what it is exactly that you are about to download, before fetching the multi-megabytes ISO file. Feel free to browse the <a href="listing.txt">listing</a> of all the packages that come with Svarog386.</p>