3 function begin_page($lang = 'en', $title = null) {
4 echo '<!DOCTYPE html>';
5 echo '<html lang="' . $lang . '">' . "\n";
8 echo "<title>$title | ngIRCd: Next Generation IRC Daemon</title>";
10 echo '<title>ngIRCd: Next Generation IRC Daemon</title>';
11 echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">';
12 echo '<meta name="author" content="Alexander Barton">';
13 echo '<meta name="author-email" content="alex@barton.de">';
14 echo '<meta name="MSSmartTagsPreventParsing" content="TRUE">';
15 echo '<link rel="stylesheet" href="common/styles.css" type="text/css" media="screen">';
16 echo '<link rel="author" href="mailto:alex@barton.de" title="E-Mail an Alex">';
17 echo '<script src="common/mootools.js"></script>';
18 echo '<script src="common/slide.js"></script>';
19 echo "</head>\n<body>";
20 echo '<div id="bodyBox">';
23 echo '<div id="metaNav">';
26 echo 'Deutsch | <a href="index.php.en">English</a>';
29 echo '<a href="index.php.de">Deutsch</a> | English';
32 echo ' | <a href="mirrors.php">Mirrors</a></div>';
33 echo '<div id="sloganhead">';
34 echo '<h1 class="titel">ng<span>IRC</span>d: Next Generation IRC Daemon</h1>';
35 echo '<p style="font-family: Georgia">“… serving <em>white hat</em> 6667!”</p>';
39 echo '<ul class="nav">';
42 echo '<li><a href="index.php.de">ngIRCd</a></li>';
43 echo '<li><a href="news.php.de">Neuigkeiten</a></li>';
44 echo '<li><a href="download.php.de">Download</a></li>';
45 echo '<li><a href="documentation.php.de">Dokumentation</a></li>';
46 echo '<li><a href="support.php.de">Support</a></li>';
47 echo '<li><a href="bugtracker.php.de">Bug-Tracker</a></li>';
50 echo '<li><a href="index.php.en">ngIRCd</a></li>';
51 echo '<li><a href="news.php.en">News</a></li>';
52 echo '<li><a href="download.php.en">Download</a></li>';
53 echo '<li><a href="documentation.php.en">Documentation</a></li>';
54 echo '<li><a href="support.php.en">Support</a></li>';
55 echo '<li><a href="bugtracker.php.en">Bug Tracker</a></li>';
57 echo '</ul><br style="clear:both">';
59 echo '<div id="content">';
64 echo '<p id="footer">ngIRCd ©2001-2019 Alexander Barton and ';
65 echo '<a href="doc/AUTHORS">Contributors</a>';
66 echo '</div></body></html>';
69 function download_links($rel, $server, $protocol = "https") {
71 echo "Server: <em>$server</em> ";
73 echo "(<a href=\"$protocol://$server/pub/ngircd/\">$protocol</a>";
74 if ($protocol == "https")
79 foreach (array('tar.gz', 'tar.xz', 'tar.Z') as $suffix) {
82 echo "<a href=\"$protocol://$server/pub/ngircd/ngircd-$rel.$suffix\">";
83 if ($suffix == "tar.gz")
86 echo "(<a href=\"$protocol://$server/pub/ngircd/ngircd-$rel.$suffix.sig\">Sig</a>)";