3
1
Back

If(ADD_IDS){ $article['content'] .= "
ID: " . $article['id']; } return $article; } function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query($query); $result_html = ''; } /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ } function rel2abs($rel, $base) { $rel = trim($rel); $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } /* absolute URL is ready! */ Assorted updates jesus and mo.

New Pull Request