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 indians 2009mardig..> 30-Jul-2009 09:21 3.2M 2 poster girls & pro..> 31-Jul-2009 02:00 3.2M 3 poster girls fury ..> 30-Jul-2009 09:26 658K jack 505 hibernia ho..> 31-Jul-2009 02:26 3.3M