$fm_Filelist->_show_hidden_files = true; } if (param('fm_flatmode', '', NULL, true)) { $fm_Filelist->flatmode = true; } /* * Load Filelist (with meta data): */ $fm_Filelist->load(); // Sort Filelist param('fm_order', 'string', NULL, true); if (!in_array($fm_order, array('name', 'path', 'type', 'size', 'lastmod', 'perms', 'fsowner', 'fsgroup'))) { $fm_order = NULL; } param('fm_orderasc', '', NULL, true); $fm_Filelist->sort($fm_order, $fm_orderasc); switch ($action) { case 'download': // TODO: We don't need the Filelist, move UP! // TODO: provide optional zip formats (tgz, ..) - the used lib provides more.. // TODO: use "inmemory"=>false, so that you can download bigger archives faster! $action_title = T_('Download'); if (!$selected_Filelist->count()) { $Messages->add(T_('Nothing selected.'), 'error'); break; } param('zipname', 'string', ''); param('exclude_sd', 'integer', 0); if (empty($zipname)) { if (param('action_invoked', 'integer', 0)) { // Action was invoked, add "hint"