You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
941 B
38 lines
941 B
<?php
|
|
|
|
/**
|
|
*
|
|
* @package templates/default
|
|
*/
|
|
|
|
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
|
|
|
use Duplicator\Installer\Core\Params\PrmMng;
|
|
use Duplicator\Libs\Snap\SnapJson;
|
|
|
|
$paramsManager = PrmMng::getInstance();
|
|
|
|
$nextStepPrams = array(
|
|
PrmMng::PARAM_CTRL_ACTION => 'ctrl-step3',
|
|
DUPX_Security::CTRL_TOKEN => DUPX_CSRF::generate('ctrl-step3')
|
|
);
|
|
?><script>
|
|
$("#tabs").tabs({
|
|
create: function (event, ui) {
|
|
$("#tabs").removeClass('no-display');
|
|
}
|
|
});
|
|
|
|
DUPX.beforeUnloadCheck(true);
|
|
|
|
DUPX.runDeployment = function () {
|
|
//Validate input data
|
|
var formInput = $('#s2-input-form');
|
|
|
|
DUPX.sendParamsStep2(formInput, function () {
|
|
DUPX.startAjaxDbInstall(true, function () {
|
|
DUPX.redirect(DUPX.dupInstallerUrl, 'post', <?php echo SnapJson::jsonEncode($nextStepPrams); ?>);
|
|
});
|
|
});
|
|
};
|
|
</script>
|
|
|