blog->themes_path).'/'.$core->blog->settings->theme.'/style.css'; if (!is_file($css_file) && !is_writable(dirname($css_file))) { throw new Exception( sprintf(__('File %s does not exist and directory %s is not writable.'), $css_file,dirname($css_file)) ); } if (isset($_POST['css'])) { @$fp = fopen($css_file,'wb'); fwrite($fp,$_POST['css']); fclose($fp); echo '

'. __('Style sheet upgraded.'). '

'; } $css_content = is_file($css_file) ? file_get_contents($css_file) : ''; echo '

'; ?>