password protect

javelin

Joined: 2002-12-14
Posts: 48
Posted: Sat, 2002-12-14 19:56

Hi everyone,

I'm nearly completed with my configuration of Gallery. Took me awhile to get
it going but it was all worth the effort.

It's pretty cool. Very simple and easy to use.

I want to start Gallery from an html password script I've created and was
wondering if someone might know how to do this? That is what php file
should I call from my script?

I want to temporarily keep users out of my website until I'm completely done.

Sorry for my ingorance - i'm a newbie in programming.

Thanks for your advise or suggestions.

jav
:smile:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2002-12-15 22:56

You could just not display any albums unless people were logged in. To do this, set the view rights on every album to LOGGEDIN.

If you want to start Gallery from your own script, this requires some code modification, unless you use Apache's .htaccess authentication approach.

Something like this (use the htpasswd script to create the password database)
(add this to your .htaccess file).

AuthType basic
AuthName "My Gallery [change this]"
AuthUserFile /path/to/htpasswd/file
require valid-user

 
javelin

Joined: 2002-12-14
Posts: 48
Posted: Mon, 2002-12-16 00:37

Hi,

Thanks Andrew... :smile:

The LOGGEDIN is exactly what I needed.

Thanks for your help!

jav