{$menu['directory']} eof; } } ?>
$item) { //跳过一级目录下的文件 if (!empty($item['filename'])) {continue;} echo <<

{$item['directory']}

eof; //二级目录 if (!empty($item['directories'])) { foreach($item['directories'] as $fid => $dir) { echo <<

- {$dir['directory']}

eof; //URL链接 if (!empty($dir['files'])) { foreach($dir['files'] as $urlItem) { if (empty($urlItem['shortcut'])) {continue;} echo << {$urlItem['shortcut']['name']} {$urlItem['shortcut']['url']}
eof; } } echo << eof; } } //URL链接 if (!empty($item['files'])) { foreach($item['files'] as $fid => $urlItem) { if (empty($urlItem['shortcut'])) {continue;} echo << {$urlItem['shortcut']['name']} {$urlItem['shortcut']['url']} eof; } } echo << eof; } } ?>