Well, more like this:
Code:
// Permissions Redirect
if ($usergroupid==8) {
print_no_permission();
} else if ( ($usergroupid != 5) && ($usergroupid != 6) ) {
print_no_permission();
}
Also, I just remembered that there's a function called exec_header_redirect() that takes the url as a parameter, which you might want to use for your other redirects since it ends the script instead of going on and generating the rest of the page. To use that you'd replace
PHP Code:
header("Location: $url_/payments.php");
with
PHP Code:
exec_header_redirect("$url_/payments.php");