root/trunk/wp-blog-header.php

Revision 1407, 0.5 kB (checked in by donncha, 2 months ago)

Search for wp-config.php above document root.

  • Property svn:eol-style set to native
Line 
1 <?php
2 /**
3  * Loads the WordPress environment and template.
4  *
5  * @package WordPress
6  */
7
8 if ( !isset($wp_did_header) ) {
9     if ( !file_exists( dirname(__FILE__) . '/wp-config.php') && !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')) {
10         if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
11         else $path = 'wp-admin/';
12         include( "index-install.php" ); // install WPMU!
13         die();
14     }
15
16     $wp_did_header = true;
17
18     require_once( dirname(__FILE__) . '/wp-load.php' );
19
20     wp();
21
22     require_once( ABSPATH . WPINC . '/template-loader.php' );
23
24 }
25
26 ?>
27
Note: See TracBrowser for help on using the browser.