upload_process(); } if($success){ switch($type){ case 'collection' : require_once($class_path."/cms/cms_collections.class.php"); $collection = new cms_collection($id_collection); print $collection->add_document($storage->get_uploaded_fileinfos(),true,$from); break; } } break; default : switch($action){ case "get_params_form" : $storages = new storages(); print $storages->get_params_form($class_name,$id); break; } break; }