Labels Milestones
Back/ Ice / Iron / Stone / Force Wish Cleric Blade Barrier - VCO? Cure Light Wounds / etc / Heal - Compressor / Limiter Raise Dead / Resurrection - ADSR? True Seeing Druid Barkskin Pass Plant / Transport Via Plants Speak With Animals / Plants Wall of Thorns Delete Page Deleting the wiki page "Modules Index" cannot be undone. Continue? Define('ADD_IDS', True); class _comics extends Plugin { function get_img_tags($xpath, $query, $article, $base_url=NULL) { function about() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); ' ' ); } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } // $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text function get_content($link) { /** * Use this if you are implicitly allowing your code to be even for the purpose of protecting.
New Pull Request