aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-11-02 08:06:03 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-11-02 08:06:03 +0000
commit09643a5841c1cec29871e0b4d1eb4d6e10108a4b (patch)
tree9bc24cf07a31141ef3f172d2b7cf4128e3859b8d /index.php
parent956548beab93780c028f79ce0c75d06093306f19 (diff)
downloadphpicalendar-09643a5841c1cec29871e0b4d1eb4d6e10108a4b.tar.gz
phpicalendar-09643a5841c1cec29871e0b4d1eb4d6e10108a4b.tar.bz2
phpicalendar-09643a5841c1cec29871e0b4d1eb4d6e10108a4b.zip
bug fix for repeating events where first day of month is same as repeat day
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.php b/index.php
index a63454b..aee10ea 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,12 @@
<?php
if (!isset($ALL_CALENDARS_COMBINED)) $ALL_CALENDARS_COMBINED = 'all_calendars_combined971';
-include "./config.inc.php";
+if (is_file("./config.inc.php")){
+ include "./config.inc.php";
+}else{
+ header ( "Location:./admin/new.php");
+ exit;
+}
if (isset($_COOKIE['phpicalendar'])) {
$phpicalendar = unserialize(stripslashes($_COOKIE['phpicalendar']));
$default_view = $phpicalendar['cookie_view'];

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