Subversion Repositories SvarDOS

Rev

Rev 169 | Rev 179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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