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"> |
15,22 → 30,12 |
|
<?php |
|
$p = ''; |
if (! empty($_GET['p'])) $p = $_GET['p']; |
|
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 |
if (empty($p)) { |
include 'index-main.php'; |
} else { |
include "index-{$p}.php"; |
} |
|
?> |
</body> |
</html> |