2001-03-10 11:07:52 +00:00
< ? php
2000-05-18 19:51:59 +00:00
2004-08-21 06:42:38 +00:00
/**
* @ file
* The PHP page that serves all page requests on a Drupal installation .
*
2007-12-26 08:46:48 +00:00
* All Drupal code is released under the GNU General Public License .
2011-10-31 04:05:57 +00:00
* See COPYRIGHT . txt and LICENSE . txt files in the " core " directory .
2004-08-21 06:42:38 +00:00
*/
2013-09-02 19:53:23 +00:00
require_once __DIR__ . '/core/vendor/autoload.php' ;
2013-03-17 06:36:36 +00:00
require_once __DIR__ . '/core/includes/bootstrap.inc' ;
2013-09-02 19:53:23 +00:00
2013-05-19 19:32:09 +00:00
try {
drupal_handle_request ();
}
catch ( Exception $e ) {
2013-12-10 13:50:21 +00:00
$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 ;
2013-05-19 19:32:09 +00:00
throw $e ;
}