Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv6472/functions
Modified Files:
init.inc.php
Log Message:
https support for webcals.
Index: init.inc.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** init.inc.php 16 Oct 2003 19:01:49 -0000 1.39
--- init.inc.php 5 Nov 2003 05:40:15 -0000 1.40
***************
*** 72,84 ****
}
! if (substr($cal_filename, 0, 7) == 'http://' || substr($cal_filename, 0, 9) == 'webcal://') {
$is_webcal = TRUE;
$cal_webcalPrefix = str_replace('http://','webcal://',$cal_filename);
$cal_httpPrefix = str_replace('webcal://','http://',$cal_filename);
$cal_filename = $cal_httpPrefix;
}
if ($is_webcal) {
! if ($allow_webcals == 'yes' || in_array($cal_webcalPrefix, $list_webcals) || in_array($cal_httpPrefix, $list_webcals)) {
$cal_displayname = substr(str_replace('32', ' ', basename($cal_filename)), 0, -4);
$cal = urlencode($cal_filename);
--- 72,86 ----
}
! if (substr($cal_filename, 0, 7) == 'http://' || substr($cal_filename, 0, 8) == 'https://' || substr($cal_filename, 0, 9) == 'webcal://') {
$is_webcal = TRUE;
$cal_webcalPrefix = str_replace('http://','webcal://',$cal_filename);
$cal_httpPrefix = str_replace('webcal://','http://',$cal_filename);
+ $cal_httpsPrefix = str_replace('webcal://','https://',$cal_filename);
+ $cal_httpsPrefix = str_replace('http://','https://',$cal_httpsPrefix);
$cal_filename = $cal_httpPrefix;
}
if ($is_webcal) {
! if ($allow_webcals == 'yes' || in_array($cal_webcalPrefix, $list_webcals) || in_array($cal_httpPrefix, $list_webcals) || in_array($cal_httpsPrefix, $list_webcals)) {
$cal_displayname = substr(str_replace('32', ' ', basename($cal_filename)), 0, -4);
$cal = urlencode($cal_filename);
|