diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2007-05-23 18:19:36 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2007-05-23 18:19:36 +0000 |
commit | c53da68aaf4602690116e767f97df513ec215484 (patch) | |
tree | 3202bb80a026eb5327d1043af7b4260a1a27d34d /index.php | |
parent | fcedd5a0e354b5d261fafe0e34d4bf78614b25d3 (diff) | |
download | phpicalendar-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.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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']; |