Code coverage for /20081101/index.php

Line #Times calledCode
1
<?php
2
// $Id: index.php,v 1.96 2008/09/20 20:22:23 webchick 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
15
/**
16
 * Root directory of Drupal installation.
17
 */
182347
define('DRUPAL_ROOT', dirname(realpath(__FILE__)));
19
202347
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
212347
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
222346
$return = menu_execute_active_handler();
23
24
// Menu status constants are integers; page content is a string.
251756
if (is_int($return)) {
26
  switch ($return) {
2766
    case MENU_NOT_FOUND:
2815
      drupal_not_found();
2915
      break;
3051
    case MENU_ACCESS_DENIED:
3151
      drupal_access_denied();
3251
      break;
33
    case MENU_SITE_OFFLINE:
34
      drupal_site_offline();
35
      break;
36
  }
3766
}
381690
elseif (isset($return)) {
39
  // Print any value (including an empty string) except NULL or undefined:
401668
  print theme('page', $return);
411668
}
42
431756
drupal_page_footer();
44