3
1
Back

I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' ' ); } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // Girls with Slingshots $entries = $xpath->query($query); $result_html = ''; function rel2abs($rel, $base) { $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } } if(ADD_IDS){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } //Sites that provide images and just need alt tags if both exist elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] = $doc->saveXML(); // Questionable Content (cleanup v1.0 Go to file.

New Pull Request