Subversion Repositories SvarDOS

Rev

Rev 188 | Rev 631 | 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
 
8
$handle = fopen('repo/index.tsv', "rb");
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
20
  echo "<tr><td><a href=\"repo/{$arr[0]}.zip\">{$arr[0]}</a></td><td>{$arr[1]}</td><td>{$arr[2]}</td></tr>\n";
21
}
22
echo "</table>\n";
23
 
24
fclose($handle);
25
 
26
?>