Пример #1
0
 function showInfo($name, $language)
 {
     $Ad = new thetvdbcomAdapter();
     $info = $Ad->getInfo($name, $language);
     if ($info === null) {
         die("<p>Sorry, there is no information available for '{$name}({$language})'</p>");
     }
     BPS::setProperty("NewSeriesGUI", "loadBanner", str_replace("http://", "", $info->Banner));
     $B = new Button("save\nseries", "./trinityDB/Serien/Serien.png");
     $B->rmePCR("Serie", "-1", "newSeriesFromID", array("'{$info->Name}'", "'{$language}'", "'{$info->SeriesID}'"), "contentManager.loadFrame('contentLeft', 'Serie', transport.responseText);");
     #$B->style("float:right;");
     echo "\n\t\t\t<div style=\"margin-left:10px;width:765px;border-right-width:1px;border-right-style:solid;\" class=\"borderColor1\">\n\t\t\t\t{$B}\n\t\t\t\t<div style=\"height:20px;\"></div>\n\t\t\t\t<img src=\"" . DBImageGUI::imageLink("NewSeriesGUI", "loadBanner" . $info->SeriesID, "Banner") . "\" style=\"width:758px;height:140px;\" /><br />\n\t\t\t\t<p style=\"-moz-column-count: 3;-moz-column-gap: 1em;-moz-column-rule: 1px solid black;-webkit-column-count: 3;-webkit-column-gap: 1em;-webkit-column-rule: 1px solid black;\">" . $info->Overview . "</p>\n\t\t\t</div>";
 }
Пример #2
0
 private function getServerTime()
 {
     if (self::$serverTime != null) {
         return self::$serverTime;
     }
     $content = file_get_contents(self::$mirror . "/api/Updates.php?type=none");
     $serverTime = new SimpleXMLElement($content);
     self::$serverTime = $serverTime->Time . "";
     return self::$serverTime;
 }
Пример #3
0
 public function checkUpdates()
 {
     $adapter = new thetvdbcomAdapter();
     $adapter->update(true);
 }
Пример #4
0
        $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"?>';
?>

<rss version="2.0">
	<channel>
		<title>trinityDB filtered feed</title>
		<link><?php 
Пример #5
0
 public function downloadEpisodes($echo = true)
 {
     $adapter = new thetvdbcomAdapter();
     $adapter->download($this, $echo);
 }