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 - 3 IJV QJd.pdf 15-Sep-2009 03:09 232K Scan09-07-14 1239.pdf 15-Sep-2009 03:11 194K Scan09-07-22 1659.pdf 15-Sep-2009 03:11 244K Scan09-09-21 1749.pdf 21-Sep-2009 08:55 169K alright teach rne.pdf 15-Sep-2009 03:09 203K are you answering.pdf 15-Sep-2009 03:09 189K csj 4.pdf 15-Sep-2009 03:09 302K earn.pdf 15-Sep-2009 03:09 229K enjoyable.pdf 15-Sep-2009 03:10 164K enough reuse.pdf 15-Sep-2009 03:10 209K euatd eq 110.pdf 15-Sep-2009 03:10 379K isa sq ‘tjsu.pdf 15-Sep-2009 03:10 31K next door.pdf 15-Sep-2009 03:10 29K re taphor.pdf 15-Sep-2009 03:11 97K the recipient has.pdf 15-Sep-2009 03:11 141K way manifesto.pdf 15-Sep-2009 03:12 215K “ITt ut4i qou.pdf 15-Sep-2009 03:09 266K