From: Jo R. <jr...@ne...> - 2008-03-03 21:54:03
|
As the current maintainer of publish.php, there is no possible way I could implement this patch. Forcing a given login to always overwrite the same file is completely backwards to me. It would also destroy functionality that many of us use. I, for instance, upload 5 different calendars under my single login. I'd be happy to solve your difficulty in some other way, if you'd explain the nature of the problem you're having. On Feb 20, 2008, at 9:15 AM, Blake Cornell wrote: > 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 -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness |