Subversion Repositories SvarDOS

Rev

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

Rev Author Line No. Line
3 mv_fox 1
<?php
2
  $arts = array(
172 mateuszvis 3
  'support'     => 'How do I get in touch with the SvarDOS community?',
140 mv_fox 4
  'pkgincl'     => 'Packages inclusion rules',
5
  'pkgformat'   => 'Package format',
172 mateuszvis 6
  'licensing'   => 'SvarDOS licensing',
169 mv_fox 7
  'vboxfonts'   => 'Under VirtualBox the language-specific glyphs appear broken',
140 mv_fox 8
  'whatmeans'   => 'What does "Svarog" mean?'
3 mv_fox 9
  );
10
 
11
  natcasesort($arts);
12
 
13
  if (isset($_GET['art'])) {
14
    $art = $_GET['art'];
15
    if (!array_key_exists($art, $arts)) {
16
      echo "<p>invalid article!</p>";
17
      return;
18
    } else {
19
      echo "<p class=\"title\">" . htmlentities($arts[$art]) . "</p>\n";
172 mateuszvis 20
      echo "<p class=\"copyr\">This is an article from the SvarDOS tech base</p>\n";
3 mv_fox 21
      echo '<p class="tech">';
22
      echo htmlentities(file_get_contents('tech/' . $art . '.txt'));
23
      echo "</p>\n";
24
      return;
25
    }
26
  }
27
?>
28
 
172 mateuszvis 29
<p class="title">SvarDOS technical notes</p>
3 mv_fox 30
<p class="copyr">no documentation is perfect, this one's no exception</p>
31
<table style="margin: 0 auto;">
32
 
33
<?php
34
foreach ($arts as $file=>$title) {
35
  echo "<tr><td><a href=\"?p=tech&art={$file}\">" . htmlentities($title) . "</a></td></tr>";
36
}
37
?>
38
 
39
</table>