- $public_calls = array("globalUpdateFeeds", "rss", "getUnread", "getProfiles", "share",
- "fbexport", "logout", "pubsub");
-
- if (array_search($op, $public_calls) !== false) {
-
- handle_public_request($link, $op);
- return;
-
- } else if (!($_SESSION["uid"] && validate_session($link))) {
- if ($op == 'pref-feeds' && $method == 'add') {
- header("Content-Type: text/html");
- login_sequence($link);
- render_login_form($link);
- } else {
- header("Content-Type: text/plain");
- print json_encode(array("error" => array("code" => 6)));
- }
- return;
- }
-