3 function begin_page($lang = 'en', $title = null) {
4 echo '<!DOCTYPE html>';
5 echo '<html lang="' . $lang . '">' . "\n";
8 echo "<title>$title | ngIRCd: Free, portable and lightweight Internet Relay Chat server</title>";
10 echo '<title>ngIRCd: Free, portable and lightweight Internet Relay Chat server</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+ngircd@barton.de" title="E-Mail Alex">';
17 echo '<link rel="me" href="https://social.tchncs.de/@ngircd">';
18 echo '<script src="common/mootools.js"></script>';
19 echo '<script src="common/slide.js"></script>';
20 echo "</head>\n<body>";
21 echo '<div id="bodyBox">';
24 echo '<div id="metaNav">';
27 echo 'Deutsch | <a href="index.php.en">English</a>';
30 echo '<a href="index.php.de">Deutsch</a> | English';
33 echo ' | <a href="mirrors.php">Mirrors</a></div>';
34 echo '<div id="sloganhead">';
35 echo '<h1 class="titel">ng<span>IRC</span>d: Next Generation IRC Daemon</h1>';
36 echo '<p style="font-family: Georgia">“… serving <em>white hat</em> 6667!”</p>';
40 echo '<ul class="nav">';
43 echo '<li><a href="index.php.de">ngIRCd</a></li>';
44 echo '<li><a href="news.php.de">Neuigkeiten</a></li>';
45 echo '<li><a href="download.php.de">Download</a></li>';
46 echo '<li><a href="documentation.php.de">Dokumentation</a></li>';
47 echo '<li><a href="support.php.de">Support</a></li>';
48 echo '<li><a href="bugtracker.php.de">Bug-Tracker</a></li>';
51 echo '<li><a href="index.php.en">ngIRCd</a></li>';
52 echo '<li><a href="news.php.en">News</a></li>';
53 echo '<li><a href="download.php.en">Download</a></li>';
54 echo '<li><a href="documentation.php.en">Documentation</a></li>';
55 echo '<li><a href="support.php.en">Support</a></li>';
56 echo '<li><a href="bugtracker.php.en">Bug Tracker</a></li>';
58 echo '</ul><br style="clear:both">';
60 echo '<div id="content">';
65 echo '<p id="footer">ngIRCd ©2001-2024 Alexander Barton and ';
66 echo '<a href="doc/AUTHORS">Contributors</a>';
67 echo '</div></body></html>';
70 function download_links($rel, $server, $protocol = "https") {
72 echo "Server: <em>$server</em> ";
74 echo "(<a href=\"$protocol://$server/pub/ngircd/\">$protocol</a>";
75 if ($protocol == "https")
80 foreach (array('tar.gz', 'tar.xz', 'tar.Z') as $suffix) {
83 echo "<a href=\"$protocol://$server/pub/ngircd/ngircd-$rel.$suffix\">";
84 if ($suffix == "tar.gz")
87 echo "(<a href=\"$protocol://$server/pub/ngircd/ngircd-$rel.$suffix.sig\">Sig</a>)";