Here goes admin/style.php for you that having the same problem (no style being displayed)
Code: Select all
<?php
// Style.php Workaround by rescbr
//CHANGED
header("Content-type: text/css");
require_once("../include.php");
require_once("../lib/classes/class.user.inc.php");
$theme=get_preference(get_userid(),"admintheme");
$style="style";
if (isset($_GET['ie']))
{
$style.="_ie";
}
$style .= ".css";
if (file_exists(dirname(__FILE__)."/themes/".$theme."/css/".$style))
{
//change readfile to these commands:
//readfile(dirname(__FILE__)."/themes/".$theme."/css/".$style);
$localfile = file_get_contents(dirname(__FILE__)."/themes/default/css/".$style);
echo($localfile);
}
else if (file_exists(dirname(__FILE__)."/themes/default/css/".$style))
{
// Same thing here
//readfile(dirname(__FILE__)."/themes/default/css/".$style);
$localfile = file_get_contents(dirname(__FILE__)."/themes/default/css/".$style);
echo($localfile);
}
?>