3
1
Back

== '?') { return $base.$rel; } extract(parse_url($base)); $path = ''; } /* absolute URL */ $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! */ Assorted updates 0d3d72c49e606725216a5a9a4217e6c039d5a574 77735c00cc3285131373f5cfc61b82eab5963d12 Update README.md 2015-02-23 04:37:33 -08:00 It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // slightly complicated; the link is to collect findings from researching other.

New Pull Request