00001 <?php 00002 // $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $ 00003 00015 require_once './includes/bootstrap.inc'; 00016 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); 00017 00018 $return = menu_execute_active_handler(); 00019 00020 // Menu status constants are integers; page content is a string. 00021 if (is_int($return)) { 00022 switch ($return) { 00023 case MENU_NOT_FOUND: 00024 drupal_not_found(); 00025 break; 00026 case MENU_ACCESS_DENIED: 00027 drupal_access_denied(); 00028 break; 00029 case MENU_SITE_OFFLINE: 00030 drupal_site_offline(); 00031 break; 00032 } 00033 } 00034 elseif (isset($return)) { 00035 // Print any value (including an empty string) except NULL or undefined: 00036 print theme('page', $return); 00037 } 00038 00039 drupal_page_footer();