Help !! Re: Page authentication and security levels

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
lekant
Forum Newbie
Posts: 1
Joined: Sat May 03, 2003 11:50 am

Help !! Re: Page authentication and security levels

Post by lekant »

I am new to php, trying to add page authentication to certain pages i want secured, ie


if (!class_exists(auth))
{
include ("auth.php");
}
include ("config.php");


// Check for permission to view this page
if ($check["level"] != 8)


// Check for permission to view this page
if ($check["level"] != 8)

The above code works fine, but what i need to do is to give other levels access, for example level 8 and level 9, so the page will check if the user has the require access level either 8 or 9.
Post Reply