index.php 830 Bytes
Newer Older
Dries's avatar
   
Dries committed
1
<?php
Dries's avatar
Dries committed
2

Dries's avatar
   
Dries committed
3
4
5
6
/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
7
 * All Drupal code is released under the GNU General Public License.
8
 * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
Dries's avatar
   
Dries committed
9
10
 */

11
require_once __DIR__ . '/core/vendor/autoload.php';
12
require_once __DIR__ . '/core/includes/bootstrap.inc';
13

14
15
16
17
try {
  drupal_handle_request();
}
catch (Exception $e) {
18
19
20
21
22
23
  $message = 'If you have just changed code (for example deployed a new module or moved an existing one) read <a href="http://drupal.org/documentation/rebuild">http://drupal.org/documentation/rebuild</a>';
  if (settings()->get('rebuild_access', FALSE)) {
    $rebuild_path = $GLOBALS['base_url'] . '/rebuild.php';
    $message .= " or run the <a href=\"$rebuild_path\">rebuild script</a>";
  }
  print $message;
24
25
  throw $e;
}