Subversion Repositories SvarDOS

Rev

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

Rev 172 Rev 179
Line 14... Line 14...
14
    $art = $_GET['art'];
14
    $art = $_GET['art'];
15
    if (!array_key_exists($art, $arts)) {
15
    if (!array_key_exists($art, $arts)) {
16
      echo "<p>invalid article!</p>";
16
      echo "<p>invalid article!</p>";
17
      return;
17
      return;
18
    } else {
18
    } else {
19
      echo "<p class=\"title\">" . htmlentities($arts[$art]) . "</p>\n";
19
      echo '<h1>' . htmlentities($arts[$art]) . "</h1>\n";
20
      echo "<p class=\"copyr\">This is an article from the SvarDOS tech base</p>\n";
20
      echo "<p class=\"copyr\">This is an article from the SvarDOS tech base</p>\n";
21
      echo '<p class="tech">';
21
      echo '<p class="tech">';
22
      echo htmlentities(file_get_contents('tech/' . $art . '.txt'));
22
      echo htmlentities(file_get_contents('tech/' . $art . '.txt'));
23
      echo "</p>\n";
23
      echo "</p>\n";
24
      return;
24
      return;
25
    }
25
    }
26
  }
26
  }
27
?>
27
?>
28
 
28
 
29
<p class="title">SvarDOS technical notes</p>
29
<h1>SvarDOS technical notes</h1>
30
<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>
31
<table style="margin: 0 auto;">
31
<table style="margin: 0 auto;">
32
 
32
 
33
<?php
33
<?php
34
foreach ($arts as $file=>$title) {
34
foreach ($arts as $file=>$title) {