index.php 546 Bytes
Newer Older
1
<?php
2
// $Id$
Dries's avatar
Dries committed
3

4 5 6 7 8 9 10 11
/**
 * @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.
 */

12
include_once 'includes/bootstrap.inc';
13
drupal_page_header();
14
include_once 'includes/common.inc';
Dries's avatar
Dries committed
15

16
fix_gpc_magic();
17

18 19
$status = menu_execute_active_handler();
switch ($status) {
Dries's avatar
Dries committed
20 21
  case MENU_NOT_FOUND:
    drupal_not_found();
22
    break;
Dries's avatar
Dries committed
23
  case MENU_ACCESS_DENIED:
24 25
    drupal_access_denied();
    break;
Dries's avatar
Dries committed
26
}
27

28 29
drupal_page_footer();

Kjartan's avatar
Kjartan committed
30
?>