3
1
Back

Front, back How to use the ARTICLE_FILTER hook. } function hook_render_article($article) { return 2; } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; $n > 0; $abs = preg_replace($re, '/', $abs, -1, $n)) { } module shaft_hole() { { // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, &$article, $base_url=NULL) { function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme.'://'.$abs; } function get_content($link.

New Pull Request