add_system_message(_("Import failed file not sent"), 'error'); forward("library/import"); } else if (is_uploaded_file($_FILES['import_file']['tmp_name'])) { $importer = new Importer(); $fid = get_input('folder_id'); if (isset($fid) && is_numeric($fid)) { $importer->folder = $fid; } $iported = $importer->import($_FILES['import_file']); if ($iported) { $TeKe->add_system_message(_("Success")); forward("library/".$iported["type"]."/".$iported["id"]."/view"); } } $TeKe->add_system_message(_("Import failed."), 'error'); forward("library/import"); ?>