tag. %DIR is replaced with the directory path. // for instance: // $titleformat = "antisleep: %DIR"; $titleformat = "F.A.T. -- index of %DIR"; // logoimageurl, logolink // If these are provided, the provided logo URL will be inserted as an tag // at the top of the directory listing. If logolink is non-empty, the logo image // will link to the provided URL. // for instance: // $logoimageurl = "/images/titlebar-small.gif"; // $logolink = "http://antisleep.com/"; $logoimageurl = "http://fffff.at/images/fffffat_banner_2.jpg"; $logolink = "http://fffff.at/"; //======================================================================= // (end of config) //======================================================================= if ($use_js) { $cssfile = "style-js.css"; $jstext = file_get_contents("script.js"); $pcjstext = "document.getElementById('pagecontainer').style.display = 'none';\n"; } else { $cssfile = "style-nojs.css"; $jstext = ""; $pcjstext = ""; } $csstext = file_get_contents($cssfile); $uri = urldecode($_SERVER['REQUEST_URI']); $uri = preg_replace("/\/ *$/", "", $uri); $uri = preg_replace("/\?.*$/", "", $uri); $titletext = str_replace("%DIR", $uri, $titleformat); $logohtml = ""; if ($logoimageurl != "") { $logohtml = ""; if ($logolink != "") { $logohtml = "" . $logohtml . ""; } $logohtml = "
$logohtml
"; } // 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?>
[ICO]NameLast modifiedSize
[DIR]Parent Directory  -
[   ]01-RuffSqwad-Gangster beats (Instrumental).mp310-Dec-2007 03:09 2.5M
[   ]02-RuffSqwad-ChineseBeat.mp310-Dec-2007 00:48 2.7M
[   ]03-RuffSqwad-XTC-Gone.mp310-Dec-2007 02:17 3.3M
[   ]04-RuffSqwad-TwistedRiddim.mp310-Dec-2007 00:59 2.9M
[   ]05-RuffSqwad-XTC-Jennifer.mp310-Dec-2007 00:25 7.2M
[   ]06-RuffSqwad-FedsOnDaCase.mp310-Dec-2007 03:09 3.2M
[   ]07-RuffSqwad - Knightrider.mp310-Dec-2007 02:41 2.3M
[   ]08-RuffSqwad-Forwardish.mp310-Dec-2007 00:48 3.2M
[   ]09-RuffSqwad-XTC-JumpUp.mp310-Dec-2007 00:28 5.5M
[   ]10-RuffSqwad-Move2Dis.mp310-Dec-2007 00:59 5.9M
[   ]11-RuffSqwad-XTC-CanYouHearMeNow.mp310-Dec-2007 02:21 2.4M
[   ]12-RuffSqwad - Swish Instrumental.mp310-Dec-2007 04:04 3.2M
[   ]13-RuffSqwad - R U Double F (Instrumental).mp310-Dec-2007 08:36 4.0M
Indices 1.0