mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
added sqlfs and support for whatever sign the gid has
This commit is contained in:
parent
9c649da978
commit
2f1eb2d272
@ -215,6 +215,7 @@ function load_wrapper($url)
|
|||||||
break;
|
break;
|
||||||
case 'oldvfs':
|
case 'oldvfs':
|
||||||
case 'vfs':
|
case 'vfs':
|
||||||
|
case 'sqlfs':
|
||||||
if (!isset($GLOBALS['egw_info']))
|
if (!isset($GLOBALS['egw_info']))
|
||||||
{
|
{
|
||||||
$_GET['domain'] = parse_url($url,PHP_URL_HOST);
|
$_GET['domain'] = parse_url($url,PHP_URL_HOST);
|
||||||
@ -281,7 +282,7 @@ function do_stat($url,$long=false,$numeric=false)
|
|||||||
if (!isset($uid)) $uid = 'root';
|
if (!isset($uid)) $uid = 'root';
|
||||||
if ($stat['gid'])
|
if ($stat['gid'])
|
||||||
{
|
{
|
||||||
$gid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name($stat['gid']) : posix_getgrgid($stat['gid']);
|
$gid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name(-abs($stat['gid'])) : posix_getgrgid($stat['gid']);
|
||||||
if (is_array($gid)) $gid = $gid['name'];
|
if (is_array($gid)) $gid = $gid['name'];
|
||||||
}
|
}
|
||||||
if (!isset($gid)) $gid = 'root';
|
if (!isset($gid)) $gid = 'root';
|
||||||
|
Loading…
Reference in New Issue
Block a user