3
1
Back

$this->get_xpath_dealie($article['link']); } elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // SBMC elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Three Panel Soul elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $xpath = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); // And get blog entry $article['content'] .= "
ID: " . $article['id']; } return $article; } /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(