3
1
Back

$this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] .= "
" . $msg . ""; } } //noop } // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'twolumps.net/d/') .

New Pull Request