Example #1
0
                echo "<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"" . 'index.php?mode=migrate&step=4' . '&language=' . $installer->getLanguage() . '&site_url=' . $_REQUEST['site_url'] . '&site_admin_url=' . $_REQUEST['site_admin_url'] . "\";',3000);</script>\n";
            } else {
                if ($delayPerSession != 0) {
                    echo '<p><b>' . $LANG_BIGDUMP[24] . $delayPerSession . $LANG_BIGDUMP[25] . PHP_EOL;
                }
                // Go to the next step
                echo '<script language="JavaScript" type="text/javascript">window.setTimeout(\'location.href="' . $_SERVER['PHP_SELF'] . '?start=' . $lineNumber . '&fn=' . urlencode($currentFileName) . '&foffset=' . $fOffset . '&totalqueries=' . $totalQueries . '&db_connection_charset=' . $db_connection_charset . '&language=' . $installer->getLanguage() . '&site_url=' . $site_url . '&site_admin_url=' . $site_admin_url . '";\',500+' . $delayPerSession . ');</script>' . PHP_EOL . '<noscript>' . PHP_EOL . ' <p><a href="' . $_SERVER['PHP_SELF'] . '?start=' . $lineNumber . '&amp;fn=' . urlencode($currentFileName) . '&amp;foffset=' . $fOffset . '&amp;totalqueries=' . $totalQueries . '&amp;db_connection_charset=' . $db_connection_charset . '&amp;language=' . $installer->getLanguage() . '&amp;site_url=' . $site_url . '&amp;site_admin_url=' . $site_admin_url . '">Continue from the line ' . $lineNumber . '</a></p>' . PHP_EOL . '</noscript>' . PHP_EOL . '<p><b><a href="' . $_SERVER['PHP_SELF'] . '">' . $LANG_BIGDUMP[26] . '</a></b> ' . $LANG_BIGDUMP[27] . ' <b>' . $LANG_BIGDUMP[28] . '</b></p>' . PHP_EOL;
            }
        } else {
            echo $installer->getAlertMsg($LANG_BIGDUMP[29]);
        }
    }
}
if ($error) {
    $backUrl = 'index.php?mode=migrate';
    $language = $installer->getLanguage();
    if (!empty($language)) {
        $backUrl .= '&language=' . $language;
    }
    echo '<p><a href="' . $backUrl . '">' . $LANG_BIGDUMP[30] . '</a> ' . $LANG_BIGDUMP[31] . '</p>' . PHP_EOL;
}
if ($dbConnection) {
    Geeklog\Db::disconnect();
    $dbConnection = null;
}
if ($file && !$gzipMode) {
    fclose($file);
} elseif ($file && $gzipMode) {
    gzclose($file);
}
echo Installer::getFooter();