예제 #1
0
function editThemeCSS($p_tname)
{
    global $_DOCMAN;
    $mainframe = JFactory::getApplication();
    $file = $_DOCMAN->getPath('themes', $p_tname) . "/css/theme.css";
    if ($fp = fopen($file, 'r')) {
        $content = fread($fp, filesize($file));
        $content = htmlspecialchars($content);
        HTML_DMThemes::editCSSSource($p_tname, $content);
    } else {
        $mainframe->redirect('index.php?option=com_docman&section=themes', _DML_OPFAILED_COULDNT_OPEN . $file);
    }
}