From ee563ba81b1be27cf02dbe125a1865012cadb02f Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 18 Apr 2009 20:09:26 +0000 Subject: Stripped out all constant values from html. --- htdocs/config.php.defaults | 30 ++++++++++-- htdocs/index.php | 118 +++++++++++++++------------------------------ 2 files changed, 64 insertions(+), 84 deletions(-) (limited to 'htdocs') diff --git a/htdocs/config.php.defaults b/htdocs/config.php.defaults index 2bc5373..401e2e7 100644 --- a/htdocs/config.php.defaults +++ b/htdocs/config.php.defaults @@ -1,19 +1,39 @@ "News", + "shop" => "Shop", + "downloads" => "Downloads", + "biography" => "Biography", + "live" => "Concerts", + "discography" => "Discography", + "guestbook" => "Guestbook", + "members" => "Members", + "gallery" => "Gallery", + "contact" => "Contact"); ?> \ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php index 240554d..4f8d946 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -1,5 +1,6 @@ -ExecutionRoom.com - Official DIE website - - - - - - - - - - + <?php echo config('title');?> + + + + + + + + + +
-preload -preload -preload -preload -preload -preload -preload -preload -preload -preload +\n"; +} +?>
"; ?>
getPage($page); - else $p = $pages->getPage($DEFAULT_PAGE); + else $p = $pages->getPage(config('default')); if($p) $p->show(); } - -/* -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; -} -*/ ?>