Re: Simple authentication for directory??

2007-10-18 Thread maschoen
Instead of replace SRC with "get_picture.php/1". get_picture.php checks whether the user is logged in and if so uses the following PHP code to return the picture. $fileno = $_SERVER['QUERY_STRING']; $filename = "/picture/directory/not-below-webroot/PICTURE" . $fileno . ".jpg"; $image = imagecr

Re: Simple authentication for directory??

2007-10-17 Thread dardosordi
> You could use the Auth component to prevent access to that action by > people who are not logged in. I think he is asking for a way to protect pictures in the img/ directory (hotlink ?). You can use .htaccess for protecting the directory and use a controller action to serve them (here come the

Re: Simple authentication for directory??

2007-10-17 Thread Chris Hartjes
On 10/17/07, Jacob83 <[EMAIL PROTECTED]> wrote: > > Nobody knows about a solution for this problem? > I think it's a very common question, isn't it? > You could use the Auth component to prevent access to that action by people who are not logged in. -- Chris Hartjes My motto for 2007: "Just b

Re: Simple authentication for directory??

2007-10-17 Thread Jacob83
Nobody knows about a solution for this problem? I think it's a very common question, isn't it? On 6 Okt., 07:58, Jacob83 <[EMAIL PROTECTED]> wrote: > Hi out there, > is there any way to limit access to a directory to logged in users > only? i.e. i don't want everybody to be able to see my picture

Simple authentication for directory??

2007-10-05 Thread Jacob83
Hi out there, is there any way to limit access to a directory to logged in users only? i.e. i don't want everybody to be able to see my pictures/ documents by simply entering the url. I think I'll have to use a php file which flushes the file ... (bad performance??) but perhaps someone has already