forked from pantheon-systems/drops-7
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.php
33 lines (29 loc) · 843 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/
/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
try {
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
}
catch (PDOException $e) {
// A PDO exception might mean that we are running on an empty database. In
// that case, just redirect the user to install.php.
if (!db_table_exists('variable')) {
include_once DRUPAL_ROOT . '/includes/install.inc';
install_goto('install.php');
}
throw $e;
}
menu_execute_active_handler();