summaryrefslogtreecommitdiff
path: root/htdocs/index.php
diff options
context:
space:
mode:
authordeva <deva>2010-03-02 15:00:35 +0000
committerdeva <deva>2010-03-02 15:00:35 +0000
commitc34ccc130e2a507c266ee54a163cdf3a5886d63d (patch)
tree42f170422c068bf6c901d2770be938e54fb8b608 /htdocs/index.php
parente10832ad013881909cf1a051bbecae732b9e4cad (diff)
Made a lot of changes, making it possible to entirely remove th config.php file from the project. These changes includes the creation of a new rss config module, the adding of some config vars in both the events and news modules.
Diffstat (limited to 'htdocs/index.php')
-rw-r--r--htdocs/index.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/htdocs/index.php b/htdocs/index.php
index 823c388..a550f77 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -1,7 +1,17 @@
<?php
$start_time = microtime(true);
-include_once("config.php");
+if(file_exists("config.php")) include_once("config.php");
+
+if(!isset($DATA_DIR)) $DATA_DIR = "../data";
+if(!isset($ALBUMS_DIR)) $ALBUMS_DIR = "gfx/albums";
+if(!isset($ICONS_DIR)) $ICONS_DIR = "gfx/icons";
+if(!isset($MEMBERS_DIR)) $MEMBERS_DIR = "gfx/members";
+if(!isset($UTIL_DIR)) $UTIL_DIR = "../utils";
+if(!isset($MODULES_DIR)) $MODULES_DIR = $UTIL_DIR . "/modules";
+if(!isset($IMAGECACHE)) $IMAGECACHE = $DATA_DIR . "/imagecache";
+if(!isset($ADMIN_TIMEOUT)) $ADMIN_TIMEOUT = 60*60; // 60 min timeout
+if(!isset($JPEG_CACHE_QUALITY)) $JPEG_CACHE_QUALITY = 85;
if($mode == "imagecache") {
include_once($UTIL_DIR. "/imagecache.php");
@@ -41,7 +51,7 @@ if($config->value('splash') == "true") {
<link href="/favicon.ico" rel="shortcut icon"/>
<link rel="stylesheet" type="text/css" href="<?php echo $config->value('css'); ?>" media="screen"/>
</head>
-<body>
+<body class="splashbody">
<div class="splash">
<?php
$p = $pages->getPage($config->value('splashpage'));
@@ -56,7 +66,6 @@ if($config->value('splash') == "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">
@@ -70,7 +79,6 @@ if($config->value('splash') == "true") {
<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="<?php echo $config->value('css'); ?>" media="screen"/>
-<!-- <link rel="stylesheet" type="text/css" href="handheld.css" media="handheld"/> -->
<link rel="stylesheet" type="text/css" href="admin.css" media="screen"/>
<script type="text/javascript">
// <!--