tag. %DIR is replaced with the directory path.
// for instance:
// $titleformat = "antisleep: %DIR";
$titleformat = "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 = "";
$logolink = "";
//=======================================================================
// (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 = "
| Name | Last modified | Size | |
|---|---|---|---|
| Parent Directory | - | ||
| demo/ | 2009-07-17 16:43 | - | |
| eastern_wind.mp3 | 2009-08-12 09:52 | 2.9M | |
| elctronic_prison_jam.mp3 | 2009-08-12 09:52 | 5.8M | |
| ice_storm.mp3 | 2009-08-12 09:52 | 2.4M | |
| jungle_funk.mp3 | 2009-08-12 09:52 | 4.7M | |
| nitin_lives.mp3 | 2009-08-12 09:53 | 2.8M | |
| northern_invasion.mp3 | 2009-08-12 09:53 | 3.9M | |
| prison_jam.mp3 | 2009-08-12 09:53 | 6.1M | |
| the_death_of_ashman_walcott.mp3 | 2009-08-12 09:53 | 3.4M | |
| this_is_not_rock_and_roll.mp3 | 2009-08-12 09:53 | 2.4M | |
| eastern_wind_rmx.mp3 | 2010-09-04 15:27 | 5.3M |