3
1
Back

$this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { //also get the blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src, $base_url); foreach($attributes as $attrib_name => $node){ } function about() { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function rel2abs($rel, $base) { if ($rel[0]=='#' || $rel[0]=='?') { $path = ''; } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. * Possible fix would.

New Pull Request