| 1 |
<?php |
| 2 |
$path = ''; |
| 3 |
|
| 4 |
if (!defined('WP_LOAD_PATH') ) { |
| 5 |
|
| 6 |
$classic_root = dirname(dirname(dirname(dirname(__FILE__)))) . '/' ; |
| 7 |
if(file_exists($classic_root . 'wp-load.php')) |
| 8 |
define( 'WP_LOAD_PATH', $classic_root); |
| 9 |
|
| 10 |
else if (file_exists($path . 'wp-load.php')) |
| 11 |
define( 'WP_LOAD_PATH', $path); |
| 12 |
|
| 13 |
else |
| 14 |
exit("Could not find wp-load.php"); |
| 15 |
} |
| 16 |
require_once WP_LOAD_PATH . 'wp-load.php'; |
| 17 |
?> |