public function checkUpdates() { $adapter = new thetvdbcomAdapter(); $adapter->update(true); }
$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 echo $link; ?> </link>