mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 16:56:09 +01:00
fix vhuser in function
This commit is contained in:
@@ -2679,7 +2679,6 @@ app.controller('listWebsites', function ($scope, $http, $window) {
|
|||||||
var data = {
|
var data = {
|
||||||
domain: domain
|
domain: domain
|
||||||
};
|
};
|
||||||
|
|
||||||
$http({
|
$http({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: url,
|
url: url,
|
||||||
@@ -2690,15 +2689,8 @@ app.controller('listWebsites', function ($scope, $http, $window) {
|
|||||||
}
|
}
|
||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
if (response.data.status === 1) {
|
if (response.data.status === 1) {
|
||||||
var sites = response.data.sites;
|
$scope.web.wp_sites = response.data.sites;
|
||||||
var message = 'WordPress Sites for ' + domain + ':\n\n';
|
$scope.web.showWPSites = true;
|
||||||
sites.forEach(function(site) {
|
|
||||||
message += 'Title: ' + site.title + '\n';
|
|
||||||
message += 'URL: ' + site.url + '\n';
|
|
||||||
message += 'Version: ' + site.version + '\n';
|
|
||||||
message += 'Status: ' + site.status + '\n\n';
|
|
||||||
});
|
|
||||||
alert(message);
|
|
||||||
} else {
|
} else {
|
||||||
alert('Error: ' + response.data.error_message);
|
alert('Error: ' + response.data.error_message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user