Exemplo n.º 1
0
// Step 3 - Migration Complete - Do Again?
if (isset($_POST["step4"])) {
} else {
    if (isset($_POST["step3"])) {
        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
                    if (!$_POST["fForumid"] || !$_POST["tForumid"]) {
                        $smarty->assign('failed', 'true');
                    } else {
                        $moo = $import->importSQLForum($_POST["ftype"], $_POST["prefix"], $_POST["server"], $_POST["fForumid"], $_POST["tForumid"]);
                        $smarty->assign('failed', 'false');
                    }
                } else {
                    // Error
                    $smarty->assign('msg', tra("Form error - no import method selected for some reason."));
                    $smarty->display("error.tpl");
                    die;
                }
            }
        }
        $smarty->assign('step', 'import');
        $smarty->assign('iMethod', $_POST["import"]);
        $smarty->assign('fi_type', $_POST["ftype"]);
        $smarty->assign('fi_prefix', $_POST["prefix"]);
        $smarty->assign('server', $_POST["server"]);