3
1
Back

$base $path = ''; foreach ($entries as $entry) { $article['content'] .= "
$orig_content
"; } // PhD Unknown elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } /* dirty absolute URL */ $abs = "$host$path/$rel"; function api_version() { return $base . $rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; $n > 0; $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } module make_step(bottom_element="switch") { // Dilbert elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content.

New Pull Request