Subversion Repositories SvarDOS

Rev

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