3
1
Back

With '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme.'://'.$abs; } function mangle_article($article) { Added BCN, Something Positive // Something Positive elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMXPath($doc); } function rel2abs($rel, $base) { function about() { return array(0.1, return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } function mangle_article($article) { if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debug'] as $msg) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'comics')]", $article); } // Poly In Pictures elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and.

New Pull Request