[ Root ] [ Search ] [ Index ]

PHP Cross Reference of WordPress MU 2.9.2

Provided by Yoast

title

Body

[close]

/ -> wp-blog-header.php (source)

   1  <?php
   2  /**
   3   * Loads the WordPress environment and template.
   4   *
   5   * @package WordPress
   6   */
   7  
   8  if ( !isset($wp_did_header) ) {
   9      // WPMU Runs installer if things aren't set up correctly
  10      if ( file_exists( dirname(__FILE__) . '/wp-config.php' ) || ( file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php' ) && ! file_exists( dirname( dirname(__FILE__) ) . '/wp-settings.php' ) ) ) {
  11          $wp_did_header = true;
  12  
  13          require_once( dirname(__FILE__) . '/wp-load.php' );
  14  
  15          wp();
  16  
  17          require_once( ABSPATH . WPINC . '/template-loader.php' );
  18      } else {
  19          if ( strpos( $_SERVER[ 'PHP_SELF' ], 'wp-admin' ) !== false ) {
  20              $path = ''; 
  21          } else {
  22              $path = 'wp-admin/';
  23          }
  24  
  25          include ( "index-install.php" ); // install WPMU!
  26          die();
  27      }
  28  
  29  }
  30  
  31  ?>


Generated: Mon May 3 12:25:32 2010 Cross-referenced by PHPXref 0.7