$y){ $cp_topfilter[$x]=trim($y); } $cp_topfilter=array_unique($cp_topfilter); $cp_topfilter=array_filter($cp_topfilter, 'strlen'); } $cp_comment_points = (int)$_POST['cp_comment_points']; $cp_del_comment_points = (int)$_POST['cp_del_comment_points']; $cp_post_points = (int)$_POST['cp_post_points']; $cp_reg_points = (int)$_POST['cp_reg_points']; $cp_prefix = $_POST['cp_prefix']; $cp_suffix = $_POST['cp_suffix']; $cp_about_posts = (bool)$_POST['cp_about_posts']; $cp_about_comments = (bool)$_POST['cp_about_comments']; $cp_donation = (bool)$_POST['cp_donation']; update_option('cp_comment_points', $cp_comment_points); update_option('cp_del_comment_points', $cp_del_comment_points); update_option('cp_post_points', $cp_post_points); update_option('cp_reg_points', $cp_reg_points); update_option('cp_prefix', $cp_prefix); update_option('cp_suffix', $cp_suffix); update_option('cp_donation', $cp_donation); update_option('cp_topfilter', $cp_topfilter); // hook for modules to process submitted data do_action('cp_config_process'); echo '

'.__('Settings Updated','cp').'

'; } // prepares data for use in form if(count(get_option('cp_topfilter'))>0){ $cp_topfilter_text = implode(", ",(array)get_option('cp_topfilter')); } else { $cp_topfilter_text = ''; } if (get_option('cp_donation')) { $cp_donation_checked = " checked='checked'"; } else { $cp_donation_checked = ""; } if (get_option('cp_mypoints')) { $cp_mypoints_checked = " checked='checked'"; } else { $cp_mypoints_checked = ""; } ?>

CubePoints -