diff --git a/files.php b/files.php index b357151..4fa9550 100644 --- a/files.php +++ b/files.php @@ -53,15 +53,8 @@ function fileManager_dir($directory, $return_link, $first_call=true) { $fileAtts = ""; if ($serverType=="Linux") { - - //$ownerInfo = posix_getpwuid(fileowner($link)); - $ownerInfo = "ME"; - $chmodInfo = substr(sprintf('%o', fileperms($link)), -4); - - if ($ownerInfo!="nobody"&&(substr($chmodInfo, -1)!=2&&substr($chmodInfo, -1)!=3&&substr($chmodInfo, -1)!=6&&substr($chmodInfo, -1)!=7)) { - $fileAtts = ""; - } + $fileAtts = ''.$chmodInfo.''; } $fileManager = "