Subversion Repositories SvarDOS

Rev

Rev 285 | Rev 732 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
188 mateuszvis 1
<h1>SvarDOS repository</h1>
285 mateuszvis 2
<p class="copyr">"the world of packages"</p>
188 mateuszvis 3
 
4
<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>
5
 
6
<?php
7
 
631 mateusz.vi 8
$handle = fopen('../packages/index.tsv', "rb");
188 mateuszvis 9
if ($handle === FALSE) {
10
  echo "<p>ERROR: INDEX FILE NOT FOUND</p>\n";
11
  exit(0);
12
}
13
 
14
echo "<table>\n";
15
 
16
echo "<thead><tr><th>PACKAGE</th><th>VERSION</th><th>DESCRIPTION</th></tr></thead>\n";
17
 
18
while (($arr = fgetcsv($handle, 1024, "\t")) !== FALSE) {
19
  // format: pkgname | version | desc | bsdsum
631 mateusz.vi 20
  echo "<tr><td><a href=\"repo/?a=pull&amp;p={$arr[0]}\">{$arr[0]}</a></td><td>{$arr[1]}</td><td>{$arr[2]}</td></tr>\n";
188 mateuszvis 21
}
22
echo "</table>\n";
23
 
24
fclose($handle);
25
 
26
?>