cuonic/PHPAuth-2.0 — pull request #16 by RAFIUKEN (2012-12-28 21:51:34+00:00)
Title: Simple Level System & Minimal BugFixes

Hi,

I need to implementation a levels system, and I think that is very useful for we.

For each user, i think in a lineal system:
The min level is a 99, and the max is 0.
A user with level 5 can access all levels down, example 55 and 77.

The Super admin has level 0 and acces all levels.

With function getLevel($uid) y compare level requisite and level of users

```PHP

MODIFY_NUMBER_LEVEL=44;

if( $auth->getLevel($uid) <= 44 )
{
do_modify_number();
}
else
{
die("Access Denied"(;
}

```
I change the level from that user manually.

Im Sorry for my very bad English.

Thanks for the project.