need a scrcipt

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yeti
Forum Newbie
Posts: 3
Joined: Fri Jun 24, 2005 9:28 am

need a scrcipt

Post 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!
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

Check, http://www.sf.net

OR

Use password protected directories
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post 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?
yeti
Forum Newbie
Posts: 3
Joined: Fri Jun 24, 2005 9:28 am

Post 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...
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Re: need a scrcipt

Post 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

8O There is something wrong here... Sacrifices... ;)

Just include a protection mechanism to all files in the directory, so you are done...
yeti
Forum Newbie
Posts: 3
Joined: Fri Jun 24, 2005 9:28 am

Re: need a scrcipt

Post 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 :lol:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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...
Last edited by timvw on Fri Jun 24, 2005 10:39 am, edited 1 time in total.
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post 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.
Post Reply