<?php
print "<div id=\"site_content\">\n";
// If no navigation have been done
if ( !$_GET['nav'] ) {
print "<div id=\"site_content_header\"><b>Welcome</b></div>\n";
print "<div id=\"site_content_area\">\n";
print "<div class=\"site_content_fixwidth\">Welcome to my gallery of game pictures. These pages have been put up for my friends to see pictures of the games we have done together. Feel free to browse them all. If you have an additional picture to on or more of the events, please send me the info on how to get them. You can E-mail me by clicking the link \"Contact Webmaster\" to the left.</div>\n";
print "</div>\n";
}
// If navigated to the L2-title
else if ( $_GET['nav'] == "L2" ) {
// If no navigation have been made to an archieve, links to the archieves will be written
if ( !$_GET['dir'] ) {
print "<div id=\"site_content_header\"><a href=\"./?$dirURL\"><b>Lineage II</b></a></div>\n";
print "<div id=\"site_content_area\">\n";
print "<div class=\"site_content_fixwidth\">Click <a href=\"./L2/worldmap_interlude.jpg\">here</a> to see the worldmap.<br/>\n";
print "<ul>\n";
print "<li><a href=\"./?$dirURL&dir=2007-04-24\">Most recent party</a></li>\n";
print "<li><a href=\"./?$dirURL&dir=2007-04-18\">First party to \"Catacomb of the Heretic\"</a></li>\n";
print "<li><a href=\"./?$dirURL&dir=2007-04-13-16\">Startup pictures</a></li>\n";
print "</ul>\n";
print "</div>\n";
print "</div>\n";
}
// If navigated to an existing archieve
if ( isset($_GET['dir']) && file_exists($dir.'/'.$subdir.'/tn/tn_001.jpg') ) {
print "<div id=\"site_content_header\">";
if ( $_GET['dir'] == "2007-04-24" ) {
echo "<a href=\"./?$dirURL\"><b>Lineage II</b></a> >> <a href=\"./?$dirURL&dir=2007-04-24\"><b>Most recent party</b></a>";
}
else if ( $_GET['dir'] == "2007-04-18" ) {
echo "<a href=\"./?$dirURL\"><b>Lineage II</b></a> >> <a href=\"./?$dirURL&dir=2007-04-18\"><b>First party to \"Catacomb of the Heretic\"</b></a>";
}
else if ( $_GET['dir'] == "2007-04-13-16" ) {
echo "<a href=\"./?$dirURL\"><b>Lineage II</b></a> >> <a href=\"./?$dirURL&dir=2007-04-13-16\"><b>Startup pictures</b></a>";
}
else { // Means an archieve exists, but not defined in this file
header("location: ./?error=404");
}
print "</div>\n";
include('inc_gallery_viewer.php');
}
// If navigation have been made to a non-existing archieve, HTTP 404
else if ( isset($_GET['dir']) && !file_exists($dir.'/'.$subdir.'/tn/tn_001.jpg') ) {
header("location: ./?error=404");
}
}
// If navigated to the WoW-title
else if ( $_GET['nav'] == "WoW" ) {
// If no navigation have been made to an archieve, links to the archieves will be written
if ( !$_GET['dir'] ) {
print "<div id=\"site_content_header\"><a href=\"./?$dirURL\"><b>World of Warcraft</b></a></div>\n";
print "<div id=\"site_content_area\">\n";
print "<div class=\"site_content_fixwidth\"><br/>";
print "<ul>\n";
print "<li><a href=\"./?$dirURL&dir=WoW\">A little collection of pictures</a></li>\n";
print "</ul>\n";
print "</div>\n";
print "</div>\n";
}
// If navigated to an existing archieve
if ( isset($_GET['dir']) && file_exists($dir.'/'.$subdir.'/tn/tn_001.jpg') ) {
print "<div id=\"site_content_header\">";
if ( $_GET['dir'] == "WoW" ) {
echo "<a href=\"./?$dirURL\"><b>World of Warcraft</b></a> >> <a href=\"./?$dirURL&dir=WoW\"><b>A little collection of pictures</b></a>";
}
else { // Means an archieve exists, but not defined in this file
header("location: ./?error=404");
}
print "</div>\n";
include('inc_gallery_viewer.php');
}
// If navigation have been made to a non-existing archieve, HTTP 404
else if ( isset($_GET['dir']) && !file_exists($dir.'/'.$subdir.'/tn/tn_001.jpg') ) {
header("location: ./?error=404");
}
}
// If navigated to the DOOM3-title
else if ( $_GET['nav'] == "DOOM3" ) {
// If no navigation have been made to an archieve, only write the title
if ( !$_GET['dir'] ) {
print "<div id=\"site_content_header\"><a href=\"./?$dirURL\"><b>DOOM3</b></a></div>\n";
print "<div id=\"site_content_area\">\n";
print "<div class=\"site_content_fixwidth\"><br/>";
print "<ul>\n";
print "<li><a href=\"./?$dirURL&dir=walkthrough\">Walkthrough from start to end.</a></li>\n";
print "<li><a href=\"./?$dirURL&dir=fun\">Fun</a></li>\n";
print "</ul>\n";
print "</div>\n";
print "</div>\n";
}
// If navigated to an existing archieve
if ( isset($_GET['dir']) && file_exists($dir.'/'.$subdir.'/tn/tn_001.jpg') ) {
print "<div id=\"site_content_header\">";
if ( $_GET['dir'] == "walkthrough" ) {
echo "<a href=\"./?$dirURL\"><b>DOOM3</b></a> >> <a href=\"./?$dirURL&dir=walkthrough\"><b>Walkthrough from start to end.</b></a>";
}
else if ( $_GET['dir'] == "2007-04-13-16" ) {
echo "<a href=\"./?$dirURL\"><b>DOOM3</b></a> >> <a href=\"./?$dirURL&dir=fun\"><b>Fun</b></a>";
}
else { // Means an archieve exists, but not defined in this file
header("location: ./?error=404");
}
print "</div>\n";
include('inc_gallery_viewer.php');
}
// If navigation have been made to a non-existing archieve, HTTP 404
else if ( isset($_GET['dir']) && !file_exists($dir.'/'.$subdir.'/tn/tn_001.jpg') ) {
header("location: ./?error=404");
}
}
// If navigated to the "Contact Webmaster" page
else if ( $_GET['nav'] == "contact" ) {
// Make a cookie with the users resolution-info
$callget_res_page_name = $REQUEST_URI;
$GLOBALS[callget_res_page_name] = $callget_res_page_name;
include("script_get_resolution.php");
// If no errors have been reported
if ( !$_GET['error'] ) {
print "<div id=\"site_content_header\"><b>Contact webmaster</b></div>\n";
print "<div id=\"site_content_area\">\n";
print "<div class=\"site_content_fixwidth\">Here you can send the webmaster messages. This feature have been added by the webmaster to receive feedback on the site. If you have any questions please use this feature.<br/><br/>Please note that you need to submit your real E-mail-address, so the webmaster can get back to you on the matter. Your E-mail-address will be hidden, handled with caution, and will not be kept for any reasons.<br/><br/>\n";
print "<form id=\"mailform\" method=\"post\" action=\"inc_contact_mailer.php?action=send\">\n";
print "<div class=\"center\">\n";
print "<input type=\"text\" size=\"40\" name=\"email\" value=\"example@domain.tld\" class=\"mailform_table\"/><br/>\n";
print "<textarea name=\"tekst\" rows=\"15\" cols=\"50\" class=\"mailform_table\">Hi Trolleri</textarea><br/>\n";
print "<input type=\"submit\" name=\"submit\" value=\"Send\" class=\"mailform_table\"/>\n";
print "</div>\n";
print "</form>\n";
print "</div>\n";
print "</div>\n";
}
else if ( isset($_GET['error']) ) {
print "<div id=\"site_content_header\"><b>Contact webmaster - Error</b></div>\n";
if ( $_GET['status'] == "success" ) {
print "<div id=\"site_content_mail-error\">
print "<div class=\"site_content_fixwidth\">You have to write a valid E-mail-address, so the webmaster have the possibility to write you back on the issue.<br/>Please note that your E-mail-address will not be shared, saved or misused in any form.</div>\n";
print "</div>\n";
}
else if ( $_GET['status'] == "error" ) {
print "<div id=\"site_content_mail-success\">
print "<div class=\"site_content_fixwidth\">Your message was successfully sent and the webmaster will contact you on the matter as quick as possible.</div>\n";
print "</div>\n";
}
}
}
print "</div>\n";
?>