From: Blake C. <bl...@re...> - 2008-02-20 17:15:52
|
Hello, I've had issues assigning apache basic auth to allow particular users to load particular calendars. The filename didn't transport properly and thus creating a '.ics' file instead of ex. 'engineering.ics' or 'management.ics'. I've added the following function to publish.php. function retUser() { if( $_SERVER['PHP_AUTH_USER'] ) return $_SERVER['PHP_AUTH_USER']; else return $_SERVER['REMOTE_USER']; } and I've modified the follow line of code if($dataout = fopen($calendar_path.$calendar_name.'.ics','w+')){ to.. if($dataout = fopen($calendar_path.retUser().'.ics','w+')){ Now its working great. Thoughts? Regards, Blake |