if ($result != tl::OK) { $msg = lang_get('wrong_keywords_file'); } else { header("Location: keywordsView.php"); exit; } } @unlink($dest); } } else { $msg = lang_get('please_choose_keywords_file'); } } $tlKeyword = new tlKeyword(); $importTypes = $tlKeyword->getSupportedSerializationInterfaces(); $formatStrings = $tlKeyword->getSupportedSerializationFormatDescriptions(); $file_size_limit = config_get('import_file_max_size_bytes'); $smarty = new TLSmarty(); $smarty->assign('import_type_selected', $args->importType); $smarty->assign('msg', $msg); $smarty->assign('keywordFormatStrings', $formatStrings); $smarty->assign('importTypes', $importTypes); $smarty->assign('tproject_name', $args->testproject_name); $smarty->assign('tproject_id', $args->testproject_id); $smarty->assign('fileSizeLimitMsg', sprintf(lang_get('max_file_size_is'), $file_size_limit / 1024 . ' KB ')); $smarty->assign('importLimit', $file_size_limit); $smarty->display($templateCfg->template_dir . $templateCfg->default_template); /** * @return object returns the arguments for the page */ function init_args()