Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1242 → Rev 1243

/website/index.php
1,7 → 1,22
<!DOCTYPE html>
<html>
<head>
<title>SvarDOS</title>
<?php
$chapters = array('' => 'Main page',
'repo' => 'Packages',
'help' => 'Help',
'forum' => 'Forum');
 
$p = '';
if ((! empty($_GET['p'])) && (!empty($chapters[$_GET['p']]))) $p = $_GET['p'];
 
if (empty($p)) {
echo '<title>SvarDOS</title>';
} else {
echo '<title>SvarDOS ' . $chapters[$p] . '</title>';
}
echo "\n";
?>
<meta name="keywords" content="svardos,svarog386,freedos">
<meta name="author" content="Mateusz Viste">
<meta name="robots" content="index, follow">
11,26 → 26,16
</head>
<body>
 
<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>
<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>
 
<?php
 
$p = '';
if (! empty($_GET['p'])) $p = $_GET['p'];
if (empty($p)) {
include 'index-main.php';
} else {
include "index-{$p}.php";
}
 
if ($p == 'nls') {
readfile('index-nls.htm');
} else if ($p == 'repo') {
include 'index-repo.php';
} else if ($p == 'help') {
include 'index-help.php';
} else if ($p == 'files') {
include 'index-files.php';
} else if ($p == 'forum') {
include 'index-forum.php';
} else { // else display the front page
include 'index-main.php';
}
?>
</body>
</html>