Hello everyone and happy christmas,
I have a virtual pet website which has multiple level users, or if you like, different ranks from 1 - 10.
1 is suspended and 10 is master admin.
I have worked out how to give access to an admin page for users with the rank 6 and above for example but want to be able to say only members with ranks 6 and for example 7 and 10 can only access a admin page. I want to beable to individually give each level access to certain pages.
Here is the code for a particular page:
<?php
/*
Admin Main (admin.php)
*/
$page_title = "admin_access6.php";
$rank_check ==6;
include "../header.inc.php";
print "$openHTML";
$credit = $getGame[credit] / 100;
ECHO <<<END
As you can see this is setting this page access to ONLY level 6 due to the double ==. If it was a single = like $rank_check =6; then this would allow all ranks and levels of 6 and above access it.
So how would I make it so thatI could add allocated multiple levels to have access.
Would be much apprcieated any advice :)
Thank you kindly
Merry Christmas Everyone
Justin