plugin->test_constructor_gatekeeper(); if (!isset($_FILES['import_file'])) { $TeKe->add_system_message(_("Import failed."), "error"); forward("${WWW_ROOT}items/import"); } else if (is_uploaded_file($_FILES['import_file']['tmp_name'])) { $importer = new Importer(); $iported = $importer->import($_FILES['import_file']); if ($iported) { $TeKe->add_system_message(_("Success")); } else { $TeKe->add_system_message(_("At least one item import failed."), "error"); } forward("${WWW_ROOT}items/view"); } $TeKe->add_system_message(_("Import failed."), 'error'); forward("${WWW_ROOT}items/import"); ?>