Hi Olaf
I wanted to know if there was an easy way to show the page level protected.
So that the user can know what level of protection is the page in the deny_access.php
Thanks
PHP related forum, discuss snippets, classes and tutorials
Hi Olaf
I wanted to know if there was an easy way to show the page level protected.
So that the user can know what level of protection is the page in the deny_access.php
Thanks
Hi,
The levels are just numbers, try echo $access_denied->get_access_level()
Hi Olaf
That show the level of user access, but I mean to show the page level protected.
For example:
User Level: 2
Page Level Protected: 5
Sorry I don't understand, you define the level for each page and the user level is handled within the class
I define the level of the page with:
$page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING'], 5);
How do I show that the level of the page is 5?
You can define the level as an variable which you can use for the method and for the information on the site
Please, for example?
$plevel = 5;
$page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING'], $plevel);
and later on your page:
echo '
User Level: $page_protect->get_access_level();
Page Level Protected: '.$plevel;Thanks Olaf...! and best regards.
This topic has been closed to new replies.