From: Wesley M. <we...@we...> - 2008-02-21 00:54:22
|
Hi Blake, That change seems to make it do something completely different than before.... But if that is what works for you I don't see any problem. It doesn't seem like something that should get merged into the repository though. Regards, Wes Quoting Blake Cornell <bl...@re...>: > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel > -- Wesley Miaw http://www.wesman.net/ ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |