mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 08:46: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 = {
|
||||
domain: domain
|
||||
};
|
||||
|
||||
$http({
|
||||
method: 'POST',
|
||||
url: url,
|
||||
@@ -2690,15 +2689,8 @@ app.controller('listWebsites', function ($scope, $http, $window) {
|
||||
}
|
||||
}).then(function(response) {
|
||||
if (response.data.status === 1) {
|
||||
var sites = response.data.sites;
|
||||
var message = 'WordPress Sites for ' + domain + ':\n\n';
|
||||
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);
|
||||
$scope.web.wp_sites = response.data.sites;
|
||||
$scope.web.showWPSites = true;
|
||||
} else {
|
||||
alert('Error: ' + response.data.error_message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user