Page 1 of 1
need a scrcipt
Posted: Fri Jun 24, 2005 9:35 am
by yeti
i dont know if i'm posting this in the right place,
but i'm searching for a simple php script that can protect an entire dir so only members can enter it.
Members have to sign in using a form.
And the script should work without having to include something on all protected pages.
There doesn't need to be a signup page, but there should be some kind of admin page where i can add members manually...
Does anyone knows if there exists such a script and where i can find it? Thnx!
Posted: Fri Jun 24, 2005 9:49 am
by dethron
Check,
http://www.sf.net
OR
Use password protected directories
Posted: Fri Jun 24, 2005 9:51 am
by phpScott
without modifing your existing pages to have to do includes, dont thing so.
you can try doing .htaccess to protect your dir with each user having their own username and pword but this would require manual updating?
Posted: Fri Jun 24, 2005 10:12 am
by yeti
The manuall updating isn't a problem,
and i would prefer to use .htaccess...
But my 'client' wants for the members to login with a form, not with a pop-up like you get when you are tryin to enter a htaccess protected dir...
Re: need a scrcipt
Posted: Fri Jun 24, 2005 10:17 am
by dethron
yeti wrote:And the script should work without having to include something on all protected pages.
yeti wrote:But my 'client' wants for the members to login with a form

There is something wrong here... Sacrifices...
Just include a protection mechanism to all files in the directory, so you are done...
Re: need a scrcipt
Posted: Fri Jun 24, 2005 10:26 am
by yeti
dethron wrote:Just include a protection mechanism to all files in the directory, so you are done...
That is just what i want to avoid

I'm gettin the feeling that what i ask isn't possible

Posted: Fri Jun 24, 2005 10:37 am
by timvw
What's wrong with .htaccess? Writing a few pages (in case you can't find some ready made) that allow administrators to edit the file/ldap/mysql backend shouldn't take long...
btw, with a .htacess you can also set php_prepend and php_append... This way a login script could get included automagically too...
Posted: Fri Jun 24, 2005 10:37 am
by dethron
Why you dont want to include? State your problem, may be we can find another way to solve. In software business there is nothing impossible, just things that are needlessly to.