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 - 222a 0309.pdf 16-Oct-2009 03:45 174K all slong the.pdf 15-Sep-2009 03:06 170K certific te in.pdf 15-Sep-2009 03:06 213K em0608.pdf 26-Aug-2011 14:35 207K em1307.pdf 26-Aug-2011 14:35 1.8M em1307a.pdf 26-Aug-2011 14:35 1.8M em1307b.pdf 13-Jul-2011 22:30 2.2M em2805a.pdf 30-Jun-2011 00:14 6.9M fur igation recipes.pdf 15-Sep-2009 03:06 373K letters from brussel..> 23-Apr-2012 13:33 2.6M more accomplished.pdf 09-Nov-2009 06:21 210K neJp n p.pdf 15-Sep-2009 03:06 78K ran’ickvlUe rarke tB..> 15-Sep-2009 03:06 202K weary take the.pdf 15-Sep-2009 03:06 40K your words fly.pdf 15-Sep-2009 03:06 104K