summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/index.php54
1 files changed, 40 insertions, 14 deletions
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") {
+?><?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><?php echo $config->value('title');?></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"/>
+</head>
+<body>
+ <div class="splash">
+<?php
+ $p = $pages->getPage($config->value('splashpage'));
+ $p->show();
+?>
+ <div class="splash_enter"><a href="?skipsplash=true"><span class="splash_enter_text">Enter Site</span></a></div>
+ </div>
+</body>
+</html>
+<?php
+ return;
+ }
+}
+
+
?>
<?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">
@@ -59,11 +95,8 @@ foreach($_ps as $_p) {
}
?>
</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;\"";
- ?>>
+ <div class="menu">
<?php
$menu = $config->value('menu');
if(sizeof($menu)) {
@@ -79,12 +112,8 @@ if(sizeof($menu)) {
}
?>
</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;\"";
- ?>>
+ <div class="wrapper">
+ <div class="content">
<?php
if($page == "admin") {
include($UTIL_DIR."/admin.php");
@@ -95,9 +124,7 @@ if($page == "admin") {
}
?>
</div>
- <div class="column" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0"))
- echo "style=\"width: 249px;\"";
- ?>>
+ <div class="column">
<?php
$_p = $pages->getPage("column");
if($_p) $_p->show();
@@ -111,7 +138,6 @@ if($_p) $_p->show();
?>
</div>
</div>
-<?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) echo "</td></tr></table></center>"; ?>
<div>
<a href="?page=admin" class="admin_link"></a>
<a href="?page=admin" class="admin_link_text">Admin</a>