2011-06-16, 08:36:16
This should sort that out for you. I'll add it to the SVN for the next release.
Code:
// get the file permissions.
if ($isUnixHost && defined('GSDEBUG')) {
$filePerms = substr(sprintf('%o', fileperms($path.$upload['name'])), -4);
if (function_exists('posix_getpwuid')){
$fileOwner = posix_getpwuid(fileowner($path.$upload['name']));
}
if (($filePerms) && isset($fileOwner['name'])){
echo '<td style="width:70px;text-align:right;"><span>'.$fileOwner['name'].'/'.$filePerms.'</span></td>';
}
}