$body = $_POST['body']; $author = $_POST['author']; $game = $_POST['game']; $categories = $_POST['categories']; $media = $_POST['media']; $ez_news->save_draft($title, $body, $author, $categories, $game, $media); break; case 'update-draft': $post_id = $_POST['post_id']; $title = $_POST['title']; $body = $_POST['body']; $author = $_POST['author']; $game = $_POST['game']; $categories = $_POST['categories']; $media = $_POST['media']; $ez_news->update_draft($post_id, $title, $body, $author, $categories, $game, $media); break; case 'publish-post': $post_id = $_POST['post_id']; $title = $_POST['title']; $body = $_POST['body']; $author = $_POST['author']; $game = $_POST['game']; $categories = $_POST['categories']; $media = $_POST['media']; $ez_news->publish_post($post_id, $title, $body, $author, $categories, $game, $media); break; case 'unpublish-post': $post_id = $_POST['post_id']; $ez_news->unpublish_post($post_id); break;