3
1
Back

Get_xpath_dealie($link) { $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base) { if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); } Some comics supported Some comics supported d6ebbf1c1b Collect other files not yet.

New Pull Request