3
1
Back

0]; } // Joy of Tech elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
$orig_content
"; } // } // Poly In Pictures elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // The Oatmeal $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //no-op function rel2abs($rel, $base) { if (preg_match("@.*(

New Pull Request