3
1
Back

Questionable Content (cleanup) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Dead Philosophers elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // And get blog $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present foreach ($imgs as $img) { if ($title_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $attributes = $entry->attributes; $to_remove .

New Pull Request