Subversion Repositories SvarDOS

Rev

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

Rev 1226 Rev 1243
Line 1... Line 1...
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html>
2
<html>
3
  <head>
3
  <head>
-
 
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)) {
4
    <title>SvarDOS</title>
14
    echo '<title>SvarDOS</title>';
-
 
15
  } else {
-
 
16
    echo '<title>SvarDOS ' . $chapters[$p] . '</title>';
-
 
17
  }
-
 
18
  echo "\n";
-
 
19
?>
5
    <meta name="keywords" content="svardos,svarog386,freedos">
20
    <meta name="keywords" content="svardos,svarog386,freedos">
6
    <meta name="author" content="Mateusz Viste">
21
    <meta name="author" content="Mateusz Viste">
7
    <meta name="robots" content="index, follow">
22
    <meta name="robots" content="index, follow">
8
    <meta charset="UTF-8">
23
    <meta charset="UTF-8">
9
    <meta name="viewport" content="width=device-width, initial-scale=1">
24
    <meta name="viewport" content="width=device-width, initial-scale=1">
10
    <link rel="stylesheet" href="style.css">
25
    <link rel="stylesheet" href="style.css">
11
  </head>
26
  </head>
12
  <body>
27
  <body>
13
 
28
 
14
    <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>
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>
15
 
30
 
16
<?php
31
<?php
17
 
32
 
-
 
33
  if (empty($p)) {
-
 
34
    include 'index-main.php';
18
    $p = '';
35
  } else {
19
    if (! empty($_GET['p'])) $p = $_GET['p'];
36
    include "index-{$p}.php";
-
 
37
  }
20
 
38
 
21
    if ($p == 'nls') {
-
 
22
      readfile('index-nls.htm');
-
 
23
    } else if ($p == 'repo') {
-
 
24
      include 'index-repo.php';
-
 
25
    } else if ($p == 'help') {
-
 
26
      include 'index-help.php';
-
 
27
    } else if ($p == 'files') {
-
 
28
      include 'index-files.php';
-
 
29
    } else if ($p == 'forum') {
-
 
30
      include 'index-forum.php';
-
 
31
    } else { // else display the front page
-
 
32
      include 'index-main.php';
-
 
33
    }
-
 
34
?>
39
?>
35
  </body>
40
  </body>
36
</html>
41
</html>