admin
1 week ago
css
1 week ago
fonts
1 week ago
images
1 week ago
lib
1 week ago
static
1 week ago
view
1 week ago
xml
1 week ago
ngg-config.php
1 week ago
nggallery.php
1 week ago
ngg-config.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Bootstrap file for getting the ABSPATH constant to wp-load.php |
| 4 | * This is requried when a plugin requires access not via the admin screen. |
| 5 | * |
| 6 | * If the wp-load.php file is not found, then an error will be displayed |
| 7 | * |
| 8 | * @package WordPress |
| 9 | * @since Version 2.6 |
| 10 | */ |
| 11 | |
| 12 | /** Define the server path to the file wp-config here, if you placed WP-CONTENT outside the classic file structure */ |
| 13 | |
| 14 | $path = ''; // It should be end with a trailing slash |
| 15 | |
| 16 | /** That's all, stop editing from here */ |
| 17 | |
| 18 | if ( ! defined( 'WP_LOAD_PATH' ) ) { |
| 19 | |
| 20 | $legacy_root = dirname( dirname( dirname( __DIR__ ) ) ) . '/'; |
| 21 | $legacy_root = dirname( dirname( $legacy_root ) ) . '/'; |
| 22 | |
| 23 | if ( file_exists( $legacy_root . 'wp-load.php' ) ) { |
| 24 | define( 'WP_LOAD_PATH', $legacy_root ); |
| 25 | defined( 'WP_ADMIN' ) && define( 'WP_ADMIN', true ); |
| 26 | } elseif ( file_exists( $path . 'wp-load.php' ) ) { |
| 27 | define( 'WP_LOAD_PATH', $path ); |
| 28 | } else { |
| 29 | throw new RuntimeException( 'Could not find wp-load.php' ); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | require_once WP_LOAD_PATH . 'wp-load.php'; |
| 34 |