?> <h2>Sub folder</h2><ul><?php foreach ($arr_folder as $index => $folder) { ?> <li><?php $filebrowser->html_link('browse', $folder, '', BaseName($folder)); ?> — [<small><?php $filebrowser->html_link('delfolder', $folder, '', 'delete'); ?> </small>] </li><?php } ?> </ul><?php } if ($arr_file = $filebrowser->get_files($filebrowser->directory)) { ?> <h2>Files</h2><ul><?php foreach ($arr_file as $index => $file) { ?> <li><?php $filebrowser->html_link('getfile', '', $file, BaseName($file)); ?> — [<small><?php $filebrowser->html_link('delfile', '', $file, 'delete'); ?> </small>] </li><?php } ?> </ul><?php }