View Single Post
  #9  
Old Dec 17, 2008, 03:07 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by chris
I would love to test - just send me a download or a hint what I should try.
Could you try a changed style.css.php on your web hosting accountß

Replace the top of style.css.php

PHP Code:
<?php 
header
("Content-type: text/css");
// if this is WPMU
if (file_existsdirname(__FILE__) . '../../../../wpmu-settings.php')) {
require_once( 
dirname(__FILE__) . '../../../../wpmu-settings.php'); 
} else {
// if this is regular WordPress
require_once( dirname(__FILE__) . '../../../../wp-config.php'); }
require_once( 
dirname(__FILE__) . '/functions.php');
global 
$options; foreach ($options as $value) { if (get_option$value['id'] ) === FALSE) { $$value['id'] = $value['std']; } 
else { $
$value['id'] = get_option$value['id'] ); } }
?>
with


PHP Code:
<?php 
header
("Content-type: text/css");

// if this is WPMU
if (file_existsdirname(__FILE__) . '../../../../wpmu-settings.php')) {
    require_once( 
dirname(__FILE__) . '../../../../wpmu-settings.php'); 
} else {


// if this is regular WordPress

// find wp-config.php
    
$d 0// search depth;
    
while (!file_exists(str_repeat('../'$d) . 'wp-config.php')) if (++$d 99) exit;
    
$wpconfig str_repeat('../'$d) . 'wp-config.php';

    require_once 
$wpconfig

    foreach (
explode("\n"file_get_contents($wpconfig)) as $line) {
        if (
preg_match('/define.+?DB_|table_prefix/'$line))
            eval(
$line);
    }
    
    if (
defined('DB_USER')) {
        
$dbh = @mysql_connect(DB_HOSTDB_USERDB_PASSWORD);
        @
mysql_select_db(DB_NAME$dbh);
        
$r = @mysql_query(
            
"SELECT option_name,option_value FROM "$table_prefix ."options WHERE option_name REGEXP '^bfa_ata_';",
            
$dbh
        
);
        while (
$a = @mysql_fetch_row($r)) {
            $
$a[0] = $a[1];
        }
        @
mysql_free_result($r);
        
        
// if theme options were available in options table
        
if (isset($bfa_ata_widget_lists)) {
        
$bfa_ata_widget_lists unserialize($bfa_ata_widget_lists);
        
$bfa_ata_widget_lists2 unserialize($bfa_ata_widget_lists2);
        
$bfa_ata_widget_lists3 unserialize($bfa_ata_widget_lists3);
        }
    }    

}

// get default options in case no individual options were saved to wp_options yet
    
$d 0// search depth;
    
while (!file_exists(str_repeat('../'$d) . '/wp-content/themes/atahualpa3/functions/bfa_theme_options.php')) if (++$d 99) exit;
    
$bfa_options str_repeat('../'$d) . '/wp-content/themes/atahualpa3/functions/bfa_theme_options.php';

require_once 
$bfa_options;    
global 
$options; foreach ($options as $value) { 

    if ( !isset($
$value['id']) ) { 
            $
$value['id'] = $value['std']; 
    }

}

?>