-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnggpano-config.php
33 lines (26 loc) · 1013 Bytes
/
nggpano-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Bootstrap file for getting the ABSPATH constant to wp-load.php
* This is requried when a plugin requires access not via the admin screen.
*
* If the wp-load.php file is not found, then an error will be displayed
*
* @package WordPress
* @since Version 2.6
*/
/** Define the server path to the file wp-config here, if you placed WP-CONTENT outside the classic file structure */
$path = ''; // It should be end with a trailing slash
/** That's all, stop editing from here **/
if ( !defined('WP_LOAD_PATH') ) {
/** classic root path if wp-content and plugins is below wp-config.php */
$classic_root = dirname(dirname(dirname(dirname(__FILE__)))) . '/' ;
if (file_exists( $classic_root . 'wp-load.php') )
define( 'WP_LOAD_PATH', $classic_root);
else
if (file_exists( $path . 'wp-load.php') )
define( 'WP_LOAD_PATH', $path);
else
exit("Could not find wp-load.php");
}
// let's load WordPress
require_once( WP_LOAD_PATH . 'wp-load.php');