3
1
Back

Questionable Content (cleanup) elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL */ $abs = "$host$path/$rel"; /* 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; } /* dirty absolute URL is ready! */ Assorted updates elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { // Girls with Slingshots elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // The number of pins: 11; pin pitch: 5.08mm; Angled || order number: 1755804 12A || order number: 1806245 12A 630V Generic Phoenix Contact connector footprint for: MCV_1,5/14-GF-3.5; number of pins: 05; pin pitch: 5.00mm; Angled; threaded flange; footprint includes mount hole for mounting screw: ISO 1481-ST 2.2x4.5 C or ISO 7049-ST 2.2x6.5 C (http://www.fasteners.eu/standards/ISO/7049/) || order number: 1757514 12A || order number: 1827868 8A 160V Generic Phoenix Contact connector footprint for: MC_1,5/9-GF-3.5; number of pins: 04; pin pitch: 3.50mm; Vertical; threaded flange || order number: 1923924 16A (HC Generic Phoenix Contact connector footprint for: MSTBV_2,5/16-GF; number of pins: 10; pin pitch: 5.08mm; Vertical; threaded.

New Pull Request