1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-11 10:34:00 +02:00

misterunknown: fixed problems with openbasedir

This commit is contained in:
Marco Dickert
2015-06-19 15:04:06 +02:00
parent 505d44960d
commit 4d34cdb9fc

View File

@@ -100,6 +100,7 @@ function getFiles($dir) {
elseif(($result==".htaccess" || $result==".htpasswd") && $config["showhtdocs"]!=1) {} // check if we are granted to see .ht-docs
elseif($result==".") {} // the folder itself will also be invisible
elseif($result!=".." && substr($result,0,1)=="." && $config["showhiddenfiles"]!=1) {} // eventually hide hidden files, if we should not see them
elseif(!@is_readable($result)) {}
else { // thats are the files we should see
$item = array();
$i = 0;