authorize_access_denied_page

Versions
7
authorize_access_denied_page()

Render a 403 access denied page for authorize.php

Code

./authorize.php, line 40

<?php
function authorize_access_denied_page() {
  drupal_add_http_header('403 Forbidden');
  watchdog('access denied', 'authorize.php', NULL, WATCHDOG_WARNING);
  drupal_set_title('Access denied');
  return t('You are not allowed to access this page.');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.