aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-05-03 04:29:47 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-05-03 04:29:47 +0000
commit8a971040036f4948b278a3837cd5e3b3d3140d14 (patch)
treeb57a55926568e452d49a40083d2df58a229a25ac /functions/init.inc.php
parenta6c2ec3631c8220c4fdcf7005f9b5a55a2c745f2 (diff)
downloadphpicalendar-8a971040036f4948b278a3837cd5e3b3d3140d14.tar.gz
phpicalendar-8a971040036f4948b278a3837cd5e3b3d3140d14.tar.bz2
phpicalendar-8a971040036f4948b278a3837cd5e3b3d3140d14.zip
allow default_cal to be a comma delimited list of cals
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php
index 2ab67de..7ef2c0d 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -40,7 +40,7 @@ if(isset($_REQUEST['cpath'])&& $_REQUEST['cpath'] !=''){
}elseif(isset($default_cpath_check) && $default_cpath_check !='' ){
$cpath = str_replace('..','',$default_cpath_check);
$calendar_path .= "/$cpath";
- $tmp_dir .= "/$cpath";
+# $tmp_dir .= "/$cpath";
}
#these need cpath to be set
#set up specific template folder for a particular cpath
@@ -115,7 +115,7 @@ if (isset($_GET['cal'])) {
$calcheck = $calendar_path.'/'.$default_cal_check.'.ics';
$calcheckopen = @fopen($calcheck, "r");
if ($calcheckopen == FALSE) {
- $cal_filenames[0] = $default_cal;
+ $cal_filenames = explode(',',$default_cal);
} else {
$cal_filenames[0] = $default_cal_check;
}
@@ -123,7 +123,7 @@ if (isset($_GET['cal'])) {
$cal_filenames[0] = $ALL_CALENDARS_COMBINED;
}
} else {
- $cal_filenames[0] = $default_cal;
+ $cal_filenames = explode(',',$default_cal);
}
}
//load cal_filenames if $ALL_CALENDARS_COMBINED

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