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
[PARENTDIR]Parent Directory  -
[   ]07 Shallots.m4a2008-01-11 14:45 3.3M
[   ]1-20 Funky Axe.m4a2008-01-11 14:40 1.5M
[   ]10 Underneath It All.mp32008-01-11 14:39 4.3M
[   ]12 Mullein.m4a2008-01-11 14:44 4.3M
[   ]16 Eucalyptus.m4a2008-01-11 14:46 2.5M
[   ]GRL STORY - Evan.mp32007-12-20 18:51 80M
[   ]GRL STORY - James.mp32007-12-20 18:58 80M
[   ]GRL_DVD_STK.zip2007-12-21 14:05 92M
[   ]sholin_series_cream.mp32008-01-11 14:36 2.6M
Indices 1.0