Subversion Repositories website

[/] [trunk/] [wp-blog-header.php] - Blame information for rev 85

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 84 drecordon
<?php
2 drecordon
3 drecordon
if (! isset($wp_did_header)):
4 drecordon
if ( !file_existsdirname(__FILE__) . '/wp-config.php') ) {
5 drecordon
    if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false$path '';
6 drecordon
    else $path 'wp-admin/';
7 drecordon
8 drecordon
    require_once( dirname(__FILE__) . '/wp-includes/classes.php');
9 drecordon
    require_once( dirname(__FILE__) . '/wp-includes/functions.php');
10 drecordon
    require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
11 drecordon
    wp_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://codex.wordpress.org/Editing_wp-config.php'>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.""WordPress &rsaquo; Error");
12 drecordon
}
13 drecordon
14 drecordon
$wp_did_header true;
15 drecordon
16 drecordon
require_once( dirname(__FILE__) . '/wp-config.php');
17 drecordon
18 drecordon
wp();
19 drecordon
gzip_compression();
20 drecordon
21 drecordon
require_once(ABSPATH WPINC '/template-loader.php');
22 drecordon
23 drecordon
endif;
24 drecordon
25 drecordon
?>