diff --git a/files.php b/files.php
index 1b8effa..da619d1 100644
--- a/files.php
+++ b/files.php
@@ -53,8 +53,8 @@ function fileManager_dir($directory, $return_link, $first_call=true) {
$fileAtts = "";
if ($serverType=="Linux") {
- $chmodInfo = substr(sprintf('%o', fileperms($link)), -4);
- $fileAtts = ''.$chmodInfo.'';
+ $chmodInfo = substr(sprintf('%o', fileperms($link)), -3);
+ $fileAtts = ''.$chmodInfo.'';
}
$fileManager = "
";
$fileManager .= "- / [ROOT] ".$fileAtts."";
@@ -88,8 +88,8 @@ function fileManager_dir($directory, $return_link, $first_call=true) {
$fileAtts = "";
if ($serverType=="Linux") {
- $chmodInfo = substr(sprintf('%o', fileperms($link)), -4);
- $fileAtts = ''.$chmodInfo.'';
+ $chmodInfo = substr(sprintf('%o', fileperms($link)), -3);
+ $fileAtts = ''.$chmodInfo.'';
}
if ($_SESSION['userLevel'] == 10 || ($_SESSION['userLevel'] < 10 && $restrictedFile==false)) {
$fileManager .= "
- " . htmlspecialchars($this_file) . " ".$fileAtts."";
@@ -117,8 +117,8 @@ function fileManager_dir($directory, $return_link, $first_call=true) {
if ($_SESSION['userLevel'] == 10 || ($_SESSION['userLevel'] < 10 && $restrictedFile==false)) {
$fileAtts = "";
if ($serverType=="Linux") {
- $chmodInfo = substr(sprintf('%o', fileperms($link)), -4);
- $fileAtts = ''.$chmodInfo.'';
+ $chmodInfo = substr(sprintf('%o', fileperms($link)), -3);
+ $fileAtts = ''.$chmodInfo.'';
}
$fileManager .= "
- " . htmlspecialchars($this_file) . " ".$fileAtts."
";
} else {