} function afc_form() { $options = get_option( 'afc_options' ); } function afc_admin_menu() { add_submenu_page('plugins.php', __('WordPress.com AFC Plugin'), __('AF Captcha'), 'manage_options', 'afc', 'afc_admin_page'); } function afc_preprocess_comment($comment) { if(!session_id())session_start(); if($_POST[captcha] && $_POST[captcha] == $_SESSION[captcha]){ unset($_SESSION[captcha]); return($comment); } else wp_die( __("Error: please drag the captcha.")); } function afc_admin_page() { global $plugin_page; $options = get_option( 'afc_options' ); if($_POST[afc_bc] && $_POST[afc_style]) { $options[afc_bc] = $_POST[afc_bc]; $options[afc_style] = $_POST[afc_style]; update_option( 'afc_options', $options ); echo "
Saved!
"; } ?>