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 = "
$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  -
[   ]01_new_york_city_papermill.mp32009-06-07 21:32 14M
[   ]02_mulch.mp32009-06-07 21:28 15M
[   ]03_production_line.mp32009-06-07 21:24 10M
[   ]battle_on_the_sacred_mount.mp32009-09-17 22:44 5.8M
[   ]charukeshi.mp32009-09-17 23:11 3.6M
[   ]daryls_production_line.mp32009-06-09 21:55 10M
[   ]hurry_up.mp32009-08-08 08:32 3.4M
[   ]sound_on_sound.mp32009-09-17 23:32 12M
[   ]the_games_we_play.mp32009-08-08 08:30 3.3M
[   ]the_stutter_effect.mp32009-08-08 08:31 3.3M
[   ]thors_hammer_take1.mp32010-06-15 08:35 26M
[   ]thors_hammer_take2.mp32010-06-15 08:38 19M
[   ]three.mp32009-09-17 23:19 4.3M
[   ]two.mp32009-09-17 23:13 3.4M
Indices 1.0