Mercurial > dirlist-php
comparison index.php @ 34:f761177dc1d4
Remove error suppression.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 04 Nov 2014 10:55:32 +0900 |
parents | dc464717e028 |
children | 21132c7b6aaa |
comparison
equal
deleted
inserted
replaced
33:dc464717e028 | 34:f761177dc1d4 |
---|---|
25 header("Location: " . $uri . "/"); | 25 header("Location: " . $uri . "/"); |
26 } | 26 } |
27 | 27 |
28 if (http_response_code() !== 200) { exit; } | 28 if (http_response_code() !== 200) { exit; } |
29 | 29 |
30 $dir_handle = @opendir($dir); | 30 $dir_handle = opendir($dir); |
31 $files = array(); | 31 $files = array(); |
32 $dirs = array(); | 32 $dirs = array(); |
33 while (($file = readdir($dir_handle)) !== false) { | 33 while (($file = readdir($dir_handle)) !== false) { |
34 if ($file === "." || $file === "..") { continue; } | 34 if ($file === "." || $file === "..") { continue; } |
35 elseif (!(isset($_SERVER["DL_SHOWALL"]) && $_SERVER["DL_SHOWALL"] === "1") && substr($file, 0, 1) === ".") { continue; } | 35 elseif (!(isset($_SERVER["DL_SHOWALL"]) && $_SERVER["DL_SHOWALL"] === "1") && substr($file, 0, 1) === ".") { continue; } |