0) : $userdata = array(); $userdata['ID'] = NULL; $userdata['user_login'] = sanitize_user($newuser_name); $userdata['user_login'] = apply_filters('pre_user_login', $userdata['user_login']); $userdata['user_nicename'] = sanitize_title($newuser_name); $userdata['user_nicename'] = apply_filters('pre_user_nicename', $userdata['user_nicename']); $userdata['display_name'] = $wpdb->escape($newuser_name); $newuser_id = wp_insert_user($userdata); if (is_numeric($newuser_id)) : update_option('feedwordpress_unfamiliar_author', $newuser_id); else : // TODO: Add some error detection and reporting endif; else : // TODO: Add some error reporting endif; else : update_option('feedwordpress_unfamiliar_author', $_REQUEST['unfamiliar_author']); endif; update_option('feedwordpress_unfamiliar_category', $_REQUEST['unfamiliar_category']); update_option('feedwordpress_syndicated_post_status', $_REQUEST['post_status']); update_option('feedwordpress_automatic_updates', ($_POST['automatic_updates']=='yes')); update_option('feedwordpress_freshness', ($_POST['freshness_interval']*60)); // Categories $cats = array(); if (isset($_POST['post_category'])) : $cats = array(); foreach ($_POST['post_category'] as $cat_id) : $cats[] = '{#'.$cat_id.'}'; endforeach; endif; if (!empty($cats)) : update_option('feedwordpress_syndication_cats', implode("\n", $cats)); else : delete_option('feedwordpress_syndication_cats'); endif; if (isset($_REQUEST['comment_status']) and ($_REQUEST['comment_status'] == 'open')) : update_option('feedwordpress_syndicated_comment_status', 'open'); else : update_option('feedwordpress_syndicated_comment_status', 'closed'); endif; if (isset($_REQUEST['ping_status']) and ($_REQUEST['ping_status'] == 'open')) : update_option('feedwordpress_syndicated_ping_status', 'open'); else : update_option('feedwordpress_syndicated_ping_status', 'closed'); endif; if (isset($_REQUEST['hardcode_name']) and ($_REQUEST['hardcode_name'] == 'no')) : update_option('feedwordpress_hardcode_name', 'no'); else : update_option('feedwordpress_hardcode_name', 'yes'); endif; if (isset($_REQUEST['hardcode_description']) and ($_REQUEST['hardcode_description'] == 'no')) : update_option('feedwordpress_hardcode_description', 'no'); else : update_option('feedwordpress_hardcode_description', 'yes'); endif; if (isset($_REQUEST['hardcode_url']) and ($_REQUEST['hardcode_url'] == 'no')) : update_option('feedwordpress_hardcode_url', 'no'); else : update_option('feedwordpress_hardcode_url', 'yes'); endif; ?>