$plugin_description = gettext("Debugging aids."); $plugin_author = "Stephen Billard (sbillard)"; $option_interface = 'debug'; zp_register_filter('admin_tabs', 'debug::tabs'); zp_register_filter('admin_utilities_buttons', 'debug::button'); if (OFFSET_PATH == 2) { if (strpos(getOption('markRelease_state'), '-DEBUG') !== false) { $version = debug::version(false); debug::updateVersion($version); } } else { if (isset($_REQUEST['markRelease'])) { XSRFdefender('markRelease'); $version = debug::version($_REQUEST['markRelease'] == 'released'); setOption('markRelease_state', $version); debug::updateVersion($version); header('location:' . FULLWEBPATH . '/' . ZENFOLDER . '/admin.php'); exitZP(); } } class debug { function __construct() { if (OFFSET_PATH == 2) { setOptionDefault('debug_mark_404', true); } } function getOptionsSupported() { $options = array(gettext('Debuging options') => array('key' => 'galleryArticles_items', 'type' => OPTION_TYPE_CHECKBOX_ARRAY, 'order' => 1, 'checkboxes' => array('404' => 'debug_mark_404', 'ERROR' => 'debug_mark_ERROR', 'EXIF' => 'debug_mark_EXIF', 'EXPLAIN_SELECTS' => 'debug_mark_EXPLAIN_SELECTS', 'FILTERS' => 'debug_mark_FILTERS', 'IMAGE' => 'debug_mark_IMAGE', 'LOCALE' => 'debug_mark_LOCALE', 'LOGIN' => 'debug_mark_LOGIN', 'PLUGINS' => 'debug_mark_PLUGINS'), 'desc' => gettext('Select the debug options to enable.')));