<?php /************************************************** Coppermine 1.5.x Plugin - thumb_rotate ************************************************* Copyright (c) 2010 Timos-Welt (www.timos-welt.de) ************************************************* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. ******************************************** $HeadURL$ $Revision$ $LastChangedBy$ $Date$ **************************************************/ // Initialize language and icons require_once './plugins/thumb_rotate/init.inc.php'; $thumb_rotate_init_array = thumb_rotate_initialize(); $lang_plugin_thumb_rotate = $thumb_rotate_init_array['language']; $thumb_rotate_icon_array = $thumb_rotate_init_array['icon']; // Configuration pageheader($lang_plugin_thumb_rotate['config']); thumb_rotate_configure(); pagefooter(); die;
function thumb_rotate_cleanup($action) { global $CONFIG, $lang_plugin_thumb_rotate, $lang_common, $thumb_rotate_icon_array; // Initialize language and icons require_once './plugins/thumb_rotate/init.inc.php'; $thumb_rotate_init_array = thumb_rotate_initialize(); $lang_plugin_thumb_rotate = $thumb_rotate_init_array['language']; $thumb_rotate_icon_array = $thumb_rotate_init_array['icon']; $superCage = Inspekt::makeSuperCage(); $cleanup = $superCage->server->getEscaped('REQUEST_URI'); if ($action === 1) { echo <<<EOT <form action="{$cleanup}" method="post"> EOT; starttable('100%', '', 2); echo <<<EOT <tr> <td class="tableb"> {$lang_plugin_thumb_rotate['config']} </td> <td class="tableb"> <input type="checkbox" class="checkbox" name="drop" id="drop_yes" value="1" /> <label for="drop_yes" class="clickable_option">{$lang_plugin_thumb_rotate['remove_settings']}</label> </td> </tr> \t\t\t<tr> <td class="tableb tableb_alternate"> {$lang_plugin_thumb_rotate['cache']} </td> <td class="tableb tableb_alternate"> <input type="checkbox" name="cache" id="cache" class="checkbox" value="1" checked="checked" /> \t\t\t\t\t<label for="cache" class="clickable_option">{$lang_plugin_thumb_rotate['empty_cache']}</label> </td> </tr> <tr> <td class="tablef"> \t\t\t\t</td> \t\t\t\t<td class="tablef"> <button type="submit" class="button" name="submit" value="{$lang_common['go']}">{$thumb_rotate_icon_array['ok']}{$lang_common['go']}</button> </td> </tr> EOT; endtable(); echo <<<EOT </form> EOT; } }