function showCss($option) { require_once KUNENA_PATH_LIB . '/kunena.file.class.php'; $kunena_config = KunenaFactory::getConfig(); $file = KUNENA_PATH_TEMPLATE . '/' . $kunena_config->template . '/css/kunena.forum.css'; $permission = CKunenaPath::isWritable($file); if (!$permission) { echo "<center><h1><font color=red>" . JText::_('COM_KUNENA_WARNING') . "</font></h1><br />"; echo "<b>" . JText::_('COM_KUNENA_CFC_FILENAME') . ": " . $file . "</b><br />"; echo "<b>" . JText::_('COM_KUNENA_CHMOD1') . "</b></center><br /><br />"; } html_Kunena::showCss($file, $option); }
function showCss($option) { require_once KUNENA_PATH_LIB . DS . 'kunena.file.class.php'; $fbConfig =& CKunenaConfig::getInstance(); $file = KUNENA_PATH_TEMPLATE . DS . $fbConfig->template . DS . "kunena.forum.css"; $permission = CKunenaPath::isWritable($file); if (!$permission) { echo "<center><h1><font color=red>" . _KUNENA_WARNING . "</font></h1><br />"; echo "<b>" . _KUNENA_CFC_FILENAME . ": " . $file . "</b><br />"; echo "<b>" . _KUNENA_CHMOD1 . "</b></center><br /><br />"; } html_Kunena::showCss($file, $option); }