Subversion Repositories SvarDOS

Rev

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

Rev 1402 Rev 1403
Line 17... Line 17...
17
 
17
 
18
  <h2>DOWNLOAD</h2>
18
  <h2>DOWNLOAD</h2>
19
 
19
 
20
  <table>
20
  <table>
21
  <?php
21
  <?php
-
 
22
    $fcount = 0;
22
    $flist = scandir("./", SCANDIR_SORT_DESCENDING);
23
    $flist = scandir("./", SCANDIR_SORT_DESCENDING);
23
    foreach ($flist as $f) {
24
    foreach ($flist as $f) {
24
      if (strpos($f, '.zip') == false) continue;
25
      if (strpos($f, '.zip') == false) continue;
25
      $fsz = intval(filesize($f) / 1024);
26
      $fsz = intval(filesize($f) / 1024);
26
      echo "<tr><td><a href=\"{$f}\">{$f}</a></td><td class=\"siz\"> {$fsz} KiB</td></tr>\n";
27
      echo "<tr><td><a href=\"{$f}\">{$f}</a></td><td class=\"siz\"> {$fsz} KiB</td></tr>\n";
-
 
28
      $fcount++;
27
    }
29
    }
28
    if (empty($flist)) echo "<tr><td>NO ZIP FILES AVAILABLE</td></tr>";
30
    if ($fcount == 0) echo "<tr><td>NO ZIP FILES AVAILABLE</td></tr>";
29
  ?>
31
  ?>
30
  </table>
32
  </table>
31
 
33
 
32
  <h2>LICENSE (MIT)</h2>
34
  <h2>LICENSE (MIT)</h2>
33
 
35