3
1
Back

$abs=preg_replace($re, '/', $abs, -1, $n)) { } /* absolute URL */ /* 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 rel2abs($rel, $base) { if (anchor_hole=="right" || anchor_hole=="both") { text(string, size, halign=halign, font=font); // draw a horizontal wall (across the panel // h .

New Pull Request