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  -
[   ]424.jpg2009-09-15 08:27 175K
[   ]425.jpg2009-09-15 08:27 155K
[   ]428.jpg2009-09-15 08:27 149K
[   ]432.jpg2009-09-15 08:28 176K
[   ]436.jpg2009-09-15 08:28 136K
[   ]438.jpg2009-09-15 08:28 110K
[   ]439.jpg2009-09-15 08:28 109K
[   ]440.jpg2009-09-15 08:28 96K
[   ]443.jpg2009-09-15 08:28 153K
[   ]448.jpg2009-09-15 08:28 104K
[   ]451.jpg2009-09-15 08:28 184K
[   ]459.jpg2009-09-15 08:28 168K
[   ]460.jpg2009-09-15 08:28 163K
[   ]462.jpg2009-09-15 08:28 81K
[   ]469.jpg2009-09-15 08:28 98K
[   ]CIMG0083.JPG2009-09-15 08:28 363K
[   ]hat1.jpg2009-09-15 08:28 51K
[   ]hat2.jpg2009-09-15 08:28 46K
[   ]lingonier.jpg2009-09-15 08:28 86K
[   ]momsitar.jpg2009-09-15 08:28 107K
[   ]tour.avi2009-09-15 09:15 83M
Indices 1.0