summaryrefslogtreecommitdiffstats
path: root/wp-blog-header.php
blob: ad1f602809abedc66d3cd2ee97e2749de467a59d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */

if ( !isset($wp_did_header) ) {
	if ( !file_exists( dirname(__FILE__) . '/wp-config.php') && !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')) {
		if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
		else $path = 'wp-admin/';
		include( "index-install.php" ); // install WPMU!
		die();
	}

	$wp_did_header = true;

	require_once( dirname(__FILE__) . '/wp-load.php' );

	wp();

	require_once( ABSPATH . WPINC . '/template-loader.php' );

}

?>