Index: tiny_mce_config.php
===================================================================
--- tiny_mce_config.php (revision 12677)
+++ tiny_mce_config.php (working copy)
@@ -1,5 +1,7 @@
 <?php
-       @ require('../../../wp-config.php');
+       $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php';
+       require_once( $config_path );
+
        cache_javascript_headers();

        function wp_translate_tinymce_lang($text) {
Index: tiny_mce_gzip.php
===================================================================
--- tiny_mce_gzip.php   (revision 12677)
+++ tiny_mce_gzip.php   (working copy)
@@ -9,9 +9,9 @@
  * enables the browser to do two requests instead of one for each .js file.
  * Notice: This script defaults the button_tile_map option to true for extra performance.
  */
+       $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php';
+       require_once( $config_path );

-       @require_once('../../../wp-config.php');  // For get_bloginfo().
-
        // Get input
        $plugins = explode(',', getParam("plugins", ""));
        $languages = explode(',', getParam("languages", ""));
Index: /var/www/blog.chip.de/ecom/wp-admin/admin.php
===================================================================
--- /var/www/blog.chip.de/ecom/wp-admin/admin.php       (revision 12650)
+++ /var/www/blog.chip.de/ecom/wp-admin/admin.php       (working copy)
@@ -1,8 +1,6 @@
 <?php
-if ( defined('ABSPATH') )
-       require_once( ABSPATH . 'wp-config.php');
-else
-    require_once('../wp-config.php');
+$config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php';
+require_once( $config_path );

 if ( get_option('db_version') != $wp_db_version ) {
        wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])));

