« See all FAQs for PHP Login & User Management with message center

How to secure a page for specific level?

1) Secure page for admin
<?php
    include('system_load.php');
    //This loads system.
    authenticate_user('admin');
?>        
2) Secure page for specific user level
<?php
    include('system_load.php');
    //This loads system.
    authenticate_user('levelname');
?>        
3) Secure page but all members with login status can view.
<?php
    include('system_load.php');
    //This loads system.
    authenticate_user('all');
?>        
by
by
by
by
by
by