Access Denied
uid) { // this user is already logged in
print “
You do not have permission to access this page. Access to some pages is restricted to specific officers and staff.”;
print “
If you feel that you have received this message in error, please email the Webmaster with specific details so that we may review your access to our web site.”;
} else {
print “
We apologize, but you do not have permission to access this page. Some of our pages are restricted to Members Only. Please join or log in.”;
drupal_set_message(t(“We apologize, but you do not have permission to access this page. Some of our pages are restricted to Members Only. Please join or log in.”));
$querystring = $_GET;
unset($querystring[‘q’], $querystring[‘destination’]);
$destination = drupal_get_destination() . urlencode(‘?’ . drupal_query_string_encode($querystring));
$url = url(‘user’) . ‘?’ . $destination;
header( ‘Location: ‘ . $url );
exit;
}
?>