$result['result'][] = FeedC::getCount($_SESSION['userid']); $result['result'][] = FeedC::getRunningCount($_SESSION['userid']); } } } } break; case "set": if ($what == 'feed_status') { $result['result'] = FeedC::status($_POST['feedid'], $_POST['status'], $_POST['op']); } if ($what == 'tag') { $result['result'] = FeedC::tag($_POST['feedid'], $_POST['tagid'], $_POST['remove']); } else { if ($what == 'feed_favorite') { $result['result'] = FeedC::favorite($id); } else { if ($what == 'feed_share') { // login since we will modify things on the file system $ssh_connection = new Net_SSH2(CLUSTER_HOST); if (!$ssh_connection->login($_SESSION['username'], $_SESSION['password'])) { die('Login Failed'); } $result['result'] = FeedC::share($id, $result['userid'], $result['username'], $parameters, $ssh_connection); } else { if ($what == 'feed_archive') { $result['result'] = FeedC::archive($id); } else { if ($what == 'feed_cancel') { $ssh_connection = new Net_SSH2(CLUSTER_HOST); if (!$ssh_connection->login($_SESSION['username'], $_SESSION['password'])) {