$ez->register($username, $password, $email); break; /* * START NEWS */ /* * START NEWS */ case 'addNews': $title = $_POST['title']; $body = $_POST['body']; $author = $_POST['author']; $category = $_POST['category']; $game = $_POST['game']; $published = $_POST['published']; $ez->addNews($title, $body, $author, $category, $game, $published); break; case 'editNews': $id = $_POST['id']; $title = $_POST['title']; $body = $_POST['body']; $author = $_POST['author']; $category = $_POST['category']; $game = $_POST['game']; $published = $_POST['published']; $ez->editNews($id, $title, $body, $author, $category, $game, $published); break; case 'unpublishPost': $id = $_POST['id']; $ez->unpublishPost($id); break;