/** * Function getRssFeed * * Returns an array with users rssFeed * * Example: * getRssFeed ( 15 ) returns 15 latest entrys in users rss feed defaults at 2 */ public function getRssFeed($amount = 1) { return RSSHandler::getRssAsArray($this->getRssUrl(), $amount); }
<?php if (!defined("INIT")) { include $_SERVER["DOCUMENT_ROOT"] . "/php/init.php"; } /* if($ch = curl_init()){ echo "curl init success"; curl_setopt($ch, CURLOPT_URL, "http://mabra.com/feed"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); echo $output; }else{ echo "curl falure"; } */ echo "start of cron via web"; RSSHandler::refreshCache();