. * * * Author: Yu-Jie Lin * Creation Date: 2007-11-26T13:10:02+0800 */ function EROptions() { $options = bb_get_option('EROptions'); if (isset($_POST['manage'])) { switch($_POST['manage']) { case __('Deactivate Plugin', ER_DOMAIN): $plugin_file = dirname(bb_plugin_basename(__FILE__)) . '/EnhancedRegistration.php'; wp_redirect(str_replace('&', '&', bb_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", "deactivate-plugin_$plugin_file")) . '&by=plugin'); break; } } elseif (isset($_POST['UpdateOptions'])){ switch($_POST['UpdateOptions']) { case __('Save', ER_DOMAIN): $newOptions = array(); $hours = floor($_POST['autoDeleteUnactivatedOver']); if ($hours >= 0) $newOptions['autoDeleteUnactivatedOver'] = $hours; else echo '
', $hours, ' is not a valid number for deleting!
', __('Options have been updated!', ER_DOMAIN), '
' . __('Options have been reseted!', ER_DOMAIN) . '