Beispiel #1
0
function _getDirectoryParentsArr($dir, $path = array())
{
    $db = _getDirectoryDbInfo($dir);
    if (!$db) {
        return $path;
    }
    $pdir = $db['parent'];
    array_unshift($path, $pdir);
    if ($pdir > 1) {
        $path = _getDirectoryParentsArr($pdir, $path);
    }
    return $path;
}
Beispiel #2
0
function kfm_getDirectoryDbInfo($id)
{
    include_once KFM_BASE_PATH . 'includes/directories.php';
    return _getDirectoryDbInfo($id);
}