diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-02-16 20:25:21 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-02-16 20:25:21 +0000 |
commit | 34f353f0d7e4868171c18a5614d78f6a4b2844f7 (patch) | |
tree | 25422aaa505176c17a093b905b6f4bc4d57e7d32 /functions/init.inc.php | |
parent | d2e3763e39c6920bdb01b259a4dc4871199ff4a3 (diff) | |
download | phpicalendar-34f353f0d7e4868171c18a5614d78f6a4b2844f7.tar.gz phpicalendar-34f353f0d7e4868171c18a5614d78f6a4b2844f7.tar.bz2 phpicalendar-34f353f0d7e4868171c18a5614d78f6a4b2844f7.zip |
You can now set hard paths for cookies, downloads, and webcals. Also updated footer to 0.9.1. Closed all bugs
reguarding cookies, fixed back button on preferences page.
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index b1e6f65..ae9812c 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -99,7 +99,17 @@ if ($is_webcal) { } } } - $subscribe_path = 'webcal://'.$HTTP_SERVER_VARS['SERVER_NAME'].dirname($HTTP_SERVER_VARS['PHP_SELF']).'/'.$filename; + + // Sets the download and subscribe paths from the config if present. + if ($download_uri == '') { + $subscribe_path = 'webcal://'.$HTTP_SERVER_VARS['SERVER_NAME'].dirname($HTTP_SERVER_VARS['PHP_SELF']).'/'.$filename; + $download_filename = $filename; + } else { + $newurl = eregi_replace("^(http://)", "", $download_uri); + $subscribe_path = 'webcal://'.$newurl.'/'.$cal_filename.'.ics'; + $download_filename = $download_uri.'/'.$cal_filename.'.ics'; + } + } } ?>
\ No newline at end of file |