示例#1
0
function _getDirectoryParents($pid, $type = 1)
{
    # type is 1:absolute, 2:relative to domain
    if ($pid < 2) {
        return $GLOBALS['rootdir'];
    }
    $db = _getDirectoryDbInfo($pid);
    return _getDirectoryParents($db['parent'], $type) . $db['name'] . '/';
}
示例#2
0
function kfm_getDirectoryParents($pid, $type = 1)
{
    include_once KFM_BASE_PATH . 'includes/directories.php';
    return _getDirectoryParents($pid, $type);
}