ID); if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete'): $post_id = $_REQUEST['pid']; wp_delete_post($post_id); endif; endif; if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit'): //Edit listing $post_id = $_REQUEST['pid']; edit_listing($post_id); endif; if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'review'): //View reviews listing_reviews(); endif; if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'profile'): edit_profile(); endif; if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'subscribe'): user_subscription(); endif; if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'expired')|| ($_REQUEST['action'] == 'free_renew')): if (isset($_REQUEST['d']) && $_REQUEST['d'] == 'del'): $post_id = $_REQUEST['pid']; wp_delete_post($post_id); endif; expired_listings(); endif; if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'renew')): renew_listing(); endif; ?>