]> arthur.barton.de Git - ngircd-web.git/blob - includes/common.php
ngIRCd Release 13, new website.
[ngircd-web.git] / includes / common.php
1 <?php
2
3 function begin_page($lang = 'en', $title = null) {
4         echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" ';
5         echo '"http://www.w3.org/TR/html4/strict.dtd">' . "\n\n";
6         echo '<html lang="' . $lang . '">' . "\n";
7         echo '<head>';
8         if ($title)
9                 echo "<title>$title | ngIRCd: Next Generation IRC Daemon</title>";
10         else
11                 echo '<title>ngIRCd: Next Generation IRC Daemon</title>';
12         echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">';
13         echo '<meta http-equiv="content-language" content="' . $lang . '">';
14         echo '<meta name="author" content="Alexander Barton">';
15         echo '<meta name="author-email" content="alex@barton.de">';
16         echo '<meta name="MSSmartTagsPreventParsing" content="TRUE">';
17         echo '<link rel="stylesheet" href="common/styles.css" type="text/css" media="screen">';
18         echo '<link rel="author" href="mailto:alex@barton.de" title="E-Mail an Alex">';
19         echo '<script type="text/javascript" src="common/mootools.js"></script>';
20         echo '<script type="text/javascript" src="common/slide.js"></script>';
21         echo "</head>\n<body>";
22         echo '<div id="bodyBox">';
23
24         // Title & Slogan
25         echo '<div id="sloganhead">';
26         echo '<h1 class="titel">ng<span>IRC</span>d: Next Generation IRC Daemon</h1>';
27         echo '<p style="font-family: Georgia">“… serving <em>white hat</em> 6667!”</p>';
28         echo '</div>';
29
30         // Navigation
31         echo '<ul class="nav">';
32         switch($lang) {
33           case 'de':
34                 echo '<li><a href="index.php.de">ngIRCd</a></li>';
35                 echo '<li><a href="news.php.de">Neuigkeiten</a></li>';
36                 echo '<li><a href="download.php.de">Download</a></li>';
37                 echo '<li><a href="documentation.php.de">Dokumentation</a></li>';
38                 echo '<li><a href="support.php.de">Support</a></li>';
39                 echo '<li><a href="bugtracker.php.de">Bug-Tracker</a></li>';
40                 break;
41           default:
42                 echo '<li><a href="index.php.en">ngIRCd</a></li>';
43                 echo '<li><a href="news.php.en">News</a></li>';
44                 echo '<li><a href="download.php.en">Download</a></li>';
45                 echo '<li><a href="documentation.php.en">Documentation</a></li>';
46                 echo '<li><a href="support.php.en">Support</a></li>';
47                 echo '<li><a href="bugtracker.php.en">Bug-Tracker</a></li>';
48         }
49         echo '</ul><br style="clear:both">';
50
51         echo '<div id="content">';
52 }
53
54 function end_page() {
55         echo '</div>';
56         echo '<p id="footer">ngIRCd &copy;2001-2008 Alexander Barton</p>';
57         echo '</div></body></html>';
58 }
59
60 ?>