require 'cache.php';
fnxHtmlCache::readCache("[[random_string]]");
if (!fnxHtmlCache::hayCache()) {
    if (isset($_GET['up'])) {
        showIdea();
    } else {
        if (!empty($_GET['id']) && is_numeric($_GET['id'])) {
            showComments($rss, $_GET['id']);
        } else {
            if (isset($_GET['rss'])) {
                showRSS($rss, $_GET['lang']);
            }
        }
    }
}
fnxHtmlCache::savePage();
exit;
function showIdea()
{
    $str = getContentHttps("https://xifrat.pirata.cat/ideatorrent2json.php");
    //$str = file_get_contents("toString.json");
    print $str;
}
function showComments($rss, $id)
{
    $V = array();
    $rssStr = getContentHttps('https://xifrat.pirata.cat/ideatorrent/idea/' . $id . '/rss2');
    if ($rssStr != null) {
        $rss->loadRSS($rssStr);
        $rssItems = $rss->getItems();
        if (!isset($rssItems['rss'])) {
Exemple #2
0
 public static function override()
 {
     self::$override = true;
 }