mtWeb  Home > Members > Log in to your accountSitemap  Search

Log in to your account

*
*
 
* marks a required field.

Comments

Limiting who on who gets to log in
by xwanksta420 on 8 Apr 2003 7:59pm GMT

Hey there i ve been trying to research he interent.. i want to try to create a log in page where ONLY Members of our org can be able to logon.. how is t hat possible..

other than that.. this is a nice lil login script

Reply
by Mankiy (CoreyGHomie@aol.com) on 11 Apr 2003 2:20am GMT

Well, one way is by using groups.....

in your members table, add a column called "group"

VARCHAR (20)

BTW, i dont use this login script, jsut get a few answers from it :P

But, you can add this when you are authroizing it

but, use if and elseif statements to make a secure login script and such....

like, say you want to check if they are in either the "members" group or the "finders" group (examples...)

if ((HTTP_POST_VARS[username] == $dbusername) && ($HTTP_POST_VARS[password] == $dbpassword) && $group == $dbgroup1)

{

do whatever if its true

} elseif ((HTTP_POST_VARS[username] == $dbusername) && ($HTTP_POST_VARS[password] == $dbpassword) && $group == $dbgroup2)

{

do whatever if its true

} else {

echo("You have the inncorrect username or password, or you may not yet have access to this area. Please try again or contact the administration");

}

does tha give you any clue as to how you can do it? Hope it helps :)

pestpatrol
by esther keller (parkie@accessus.net) on 28 Feb 2004 2:13am GMT

can't seem to get to the program that will allow me to delete HKEY_CLASSES_ROOT\clsid\{6cclc918-ae8b-4373-a5b4-28ba18516