Subversion Repositories SvarDOS

Rev

Rev 188 | Rev 631 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<h1>SvarDOS repository</h1>
<p class="copyr">"the world of packages"</p>

<p>This page lists all packages that are available in the SvarDOS repository. These packages can be downloaded from within SvarDOS using the pkgnet tool, or you can download them from here.</p>

<?php

$handle = fopen('repo/index.tsv', "rb");
if ($handle === FALSE) {
  echo "<p>ERROR: INDEX FILE NOT FOUND</p>\n";
  exit(0);
}

echo "<table>\n";

echo "<thead><tr><th>PACKAGE</th><th>VERSION</th><th>DESCRIPTION</th></tr></thead>\n";

while (($arr = fgetcsv($handle, 1024, "\t")) !== FALSE) {
  // format: pkgname | version | desc | bsdsum
  echo "<tr><td><a href=\"repo/{$arr[0]}.zip\">{$arr[0]}</a></td><td>{$arr[1]}</td><td>{$arr[2]}</td></tr>\n";
}
echo "</table>\n";

fclose($handle);

?>