From e1f9098f57b7996cfa5c22bef8e8ebc887f9a6bc Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 13 Feb 2010 15:27:16 +0000 Subject: Removed IE6 compat tables. Added splashscreen code (to be moved to a module at some point in the future). --- htdocs/index.php | 54 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 40 insertions(+), 14 deletions(-) (limited to 'htdocs/index.php') diff --git a/htdocs/index.php b/htdocs/index.php index 3871c4b..a41ee02 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -19,6 +19,42 @@ if($page == "admin") checklogin(); include_once($MODULES_DIR . "/pages.php"); $pages = new Pages($DATA_DIR . "/pages.xml"); + +if($config->value('splash') == "true") { + if($_GET["skipsplash"]) { + setcookie("skipsplash", "true", time()+$config->value('splashreshow')); + } + + if($GLOBALS["skipsplash"] != "true") { +?> + + + + <?php echo $config->value('title');?> + + + + + + + + + +
+getPage($config->value('splashpage')); + $p->show(); +?> + +
+ + + @@ -59,11 +95,8 @@ foreach($_ps as $_p) { } ?> -
"; ?>
-
"; ?>
Admin -- cgit v1.2.3