You are here

function import_access_denied_page in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6

Same name and namespace in other branches
  1. 6.2 import/merci_import.php \import_access_denied_page()
1 call to import_access_denied_page()
merci_import.php in import/merci_import.php
Administrative page for adding MERCI bucket/resource content types and items.

File

import/merci_import.php, line 537
Administrative page for adding MERCI bucket/resource content types and items.

Code

function import_access_denied_page() {
  drupal_set_title('Access denied');
  return '<p>Access denied. You are not authorized to access this page. Please log in as the admin user (the first user you created). If you cannot log in, you will have to edit <code>merci_import.php</code> to bypass this access check. To do this:</p>
<ol>
 <li>With a text editor find the merci_import.php file on your system. It should be in the main Drupal directory that you installed all the files into.</li>
 <li>There is a line near top of merci_import.php that says <code>$access_check = TRUE;</code>. Change it to <code>$access_check = FALSE;</code>.</li>
 <li>As soon as the import is done, you should remove merci_import.php from your main installation directory.</li>
</ol>';
}