06272006 1731 GMT-6
session_start();
if(isset($SESSION['user'])){
// allow access to this folder
} else {
// redirect to login
}
On Tue, 2006-06-27 at 22:14 +0000, Marian Briones wrote:
> Hi everyone
> I've been handed my Harley Owner Group's website to take care of. One
> of the things that Harley has stressed to us is that we can't have any
> photos of members in any public facing pages. The other webmaster has
> been controlling the members only directory with the tried and true
> (and getting antiquated IMHO) htaccess/htpasswd.
>
> What I want to do is to have the member login, and once logged in, all
> of the pages are controlled by sessions on what can be seen by whom.
> Logged in members will see links and things that the public, non
> logged in visitors won't see, all easily accomplished with sessions.
>
> Now here's the kicker: How can I protect access to the image
> directories? I suppose I can put a blank index.html file in each of
> the image directories that are being protected to prevent browsing of
> the directories themselves, but I'm concerned and want to do this the
> right way and I sure don't want Harley coming after us...
>
> Thanks in advance,
> Marian
>
> Thoughts?
>
>
>
>
>
>
>
>
>
> Community email addresses:
> Post message: [email protected]
> Subscribe: [EMAIL PROTECTED]
> Unsubscribe: [EMAIL PROTECTED]
> List owner: [EMAIL PROTECTED]
>
> Shortcut URL to this page:
> http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/