[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/ -> index.php (source)

   1  <?php
   2  
   3  /**
   4   * @file
   5   * The PHP page that serves all page requests on a Drupal installation.
   6   *
   7   * The routines here dispatch control to the appropriate handler, which then
   8   * prints the appropriate page.
   9   *
  10   * All Drupal code is released under the GNU General Public License.
  11   * See COPYRIGHT.txt and LICENSE.txt.
  12   */
  13  
  14  require_once  './includes/bootstrap.inc';
  15  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  16  
  17  $return = menu_execute_active_handler();
  18  
  19  // Menu status constants are integers; page content is a string.
  20  if (is_int($return)) {
  21    switch ($return) {
  22      case MENU_NOT_FOUND:
  23        drupal_not_found();
  24        break;
  25      case MENU_ACCESS_DENIED:
  26        drupal_access_denied();
  27        break;
  28      case MENU_SITE_OFFLINE:
  29        drupal_site_offline();
  30        break;
  31    }
  32  }
  33  elseif (isset($return)) {
  34    // Print any value (including an empty string) except NULL or undefined:
  35    print theme('page', $return);
  36  }
  37  
  38  drupal_page_footer();


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7