mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Bootstrap file for setting the ABSPATH constant
mp-wp_genesis 4 * and loading the wp-config.php file. The wp-config.php
mp-wp_genesis 5 * file will then load the wp-settings.php file, which
mp-wp_genesis 6 * will then set up the WordPress environment.
mp-wp_genesis 7 *
mp-wp_genesis 8 * If the wp-config.php file is not found then an error
mp-wp_genesis 9 * will be displayed asking the visitor to set up the
mp-wp_genesis 10 * wp-config.php file.
mp-wp_genesis 11 *
mp-wp_genesis 12 * Will also search for wp-config.php in WordPress' parent
mp-wp_genesis 13 * directory to allow the WordPress directory to remain
mp-wp_genesis 14 * untouched.
mp-wp_genesis 15 *
mp-wp_genesis 16 * @package WordPress
mp-wp_genesis 17 */
mp-wp_genesis 18
mp-wp_genesis 19 /** Define ABSPATH as this files directory */
mp-wp_genesis 20 define( 'ABSPATH', dirname(__FILE__) . '/' );
mp-wp_genesis 21
mp-wp_genesis 22 error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
mp-wp_genesis 23
mp-wp_genesis 24 if ( file_exists( ABSPATH . 'wp-config.php') ) {
mp-wp_genesis 25
mp-wp_genesis 26 /** The config file resides in ABSPATH */
mp-wp_genesis 27 require_once( ABSPATH . 'wp-config.php' );
mp-wp_genesis 28
mp-wp_genesis 29 } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-load.php' ) ) {
mp-wp_genesis 30
mp-wp_genesis 31 /** The config file resides one level below ABSPATH */
mp-wp_genesis 32 require_once( dirname(ABSPATH) . '/wp-config.php' );
mp-wp_genesis 33
mp-wp_genesis 34 } else {
mp-wp_genesis 35
mp-wp_genesis 36 // A config file doesn't exist
mp-wp_genesis 37
mp-wp_genesis 38 // Set a path for the link to the installer
mp-wp_genesis 39 if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
mp-wp_genesis 40 else $path = 'wp-admin/';
mp-wp_genesis 41
mp-wp_genesis 42 // Die with an error message
mp-wp_genesis 43 require_once( ABSPATH . '/wp-includes/classes.php' );
mp-wp_genesis 44 require_once( ABSPATH . '/wp-includes/functions.php' );
mp-wp_genesis 45 require_once( ABSPATH . '/wp-includes/plugin.php' );
mp-wp_genesis 46 wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"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 create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress › Error"/*/WP_I18N_ERROR_TITLE*/);
mp-wp_genesis 47
mp-wp_genesis 48 }
mp-wp_genesis 49
mp-wp_genesis 50 ?>