if ($fm->getvar('path') && $fm->getvar('name')) { $response = $fm->addfolder(); } break; case 'download': if ($fm->getvar('path')) { $fm->download(); } break; case 'preview': if ($fm->getvar('path')) { $fm->preview(); } break; case 'maxuploadfilesize': $fm->getMaxUploadFileSize(); break; } } else { if (isset($_POST['mode']) && $_POST['mode'] != '') { switch ($_POST['mode']) { default: $fm->error($fm->lang('MODE_ERROR')); break; case 'add': if ($fm->postvar('currentpath')) { $fm->add(); } break; } }