Exemplo n.º 1
0
 public function getAvailableHosts(RSSFilter $RSF)
 {
     $available = $RSF->getAvailableHosts();
     $hosts = array();
     #if($RSF->A("RSSFilterProviderRapidshare") == "1" AND in_array("Rapidshare.com", $available)) $hosts["Rapidshare.com"] = "Rapidshare";
     #if($RSF->A("RSSFilterProviderNetload") == "1" AND in_array("Netload", $available)) $hosts["Netload.com"] = "netload";
     if ($RSF->A("RSSFilterProviderUploaded") == "1" and in_array("Uploaded", $available)) {
         $hosts["Uploaded.to"] = "uploaded";
     }
     return $hosts;
 }
Exemplo n.º 2
0
    } else {
        $result = $Adapter->download($RSF, $_GET["getLink"], $_GET["fromPage"]);
        $dled = $_GET["getLink"];
    }
    if ($result !== true) {
        $ILink = new HTMLInput("manualDL");
        $ILink->id("manualDL");
        $ILink->style("border:1px solid grey;width:400px;padding:2px;");
        $IGo = new HTMLInput("go", "button", "Go");
        $IGo->style("border:1px solid grey;margin-left:10px;padding:2px;");
        $IGo->onclick("if(document.getElementById('manualDL').value != '') document.location.href='?RSSFilterID={$_GET['RSSFilterID']}&manualDL='+document.getElementById('manualDL').value; else alert('Please input a link!');");
        $html = emoFatalError($result[0] . "</h1><p>Look for <b>" . basename($dled) . "</b></p><p>Please input the link here: " . $ILink . $IGo . "</p><h1>", $result[1], "trinityDB automatic downloader", false, false);
        $html = str_replace("<!-- MORE SPACE -->", "<iframe src=\"{$_GET['fromPage']}\" style=\"width:100%;border:0px;height:550px;margin-top:5px;\"></iframe>", $html);
        die($html);
    } else {
        echo "<!DOCTYPE html>\n\t\t<html lang=\"en\">\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\" />\n\t\t\t\t<title>trinityDB automatic downloader</title>" . RSSFilter::getStyle() . "\n\t\t\t</head>\n\t\t\t<body>\n\t\t\t\t<div class=\"backgroundColor0\">\n\t\t\t\t\t<h1>Download OK</h1>\n\t\t\t\t\t<p>" . basename($dled) . "</p>\n\t\t\t\t\t<p>From <a href=\"{$_GET['fromPage']}\">{$_GET['fromPage']}</a></p>\n\t\t\t\t</div>\n\t\t\t</body>\n\t\t</html>";
    }
    exit;
}
$tvdbUnavailable = false;
$tvdb = new thetvdbcomAdapter();
$nonupdated = 0;
try {
    $nonupdated = $tvdb->update();
} catch (Exception $ex) {
    $tvdbUnavailable = $ex->getMessage();
}
#print_r($_SERVER);
$link = "http" . (strpos($_SERVER["SERVER_PROTOCOL"], "https") ? "s" : "") . "://" . $_SERVER["HTTP_HOST"] . str_replace("/trinityDB/RSSFilter/FilteredFeed.php", "", $_SERVER["SCRIPT_NAME"]);
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
Exemplo n.º 3
0
 public function checkRSS($newFiles = null)
 {
     $Episodes = $this->checkAllEpisodes(true, $newFiles);
     $RF = new RSSFilter($this->A("RSSFilterID"));
     return $RF->filterFor($this, $Episodes);
 }