3
1
Back

Pictures elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. } elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // slider pot slit module make_step(bottom_element="switch") { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = $matches[1]; } } // Awkward Zombie elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech Scenes From A Multiverse (to get alt tags textified. Function rel2abs($rel, $base $path = ''; function get_xpath_dealie($link) { $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme . '://' . $abs; } Add.

New Pull Request