From: Bryan K. <br...@wu...> - 2001-11-02 19:28:33
|
On Fri 2001-11-02 (10:19), Neale Pickett wrote: > Yeah, I would vote for type 2 as well, but not everyone is running > apache. However, I'm a big fan of HTTP authentication (since I'm a big > opponent of cookies). So maybe the hybrid is the way to go. Type two should work for IIS as well, although you will need to tweak things and pass through authentication. (I'll dig up the page on php.net that explains it and stick it in a doc). > But I can't really say what's the best way to do this, since I wouldn't > have a personal need for it. I would imagine, though, that more folks > would want to use the server for authentication than phpix itself, since > that allows you to have a unified auth scheme for all your stuff: html, > phpix, and whatever else you happen to run. I have a personal need for it. (We have a group that wanted to share photos, but have it closed off to the public). But I'm quite happy with either design. I coded the second form because it fits in with the way the rest of the config overrides work. Also, if you wish to use your own auth, you can just set $use_auth to 0 in config.inc, and provide your own. It won't be able to auth a particular album though, since the scripts get run from a single dir. you'd have to auth the whole thing, or not at all. I was also thinking of providing a "login" link that logs you in, and if you're not logged in, PHPix doesn't even _show_ albums you're not allowed access to. This would only work well with type 1 auth. Type 2 would require a tree traversal and that might slow us down a little. Oh, while I was at it, I got tired of the copying index.php around, so I modified it to display what dfl_index.php used to display if config.inc is not found. This allowed me to delete album.php and dfl_index.php and still have the full functionality of the default install. (Also makes it much easier when checking things into CVS.) For some reason, I've just been having the urge to code recently :-) Bryan perl -e 'map{print(pack(V,exp("21.$_")))}(21512211,40167979,2548395575,2745918245)' |