diff options
author | deva <deva> | 2008-10-06 18:13:56 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-06 18:13:56 +0000 |
commit | 415e90a2e059ea32f6851dfb9b3c018b0a731a81 (patch) | |
tree | a2e7d809f4783f521a3a985716a26a6543acfc9d /htdocs | |
parent | cce5e7710295021b41d9aaecc503a60fb99256be (diff) |
Put the webpages in.
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/config.php.defaults | 11 | ||||
-rw-r--r-- | htdocs/index.php | 132 |
2 files changed, 143 insertions, 0 deletions
diff --git a/htdocs/config.php.defaults b/htdocs/config.php.defaults new file mode 100644 index 0000000..e79d90d --- /dev/null +++ b/htdocs/config.php.defaults @@ -0,0 +1,11 @@ +<?php + +$PAGE_DIR = "../pages"; + +$DATA_DIR = "../data"; + +$ALBUMS_DIR = "gfx/albums"; + +$UTIL_DIR = "../utils"; + +?>
\ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php new file mode 100644 index 0000000..f374113 --- /dev/null +++ b/htdocs/index.php @@ -0,0 +1,132 @@ +<?php +include_once("config.php"); + +include_once($UTIL_DIR . "/guestbook.php"); +header("Content-Type: text/html; charset=UTF-8"); + +include_once($UTIL_DIR . "/login.php"); +if($page == "admin") checklogin(); +?> +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>ExecutionRoom.com - Official DIE website</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +<meta name="MSSmartTagsPreventParsing" content="true"/> +<meta http-equiv="Content-Type" content="text/html"/> +<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" /> +<link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/> +<link href="/favicon.ico" rel="shortcut icon"/> +<link rel="stylesheet" type="text/css" href="style.css" media="screen"/> +<link rel="stylesheet" type="text/css" href="handheld.css" media="handheld"/> +<script type="text/javascript" src="external.js">js"></script> +</head> +<body> +<div style="display: none;"> +<img alt="preload" src="gfx/biography_hover.jpg"/> +<img alt="preload" src="gfx/contact_hover.jpg"/> +<img alt="preload" src="gfx/discography_hover.jpg"/> +<img alt="preload" src="gfx/downloads_hover.jpg"/> +<img alt="preload" src="gfx/gallery_hover.jpg"/> +<img alt="preload" src="gfx/guestbook_hover.jpg"/> +<img alt="preload" src="gfx/live_hover.jpg"/> +<img alt="preload" src="gfx/members_hover.jpg"/> +<img alt="preload" src="gfx/news_hover.jpg"/> +<img alt="preload" src="gfx/shop_hover.jpg"/> +</div> +<?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) echo "<center><table><tr><td>"; ?> +<div class="page"> + <div class="menu" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) + echo "style=\"width: 848px;\""; + ?>> + <a href="?page=news" class="menu_entry_news"></a> + <a href="?page=news" class="menutitle">News</a> + + <a href="?page=shop" class="menu_entry_shop"></a> + <a href="?page=shop" class="menutitle">Shop</a> + + <a href="?page=downloads" class="menu_entry_downloads"></a> + <a href="?page=downloads" class="menutitle">Downloads</a> + + <a href="?page=biography" class="menu_entry_biography"></a> + <a href="?page=biography" class="menutitle">Biography</a> + + <a href="?page=live" class="menu_entry_live"></a> + <a href="?page=live" class="menutitle">Live Shows</a> + + <a href="?page=discography" class="menu_entry_discography"></a> + <a href="?page=discography" class="menutitle">Discography</a> + + <a href="?page=guestbook" class="menu_entry_guestbook"></a> + <a href="?page=guestbook" class="menutitle">Guestbook</a> + + <a href="?page=members" class="menu_entry_members"></a> + <a href="?page=members" class="menutitle">Members</a> + + <a href="?page=gallery" class="menu_entry_gallery"></a> + <a href="?page=gallery" class="menutitle">Gallery</a> + + <a href="?page=contact" class="menu_entry_contact"></a> + <a href="?page=contact" class="menutitle">Contact</a> + </div> + <div class="wrapper" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) + echo "style=\"width: 848px; margin-top: -102px;\""; + ?>> + <div class="content" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) + echo "style=\"width: 599px;\""; + ?>> +<?php +include_once("config.php"); + +switch($page) { +case "news": include($PAGE_DIR."/news.php"); break; +case "shop": include($PAGE_DIR."/shop.php"); break; +case "downloads": include($PAGE_DIR."/downloads.php"); break; +case "biography": include($PAGE_DIR."/biography.php"); break; +case "live": include($PAGE_DIR."/live.php"); break; +case "discography": include($PAGE_DIR."/discography.php"); break; +case "members": include($PAGE_DIR."/members.php"); break; +case "guestbook": include($PAGE_DIR."/guestbook.php"); break; +case "gallery": include($PAGE_DIR."/gallery.php"); break; +case "contact": include($PAGE_DIR."/contact.php"); break; + +// Hidden pages +case "lyrics": include($PAGE_DIR."/lyrics.php"); break; +case "links": include($PAGE_DIR."/links.php"); break; +case "admin": include($PAGE_DIR."/admin.php"); break; +case "rss": include($PAGE_DIR."/rss.php"); break; + +// Paypal result pages +case "thanx": include($PAGE_DIR."/thanx.php"); break; +case "cancel": include($PAGE_DIR."/cancel.php"); break; + +// Default +default: include($PAGE_DIR."/news.php"); break; +} +?> + </div> + <div class="column" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) + echo "style=\"width: 249px;\""; + ?>> +<?php + include $PAGE_DIR."/column.php" +?> + </div> + </div> + <div class="footer"> + Hosted by <a href="http://www.aasimon.org">Aasimon.org</a>. + Design and DIE logo by <a href="mailto:elsenator@gmail.com">Lars Bisballe Jensen</a>. + Artwork by <a href="http://tonysandoval.deviantart.com">Tony Sandoval</a>. + Copyright©2007 <a href="http://www.executionroom.com">DIE</a>. + This site is valid <a href="http://validator.w3.org/check?uri=referer">XHTML1.1</a> + and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS2.0</a> + </div> +</div> +<?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) echo "</td></tr></table></center>"; ?> +<div> +<a href="?page=admin" class="forum_link"></a> +<a href="?page=admin" class="forum_link_text">Admin</a> +</div> +</body> +</html> |