Subversion Repositories SvarDOS

Rev

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

Rev Author Line No. Line
3 mv_fox 1
<!DOCTYPE html>
1226 mateusz.vi 2
<html>
3 mv_fox 3
  <head>
1243 mateusz.vi 4
<?php
5
  $chapters = array('' => 'Main page',
6
                    'repo' => 'Packages',
7
                    'help' => 'Help',
8
                    'forum' => 'Forum');
9
 
10
  $p = '';
11
  if ((! empty($_GET['p'])) && (!empty($chapters[$_GET['p']]))) $p = $_GET['p'];
12
 
13
  if (empty($p)) {
14
    echo '<title>SvarDOS</title>';
15
  } else {
16
    echo '<title>SvarDOS ' . $chapters[$p] . '</title>';
17
  }
18
  echo "\n";
19
?>
175 mateuszvis 20
    <meta name="keywords" content="svardos,svarog386,freedos">
3 mv_fox 21
    <meta name="author" content="Mateusz Viste">
22
    <meta name="robots" content="index, follow">
23
    <meta charset="UTF-8">
1224 mateusz.vi 24
    <meta name="viewport" content="width=device-width, initial-scale=1">
3 mv_fox 25
    <link rel="stylesheet" href="style.css">
26
  </head>
27
  <body>
28
 
1243 mateusz.vi 29
  <p style="margin: 0 0 -1em auto; font-size: 0.9em; text-align: right;"><a href="/">Main page</a> I <a href="?p=repo">Packages</a> I <a href="?p=help">Help</a> I <a href="?p=forum">Forum</a>  <!-- I <a href="?p=nls">NLS</a>--></p>
3 mv_fox 30
 
14 mv_fox 31
<?php
3 mv_fox 32
 
1243 mateusz.vi 33
  if (empty($p)) {
34
    include 'index-main.php';
35
  } else {
36
    include "index-{$p}.php";
37
  }
3 mv_fox 38
 
14 mv_fox 39
?>
3 mv_fox 40
  </body>
41
</html>