upload_process(); } if(!empty($filenames)){ switch($type){ case 'collection' : require_once($class_path."/cms/cms_collections.class.php"); $collection = new cms_collection($id_collection); for($i=0 ; $iadd_document($storage->get_uploaded_fileinfos($filenames[$i]),true,$from); } break; } } break; default : switch($action){ case "get_params_form" : $storages = new storages(); print $storages->get_params_form($class_name,$id); break; } break; }