tag. %DIR is replaced with the directory path. // for instance: // $titleformat = "antisleep: %DIR"; $titleformat = "three words %DIR"; //======================================================================= // (end of config) //======================================================================= $uri = urldecode($_SERVER['REQUEST_URI']); $uri = preg_replace("/\/ *$/", "", $uri); $uri = preg_replace("/\?.*$/", "", $uri); $titletext = str_replace("%DIR", $uri, $titleformat); // this is hacky, but in almost every situation there's no real harm. // it just might fail if you're doing something funky with directory mappings. $readmetext = ""; $pathtext = ""; $readmefile = $_SERVER["DOCUMENT_ROOT"] . $uri . "/readme.html"; if ($show_readme && file_exists($readmefile)) { $readmetext = "
Name Last modified Size Description
Parent Directory - 2 aussie cowboys 200..> 31-Jul-2009 06:23 2.2M 2 calvin klyne boys2..> 31-Jul-2009 06:25 1.7M 2 poster girls & gam..> 31-Jul-2009 06:28 2.4M 2 promoters fury lau..> 31-Jul-2009 06:32 2.8M Andi & (Georg) ACU.jpg 31-Jul-2009 06:33 2.8M Emma @ tooth gallery..> 31-Jul-2009 06:43 3.4M dick tracey fury lau..> 31-Jul-2009 06:38 2.0M emmy black & white v..> 31-Jul-2009 06:47 1.6M emmy red dress.jpg 31-Jul-2009 06:50 3.0M glass wall @ carriag..> 31-Jul-2009 06:53 3.9M gretchen looks back ..> 31-Jul-2009 06:57 1.4M gretchen with paraso..> 31-Jul-2009 07:03 2.6M poster girl &gamer f..> 31-Jul-2009 07:05 2.4M