MacroPhotoPro
04-10-2015, 04:52 PM
Have the following code to specify which users can use a custom page of mine:
// Permissions Redirect
if ($usergroupid==8) {
header("Location: $url_/payments.php");
} else if ( ($usergroupid != 5) && ($usergroupid != 6) && ($usergroupid != 7) && ($usergroupid != 9) && ($usergroupid != 10) && ($usergroupid != 11) ) {
header("Location: $url_/payments.php");
}
This directs people to the payments.php page, but I have one "Administrative Only" page, where I don't want to direct them to payments.php, but where I want to elicit a No Permission message, so how do I code the above to accomplish this?
Thanks!!
// Permissions Redirect
if ($usergroupid==8) {
header("Location: $url_/payments.php");
} else if ( ($usergroupid != 5) && ($usergroupid != 6) && ($usergroupid != 7) && ($usergroupid != 9) && ($usergroupid != 10) && ($usergroupid != 11) ) {
header("Location: $url_/payments.php");
}
This directs people to the payments.php page, but I have one "Administrative Only" page, where I don't want to direct them to payments.php, but where I want to elicit a No Permission message, so how do I code the above to accomplish this?
Thanks!!