$smarty->assign('server', $_POST["server"]); $smarty->assign('tomove', $moo); $smarty->assign('fF', $_POST["fForumid"]); $smarty->assign('tF', $_POST["tForumid"]); } else { if (isset($_POST["step2"])) { if ($_POST["import"] == 'same') { // Same db and server } else { if ($_POST["import"] == 'other') { // Different db & server } else { if ($_POST["import"] == 'sql') { // Import from SQL file //read sql file to create forum list $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', '');