Veno-File-Manager (VFM4)免数据库云盘系统get-filetree.php文件释义
根目录/vfm-admin/ajax/get-filetree.php 顶部文件树(导航)显示内容
如果用户未分配私有文件夹,或是游客,默认访问所有文件夹,相关控制语句如下:
- // no directory assigned, access to all folders
- $movedir = $setUp->getConfig('starting_dir');
- $cleandir = substr($setUp->getConfig('starting_dir'), 2);
- $cleandir = substr_replace($cleandir, '', -1);
- $cleandir = strlen($cleandir) > 0 ? $cleandir : $__root;
- $output = '<div class="wrap-foldertree"><span class="toggle-all-tree"><i class="bi bi-dash-square-fill tree-toggler"></i></span>';
- $output .= '<ul class="foldertree">';
- $output .= '<li class="folderoot">';
- if ($movedir === $currentdir) {
- $output .= '<i class="bi bi-folder2-open"></i> <span class="search-highlight">'.$cleandir.'</span>';
- } else {
- $output .= '<a href="?dir='.ltrim($movedir, './').'" data-dest="'.urlencode($movedir).'" class="'.$movelink.'">';
- $output .= '<i class="bi bi-folder"></i> '.$cleandir;
- $output .= '</a>';
- }
- $output .= Actions::walkDir($movedir, $currentdir, $href, '../.');
- $output .= '</li></ul></div>';
-
- echo json_encode($output);
复制代码
|
|