Files
WordPress/wp-blog-header.php
T

21 lines
759 B
PHP
Raw Normal View History

2003-12-11 00:22:36 +00:00
<?php
2004-08-24 08:43:01 +00:00
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
else $path = 'wp-admin/';
die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
}
2003-12-11 00:22:36 +00:00
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
2003-12-11 00:22:36 +00:00
wp();
gzip_compression();
2004-08-27 20:59:38 +00:00
require_once(ABSPATH . WPINC . '/template-loader.php');
2004-05-31 23:35:32 +00:00
endif;
2005-06-12 23:22:06 +00:00
?>