backuptestfinal3

This commit is contained in:
Hassan Hashmi
2022-06-16 14:34:53 +05:00
parent a2f7545031
commit 65879ea5ce
4 changed files with 202 additions and 219 deletions

View File

@@ -1550,19 +1550,31 @@ app.controller('RestoreWPBackup', function ($scope, $http, $timeout, $window) {
$scope.goBackDisable = true;
$scope.currentStatus = "Start Restoring WordPress..";
var Domain = $scope.domainNameCreate;
var path = $('#wprestoresubdirpath').val()
var home = "1";
if (typeof path != 'undefined' || path != '') {
home = "0";
}
var backuptype = $('#backuptype').html();
var data;
if (backuptype == "DataBase Backup") {
data = {
backupid: $('#backupid').html(),
DesSite: $('#DesSite').children("option:selected").val(),
Domain: ''
Domain: '',
path: path,
home: home,
}
} else {
data = {
backupid: $('#backupid').html(),
DesSite: $('#DesSite').children("option:selected").val(),
Domain: $("input[name=Newdomain]").val()
Domain: Domain,
path: path,
home: home,
}
}