|
From: <cl...@us...> - 2003-02-16 20:25:27
|
Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv24424/functions
Modified Files:
init.inc.php
Log Message:
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.
Index: init.inc.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** init.inc.php 16 Feb 2003 03:40:51 -0000 1.27
--- init.inc.php 16 Feb 2003 20:25:21 -0000 1.28
***************
*** 100,104 ****
}
}
! $subscribe_path = 'webcal://'.$HTTP_SERVER_VARS['SERVER_NAME'].dirname($HTTP_SERVER_VARS['PHP_SELF']).'/'.$filename;
}
}
--- 100,114 ----
}
}
!
! // 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';
! }
!
}
}
|