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 - June Audrey Kath.jpg 31-Jul-2009 04:00 4.2M emma behind josh.jpg 31-Jul-2009 03:09 4.7M emma in front of pad..> 31-Jul-2009 03:13 2.6M emma max brenner pad..> 31-Jul-2009 03:14 5.5M jamie bradfield hwy.jpg 31-Jul-2009 03:56 3.0M josh taylor square.jpg 31-Jul-2009 03:57 4.2M lil 505 hibernia hou..> 31-Jul-2009 04:01 3.0M sam posture01.jpg 31-Jul-2009 04:07 2.2M verity behind josh.jpg 31-Jul-2009 04:10 4.7M woman with red top.jpg 31-Jul-2009 04:58 420K