function handleOption($option, $currentValue) { if ($option == 'Theme_colors') { $theme = basename(dirname(__FILE__)); $themeroot = SERVERPATH . "/themes/{$theme}/styles"; echo '<select id="Default_themeselect_colors" name="' . $option . '"' . ">\n"; generateListFromFiles($currentValue, $themeroot, '.css'); echo "</select>\n"; } }
function handleOption($option, $currentValue) { switch ($option) { case 'Theme_colors': $theme = basename(dirname(__FILE__)); $themeroot = SERVERPATH . "/themes/{$theme}/styles"; echo '<select id="themeselect" name="' . $option . '"' . ">\n"; generateListFromFiles($currentValue, $themeroot, '.css'); echo "</select>\n"; break; case 'Graphic_logo': $gallery = new Gallery(); $theme = $gallery->getCurrentTheme(); $themeroot = SERVERPATH . "/themes/{$theme}/images"; echo '<select id="themeselect" name="' . $option . '"' . ">\n"; echo '<option></option>'; generateListFromFiles($currentValue, $themeroot, '.png'); echo "</select>\n"; break; } }
function handleOption($option, $currentValue) { global $themecolors; switch ($option) { case 'Theme_colors': echo '<select id="EF_themeselect_colors" name="' . $option . '"' . ">\n"; generateListFromArray(array($currentValue), $themecolors, false, false); echo "</select>\n"; break; case 'effervescence_menu': $menusets = array($currentValue => $currentValue); echo '<select id="EF_menuset" name="effervescence_menu"'; if (function_exists('printCustomMenu')) { $result = query_full_array("SELECT DISTINCT menuset FROM " . prefix('menu') . " ORDER BY menuset"); foreach ($result as $set) { $menusets[$set['menuset']] = $set['menuset']; } } else { echo ' disabled="disabled"'; } echo ">\n"; echo '<option value="" style="background-color:LightGray">' . gettext('*standard menu') . '</option>'; generateListFromArray(array($currentValue), $menusets, false, false); echo "</select>\n"; break; case 'Graphic_logo': ?> <select id="EF_themeselect_logo" name="Graphic_logo"> <option value="" style="background-color:LightGray"><?php echo gettext('*no logo selected'); ?> </option>'; <option value="*"<?php if ($currentValue == '*') { echo ' selected="selected"'; } ?> ><?php echo gettext('Effervescence'); ?> </option>'; <?php generateListFromFiles($currentValue, SERVERPATH . '/' . UPLOAD_FOLDER . '/images', '.png'); ?> </select> <?php break; } }
$filelist = safe_glob(SERVERPATH . "/" . BACKUPFOLDER . '/*.zdb'); if (count($filelist) <= 0) { echo gettext('You have not yet created a backup set.'); } else { ?> <form name="restore_gallery" action=""> <?php XSRFToken('backup'); ?> <?php echo gettext('Select the database restore file:'); ?> <br /> <select id="backupfile" name="backupfile"> <?php generateListFromFiles('', SERVERPATH . "/" . BACKUPFOLDER, '.zdb', true); ?> </select> <input type="hidden" name="restore" value="true" /> <div class="buttons pad_button" id="dbrestore"> <button class="fixedwidth tooltip" type="submit" title="<?php echo gettext("Restore the tables in your database from a previous backup."); ?> "> <img src="<?php echo WEBPATH . '/' . ZENFOLDER; ?> /images/redo.png" alt="" /> <?php echo gettext("Restore the Database"); ?> </button>
function handleOption($option, $currentValue) { if ($option == "zpbase_pnglogo") { ?> <select id="zpbase_pnglogo" name="zpbase_pnglogo"> <option value="" style="background-color:LightGray"><?php echo gettext('*Use Gallery Name Text'); ?> </option>'; <?php zp_apply_filter('theme_head'); generateListFromFiles($currentValue, SERVERPATH . '/' . UPLOAD_FOLDER, ''); ?> </select> <?php } if ($option == "zpbase_bg") { ?> <select id="zpbase_bg" name="zpbase_bg"> <option value="" style="background-color:LightGray"><?php echo gettext('* no bg image'); ?> </option>'; <?php zp_apply_filter('theme_head'); generateListFromFiles($currentValue, SERVERPATH . '/' . UPLOAD_FOLDER, ''); ?> </select> <?php } }
<td><?php echo gettext("Email the Admin when new comments are posted"); ?> </td> </tr> <!-- SPAM filter options --> <tr> <td><?php echo gettext("Spam filter:"); ?> </td> <td><select id="spam_filter" name="spam_filter"> <?php $currentValue = getOption('spam_filter'); $pluginroot = SERVERPATH . "/" . ZENFOLDER . "/plugins/spamfilters"; generateListFromFiles($currentValue, $pluginroot, '.php'); ?> </select></td> <td><?php echo gettext("The SPAM filter plug-in you wish to use to check comments for SPAM"); ?> </td> </tr> <?php /* procss filter based options here */ if (!(false === ($requirePath = getPlugin('spamfilters/' . getOption('spam_filter') . '.php', false)))) { require_once $requirePath; $optionHandler = new SpamFilter(); customOptions($optionHandler, " - "); } ?>