Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1269 → Rev 1268

/website/index.php
7,15 → 7,8
'help' => 'Help',
'forum' => 'Forum');
 
/* pages available through ?p=xxx but not listed in main menu */
$hidden_pages = array('files');
 
$p = '';
/* validate that ?p=xxx targets a valid subpage */
if (! empty($_GET['p'])) {
if (!empty($chapters[$_GET['p']]))) $p = $_GET['p'];
if (in_array($_GET['p'], $hidden_pages, true)) $p = $_GET['p'];
}
if ((! empty($_GET['p'])) && (!empty($chapters[$_GET['p']]))) $p = $_GET['p'];
 
if (empty($p)) {
echo '<title>SvarDOS</title>';