Subversion Repositories SvarDOS

Rev

Rev 1270 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1270 Rev 1718
Line 1... Line 1...
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html>
2
<html>
3
  <head>
3
  <head>
4
<?php
4
<?php
-
 
5
  include 'mateuszbb.php';
-
 
6
 
5
  $chapters = array('' => 'Main page',
7
  $chapters = array('' => 'Main page',
6
                    'repo' => 'Packages',
8
                    'repo' => 'Packages',
7
                    'help' => 'Help',
9
                    'help' => 'Help',
8
                    'forum' => 'Forum');
10
                    'forum' => 'Forum');
9
 
11
 
Line 15... Line 17...
15
  if (! empty($_GET['p'])) {
17
  if (! empty($_GET['p'])) {
16
    if (!empty($chapters[$_GET['p']])) $p = $_GET['p'];
18
    if (!empty($chapters[$_GET['p']])) $p = $_GET['p'];
17
    if (in_array($_GET['p'], $hidden_pages, true)) $p = $_GET['p'];
19
    if (in_array($_GET['p'], $hidden_pages, true)) $p = $_GET['p'];
18
  }
20
  }
19
 
21
 
-
 
22
  echo '    <title>';
20
  if (empty($p)) {
23
  if (empty($p)) {
21
    echo '<title>SvarDOS</title>';
24
    echo 'SvarDOS';
-
 
25
  } else if (($p === 'forum') && (!empty($_GET['thread']))) {
-
 
26
    echo htmlspecialchars(mateuszbb_tytulwatku($_GET['thread']));
22
  } else {
27
  } else {
23
    echo '<title>SvarDOS ' . $chapters[$p] . '</title>';
28
    echo 'SvarDOS ' . $chapters[$p];
24
  }
29
  }
25
  echo "\n";
30
  echo "</title>\n";
26
?>
31
?>
27
    <meta name="keywords" content="svardos,svarog386,freedos">
32
    <meta name="keywords" content="svardos,svarog386,freedos">
28
    <meta name="author" content="Mateusz Viste">
33
    <meta name="author" content="Mateusz Viste">
29
    <meta name="robots" content="index, follow">
34
    <meta name="robots" content="index, follow">
30
    <meta charset="UTF-8">
35
    <meta charset="UTF-8">