* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ // Get the Action String $request = @$_POST['action']; // Require the SimpleMash API require_once 'simplemash.class.php'; // Instatiate the SimpleMash API $fg = new SimpleMash(); // Switch case for the API Actions switch ($request) { case 'checkfeed': $fg->simplemash_ajax_checkfeed($_POST['url']); break; case 'previewfeed': $fg->simplemash_ajax_previewfeed($_POST['url'], $_POST['filter']); break; case 'addfeed': $fg->simplemash_ajax_addfeed($_POST['url'], $_POST['title'], $_POST['filter'], $_POST['category'], $_POST['automatic'], $_POST['source'], $_POST['gather'], $_POST['frequency'], $_POST['keep'], @$_POST['addCategory'], @$_POST['addCategoryXML']); break; case 'fetchItem': $fg->simplemash_ajax_fetchItem($_POST['id']); break; case 'saveItem': $fg->simplemash_ajax_saveItem($_POST['id']); break; case 'deleteItem': echo $fg->simplemash_ajax_deleteItem($_POST['id']); break; case 'cleanEntries': echo $fg->simplemash_ajax_cleanentries();