|
Re: Multiple users and security problem: msg#00007php.phpicalendar.devel
Hi Wesley, Thanks for the response. Comments interspersed... Wesley Miaw wrote: -----BEGIN PGP SIGNED MESSAGE----- I thought about using those options at the end of the config.inc.php file, but realized it would be an administrative nightmare if there are many users and many calendars. I suppose one could run a cron job to search for calendar files in a certain user's directory, but then the user would have to wait until it ran...and I'd like to make simple viewing of calendars in a user's public calendar directory not require any authentication. Just playing around I pointed to /var/www/calendars as the path to calendars. I then noticed that I could add "month.php?cal=public/user1/calendarname" to display a particular calendar, but not combined calendars. Yes, will do. Then map locked_cals calendars to users in apache_map to allow users to see their private calendars. Basically I want it to work as if I had phpicalendar installed in every users' public calendar directory so that visiting http://domain.com/calendars/public/user displays all calendars found in that directory at once. Here's what I have done (seems to work OK), but it seems like it should be easier ;) 1. installed phpicalendar in a web directory 2. linked to all files/directories contained in phpicalendar from users' public calendar directory *except* config.inc.php 3. copied a generic config.inc.php and replaced the line about calendar path as appropriate (this is different for each user) I did the same thing for private calendar directories, and as expected, the user gets prompted for credentials to even view the calendars. I'm not sure if I'm making any sense here, and there's probably a better way of explaining what I was after. I've hacked some php but I'm not particularly qualified to see how easy it would be to make this set up possible out of the box... Best, Todd ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | phpicalendar lite: 00007, zero |
|---|---|
| Next by Date: | Re: phpicalendar lite: 00007, Wesley Miaw |
| Previous by Thread: | Re: Multiple users and security problemi: 00007, Wesley Miaw |
| Next by Thread: | Re: Multiple users and security problem: 00007, Wesley Miaw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |