diff options
author | jwangen <jwangen> | 2002-09-29 04:29:24 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-09-29 04:29:24 +0000 |
commit | fe65ec4e72ae3fdb00b244992c1d27f914879f1d (patch) | |
tree | 2f8e6ce7fb0c943dcdefb14d56a41b4510ef98a1 | |
parent | 27af6791b1e4cf02d0e47b60fa446c2396f21e4c (diff) | |
download | phpicalendar-fe65ec4e72ae3fdb00b244992c1d27f914879f1d.tar.gz phpicalendar-fe65ec4e72ae3fdb00b244992c1d27f914879f1d.tar.bz2 phpicalendar-fe65ec4e72ae3fdb00b244992c1d27f914879f1d.zip |
Took the webcal:// link out of config and made it dynamcally find out
what the URL should be in init
-rw-r--r-- | config.inc.php | 1 | ||||
-rw-r--r-- | init.inc.php | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config.inc.php b/config.inc.php index 50653f1..21fbf68 100644 --- a/config.inc.php +++ b/config.inc.php @@ -1,7 +1,6 @@ <?php $style_sheet = "default.css"; // Themes support - "default.css", "red.css", "green.css" -$fullpath = "webcal://path/to/your/webcal/calendars/"; // what iCal file are we using $calendar_path = "./calendars"; // path to directory with calendars $default_view = "day"; // default view for calendars = "day", "week", "month" $default_cal = "Home"; // exact filename of calendar without .ics diff --git a/init.inc.php b/init.inc.php index 08f3862..a4bfc35 100644 --- a/init.inc.php +++ b/init.inc.php @@ -9,6 +9,10 @@ if(phpversion() >= "4.2.0") include('./config.inc.php'); +// subscribe link prefix, doesn't need to be user configureable +$fullpath = 'webcal://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']).'/'.$calendar_path.'/'; + + // language support $language = strtolower($language); $lang_file = "./languages/$language.inc.php"; |