Ticket #5474: abspath.patch
| File abspath.patch, 2.1 KB (added by , 18 years ago) |
|---|
-
tiny_mce_config.php
1 1 <?php 2 @ require('../../../wp-config.php'); 2 $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; 3 require_once( $config_path ); 4 3 5 cache_javascript_headers(); 4 6 5 7 function wp_translate_tinymce_lang($text) { -
tiny_mce_gzip.php
9 9 * enables the browser to do two requests instead of one for each .js file. 10 10 * Notice: This script defaults the button_tile_map option to true for extra performance. 11 11 */ 12 $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; 13 require_once( $config_path ); 12 14 13 @require_once('../../../wp-config.php'); // For get_bloginfo().14 15 15 // Get input 16 16 $plugins = explode(',', getParam("plugins", "")); 17 17 $languages = explode(',', getParam("languages", "")); -
var/www/blog.chip.de/ecom/wp-admin/admin.php
1 1 <?php 2 if ( defined('ABSPATH') ) 3 require_once( ABSPATH . 'wp-config.php'); 4 else 5 require_once('../wp-config.php'); 2 $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php'; 3 require_once( $config_path ); 6 4 7 5 if ( get_option('db_version') != $wp_db_version ) { 8 6 wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])));