aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-05-23 18:19:36 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-05-23 18:19:36 +0000
commitc53da68aaf4602690116e767f97df513ec215484 (patch)
tree3202bb80a026eb5327d1043af7b4260a1a27d34d /index.php
parentfcedd5a0e354b5d261fafe0e34d4bf78614b25d3 (diff)
downloadphpicalendar-c53da68aaf4602690116e767f97df513ec215484.tar.gz
phpicalendar-c53da68aaf4602690116e767f97df513ec215484.tar.bz2
phpicalendar-c53da68aaf4602690116e767f97df513ec215484.zip
fix index.php to use default config
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index a63454b..bac4eab 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,9 @@
<?php
if (!isset($ALL_CALENDARS_COMBINED)) $ALL_CALENDARS_COMBINED = 'all_calendars_combined971';
-include "./config.inc.php";
+if (!defined('BASE')) define('BASE', './');
+include_once(BASE.'default_config.php');
+if (is_file(BASE.'config.inc.php')) include_once(BASE.'config.inc.php');
if (isset($_COOKIE['phpicalendar'])) {
$phpicalendar = unserialize(stripslashes($_COOKIE['phpicalendar']));
$default_view = $phpicalendar['cookie_view'];

© 2014-2024 Faster IT GmbH | imprint | privacy policy