$sqlForums = $import->parseForumList($_POST["ftype"], $_POST["prefix"], $_POST["server"]); $smarty->assign('fromForums', $sqlForums); if (count($sqlForums) == 0) { $smarty->assign('noforumsF', 'true'); } else { $smarty->assign('noforumsF', 'false'); } } else { // Error $smarty->assign('msg', tra("Form error - no import method selected for some reason.")); $smarty->display("error.tpl"); die; } } } $toForums = $import->list_forums(0, -1, 'created_asc', ''); $smarty->assign_by_ref('toForums', $toForums["data"]); if (count($toForums["data"]) == 0) { $smarty->assign('noforumsT', 'true'); } else { $smarty->assign('noforumsT', 'false'); } $smarty->assign('step', 'select'); $smarty->assign('iMethod', $_POST["import"]); $smarty->assign('fi_type', $_POST["ftype"]); $smarty->assign('fi_prefix', $_POST["prefix"]); $smarty->assign('server', $_POST["server"]); } else { if (isset($_POST["step1"])) { if (!isset($_POST["import"])) { $smarty->assign('msg', tra("Form error - no import method selected for some reason."));