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 = "
" . file_get_contents($readmefile) . "
"; } else { // If no readme, show URI. $pathtext = "
$uri
"; } ?> <?=$titletext?>

      Name                    Last modified      Size  Description
Parent Directory - bourke st from ridge..> 31-Jul-2009 05:00 6.1M car in speckled room..> 31-Jul-2009 05:03 3.4M feet ascending stair..> 31-Jul-2009 05:07 16M floodlit door wisema..> 31-Jul-2009 05:15 3.8M iron beam.jpg 31-Jul-2009 05:18 4.3M man with ball bourke..> 31-Jul-2009 05:22 5.0M red pole dunlop slaz..> 31-Jul-2009 05:26 3.8M red window nobbs st.jpg 31-Jul-2009 05:28 3.9M room with miror and ..> 31-Jul-2009 05:29 706K speckled room dunlop..> 31-Jul-2009 05:41 4.0M speckled room dunlop..> 31-Jul-2009 05:42 3.8M speckled sky bourke ..> 31-Jul-2009 05:39 5.6M toilets @ dunlopslaz..> 31-Jul-2009 06:00 3.0M town hall clock towe..> 31-Jul-2009 06:00 3.0M white ball in spotli..> 31-Jul-2009 06:07 5.2M