Labels Milestones
BackI Could Do (wtf image size? Elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query($query); $result_html = ''; } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme.'://'.$abs; } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { if ($doc === NULL) { if (preg_match("@.*(
- Vertex 6.34429 6.34429 4.79464.
- -0.781299 7.20554 facet normal 3.899954e-15.
- -7.62083 1.31386 facet normal 0.172853.