Subversion Repositories SvarDOS

Rev

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

Rev 1269 Rev 1270
Line 11... Line 11...
11
  $hidden_pages = array('files');
11
  $hidden_pages = array('files');
12
 
12
 
13
  $p = '';
13
  $p = '';
14
  /* validate that ?p=xxx targets a valid subpage */
14
  /* validate that ?p=xxx targets a valid subpage */
15
  if (! empty($_GET['p'])) {
15
  if (! empty($_GET['p'])) {
16
    if (!empty($chapters[$_GET['p']]))) $p = $_GET['p'];
16
    if (!empty($chapters[$_GET['p']])) $p = $_GET['p'];
17
    if (in_array($_GET['p'], $hidden_pages, true)) $p = $_GET['p'];
17
    if (in_array($_GET['p'], $hidden_pages, true)) $p = $_GET['p'];
18
  }
18
  }
19
 
19
 
20
  if (empty($p)) {
20
  if (empty($p)) {
21
    echo '<title>SvarDOS</title>';
21
    echo '<title>SvarDOS</title>';