} $options = query_full_array('SELECT LCASE(`name`) as name, `value` FROM ' . prefix('options') . ' WHERE `theme`="effervescence_plus"'); foreach ($options as $option) { setThemeOption($option['name'], $option['value'], NULL, 'effervescence+', true); } zpFunctions::removeDir(SERVERPATH . '/' . THEMEFOLDER . '/effervescence_plus'); } ?> <p> <?php $deprecate = false; $themes = array_keys($_zp_gallery->getThemes()); natcasesort($themes); echo gettext('Theme setup:') . '<br />'; foreach ($themes as $key => $theme) { if (protectedTheme($theme)) { unset($themes[$key]); } else { $deprecate = true; } ?> <span> <img src="<?php echo FULLWEBPATH . '/' . ZENFOLDER . '/setup/setup_themeOptions.php?theme=' . urlencode($theme) . $debug; ?> &from=<?php echo $from; ?> " title="<?php echo $theme; ?>
/** * Check if a theme is editable (ie not a bundled theme) * * @param $theme theme to check * @return bool * @since 1.3 */ function themeIsEditable($theme) { if (function_exists('readlink')) { $link = @readlink(SERVERPATH . '/' . THEMEFOLDER . '/' . $theme); } else { $link = ''; } if (empty($link) || str_replace('\\', '/', $link) == SERVERPATH . '/' . THEMEFOLDER . '/' . $theme) { return !protectedTheme($theme); } else { return false; } }
</h1> <?php if (isset($counter)) { ?> <div class="messagebox fade-message"> <h2><?php printf(ngettext('%s file updated', '%s files updated', $counter), $counter); ?> </h2> </div> <?php } $themes = $plugins = array(); foreach ($_zp_gallery->getThemes() as $theme => $data) { if (!protectedTheme($theme, true)) { $themes[] = $theme; } } $paths = getPluginFiles('*.php'); foreach ($paths as $plugin => $path) { if (strpos($path, USER_PLUGIN_FOLDER) !== false) { $p = file_get_contents($path); $i = strpos($p, '* @category'); $foreign = true; if (($key = $i) !== false) { $key = strtolower(trim(substr($p, $i + 11, strpos($p, "\n", $i) - $i - 11))); if ($key == 'package' || $key == 'zenphoto20tools') { $foreign = false; } }