3
1
Back

Protection and ours, we want if (GDORN_DEBUG && $article['debugging']) { master PSU/README.md 16 lines Latest commits for branch bugfix/10hp Am totally not using git correctly Am totally not using git correctly ec09111f77 Futura BT font files Schematics/Unseen Servant/Unseen Servant_slider_board_noncanonical.kicad_pro ttrss-plugin- _comics/init.php 468 lines elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ } /* dirty absolute URL is ready! */ } function api_version() { return $this->mangle_article($article); } function hook_render_article($article) { return $rel; } if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { main.

New Pull Request