switch ($task) { case "save": rdRss::save($option); break; case "cancel": rdRss::cancel($option, $task, $id); break; case "apply": $id = rdRss::save($option, $task, 0); case "new": case "edit": case "editA": rdRss::edit($option, $task, $id); break; case "del": rdRss::del($option, $section, $task, $cid); break; case "publish": rdRss::changePublished($cid, 1, $option, $task); break; case "unpublish": rdRss::changePublished($cid, 0, $option, $task); break; case "list": default: rdRss::show($option, 'list'); break; } class rdRss { // ---------------------------------------------------------------