if (substr($result[2], 0, 1) == "2") { error_log("DEBUG: Successfully unsubscribed to topic {$remote_user_feed} using hubsub {$hub_url}", 0); } error_log("DEBUG: Server answer: " . join(' ', $result), 0); //print "<a href='$remote_user'>$remote_user</a> was deleted from your following list and your subscription was removed"; SMOBTemplate::footer(); } header("Location: " . SMOB_ROOT . "{$t}s"); } elseif ($t == 'rss_owner') { header("Content-type: text/xml"); //$tweet = new SMOBFeed(); //$tweet->rss(); error_log("DEBUG: rssfilepath: " . FEED_FILE_PATH); if (!file_exists(FEED_FILE_PATH)) { error_log("DEBUG: initial RSS file does not exists", 0); SMOBTools::initial_rss_file(); } $rssfile = fopen(FEED_FILE_PATH, 'r'); $rss = fread($rssfile, filesize(FEED_FILE_PATH)); fclose($rssfile); echo $rss; } elseif ($t == 'rssrdf_owner') { header("Content-type: text/xml"); $tweet = new SMOBFeed(); $tweet->rssrdf(); } elseif ($t == 'sparql') { if ($_POST) { SMOBTools::checkAccess($_POST); } $ep = ARC2::getStoreEndpoint(SMOBTools::arc_config()); $ep->go();