3
1
Back

Get what game it's about //and sometimes necessary for old fogeys like me to get what game it's about $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites // Gunnerkrigg Court elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL.

New Pull Request