Code coverage for /20080809/index.php

Line #Times calledCode
1
<?php
2
// $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
3
4
/**
5
 * @file
6
 * The PHP page that serves all page requests on a Drupal installation.
7
 *
8
 * The routines here dispatch control to the appropriate handler, which
then
9
 * prints the appropriate page.
10
 *
11
 * All Drupal code is released under the GNU General Public License.
12
 * See COPYRIGHT.txt and LICENSE.txt.
13
 */
14
152010
require_once './includes/bootstrap.inc';
162010
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
17
182010
$return = menu_execute_active_handler();
19
20
// Menu status constants are integers; page content is a string.
211505
if (is_int($return)) {
22
  switch ($return) {
2352
    case MENU_NOT_FOUND:
2411
      drupal_not_found();
2511
      break;
2641
    case MENU_ACCESS_DENIED:
2741
      drupal_access_denied();
2841
      break;
29
    case MENU_SITE_OFFLINE:
30
      drupal_site_offline();
31
      break;
32
  }
3352
}
341453
elseif (isset($return)) {
35
  // Print any value (including an empty string) except NULL or undefined:
361437
  print theme('page', $return);
371437
}
38
391505
drupal_page_footer();
401505