' }, form_id: '<?php echo modApiFunc('Session', 'get', '__ASC_FORM_ID__'); ?> ', editables_text: '<?php echo escapeJSString(Look_Feel::getEditorRules()); ?> ', edited_theme: <?php echo $json->encode(Look_Feel::getEditedThemeObj()); ?> , active_theme_name: '<?php echo escapeJSString(Look_Feel::getActiveTheme()); ?> ' }); }); </script> <?php global $application; echo $application->combineAdminJS(array('js/css_editor_util.js', 'js/css_editor.js')); ?> </HEAD> <FRAMESET cols="320,*"> <FRAME frameborder="0" id="panel" name="css_editor_panel" src="edit_panel.php" scrolling="no"> <FRAME frameborder="0" id="storefront" name="css_editor_storefront" src="<?php echo urlStorefrontBase(); ?>
function getPermissionsWarning($skin_info) { global $application; $skin_path = $application->appIni['PATH_THEMES'] . $skin_info['skin'] . '/'; $warnings = array(); $themes_dir = $skin_path . 'themes'; if (!is_dir($themes_dir)) { $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_NO_THEMES_DIR', $themes_dir)); } elseif (!is_writable($themes_dir)) { $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_THEMES_DIR_NOT_WRITABLE', $themes_dir)); } $images_dir = $skin_path . 'images/upload'; if (!is_dir($images_dir)) { if (!mkdir($images_dir, 0755)) { $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_NO_IMAGES_DIR', $images_dir)); } } elseif (!is_writable($images_dir)) { $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_IMAGES_DIR_NOT_WRITABLE', $images_dir)); } $themes_warnings = array(); $themes = modApiStaticFunc('Look_Feel', 'getThemeList'); foreach ($themes as $theme) { if (!$theme['editable']) { $themes_warnings[] = $this->renderWarning($theme['path']); } } if ($themes_warnings) { $warnings[] = $this->mTmplFiller->fill('look_feel/skin_list/', 'warning_list_themes.tpl.html', array('Warnings' => implode('', $themes_warnings))); } if (false && Look_Feel::getEditorRules() == '') { $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_CSS_RULES_NOT_DEFINED', $images_dir)); } elseif (sizeof($themes_warnings) < sizeof($themes) || is_writable($themes_dir)) { $this->enable_editing = true; } return $warnings ? $this->mTmplFiller->fill('look_feel/skin_list/', 'warning_list.tpl.html', array('Warnings' => implode('', $warnings))) : ''; }