'; echo "Location: $d->path
"; echo ''; while (false !== ($entry = $d->read())) { if($entry === '.') continue; $href = $p . $entry; if(is_file($req . $entry)) { $type = 'File'; } else { $href = add_single_trailing_fslash($href); $type = 'Directory'; } echo ""; } $d->close(); echo '
NameType
$entry$type
'; } function not_found_handler($req) { header('HTTP/1.1 404 Not Found'); echo '404

Requested resource could not be found

'; } return atropa_router(); ?>