Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert image error in filebrowser.php
#3
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>';
                }
            }
My Github Repos: Github
Website: DigiMute
Reply


Messages In This Thread
Insert image error in filebrowser.php - by n00dles101 - 2011-06-16, 08:36:16
Insert image error in filebrowser.php - by mvlcek - 2011-06-16, 17:12:16



Users browsing this thread: 1 Guest(s)