| 1 | diff -r -x .svn 2_3_2/wp-admin/admin-ajax.php 2_3_2_chip/wp-admin/admin-ajax.php |
|---|
| 2 | 2c2,4 |
|---|
| 3 | < require_once('../wp-config.php'); |
|---|
| 4 | --- |
|---|
| 5 | > $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 6 | > require_once($config_path); |
|---|
| 7 | > |
|---|
| 8 | diff -r -x .svn 2_3_2/wp-admin/admin.php 2_3_2_chip/wp-admin/admin.php |
|---|
| 9 | 4,7c4,5 |
|---|
| 10 | < if ( defined('ABSPATH') ) |
|---|
| 11 | < require_once( ABSPATH . 'wp-config.php'); |
|---|
| 12 | < else |
|---|
| 13 | < require_once('../wp-config.php'); |
|---|
| 14 | --- |
|---|
| 15 | > $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 16 | > require_once($config_path); |
|---|
| 17 | diff -r -x .svn 2_3_2/wp-admin/upgrade.php 2_3_2_chip/wp-admin/upgrade.php |
|---|
| 18 | 3c3,8 |
|---|
| 19 | < if (!file_exists('../wp-config.php')) |
|---|
| 20 | --- |
|---|
| 21 | > |
|---|
| 22 | > $path = dirname($_SERVER["SCRIPT_FILENAME"]); |
|---|
| 23 | > $pathinfo = pathinfo($path); |
|---|
| 24 | > $config_path = $pathinfo['dirname'] . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 25 | > |
|---|
| 26 | > if (!file_exists($config_path)) |
|---|
| 27 | 6c11 |
|---|
| 28 | < require('../wp-config.php'); |
|---|
| 29 | --- |
|---|
| 30 | > require($config_path); |
|---|
| 31 | diff -r -x .svn 2_3_2/wp-blog-header.php 2_3_2_chip/wp-blog-header.php |
|---|
| 32 | 1a2 |
|---|
| 33 | > $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 34 | 4c5 |
|---|
| 35 | < if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) { |
|---|
| 36 | --- |
|---|
| 37 | > if ( !file_exists($config_path) ) { |
|---|
| 38 | 16c17 |
|---|
| 39 | < require_once( dirname(__FILE__) . '/wp-config.php'); |
|---|
| 40 | --- |
|---|
| 41 | > require_once($config_path); |
|---|
| 42 | diff -r -x .svn 2_3_2/wp-includes/js/tinymce/tiny_mce_config.php 2_3_2_chip/wp-includes/js/tinymce/tiny_mce_config.php |
|---|
| 43 | 2c2,4 |
|---|
| 44 | < @ require('../../../wp-config.php'); |
|---|
| 45 | --- |
|---|
| 46 | > $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 47 | > require_once($config_path); |
|---|
| 48 | > |
|---|
| 49 | diff -r -x .svn 2_3_2/wp-includes/js/tinymce/tiny_mce_gzip.php 2_3_2_chip/wp-includes/js/tinymce/tiny_mce_gzip.php |
|---|
| 50 | 13c13,14 |
|---|
| 51 | < @require_once('../../../wp-config.php'); // For get_bloginfo(). |
|---|
| 52 | --- |
|---|
| 53 | > $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 54 | > require_once($config_path); // For get_bloginfo(). |
|---|
| 55 | diff -r -x .svn 2_3_2/wp-login.php 2_3_2_chip/wp-login.php |
|---|
| 56 | 2c2,3 |
|---|
| 57 | < require( dirname(__FILE__) . '/wp-config.php' ); |
|---|
| 58 | --- |
|---|
| 59 | > $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . 'wp-config.php'; |
|---|
| 60 | > require($config_path); |
|---|