} 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 . '&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 . '">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();
if (file_exists($plugin_inst)) { require_once $plugin_inst; $check_compatible = 'plugin_compatible_with_this_version_' . $pi_name; if (function_exists($check_compatible)) { if (!$check_compatible($pi_name)) { continue; // with next plugin } } $auto_install = 'plugin_autoinstall_' . $pi_name; if (!function_exists($auto_install)) { continue; // with next plugin } $inst_params = $auto_install($pi_name); if ($inst_params === false || empty($inst_params)) { continue; // with next plugin } $installer->pluginAutoInstall($pi_name, $inst_params); } } } // Done! header('Location: success.php?language=' . $language); break; } // End switch ($step) $display .= Installer::getFooter(); header('Content-Type: text/html; charset=' . COM_getCharset()); COM_output($display);