This commit is contained in:
Usman Nasir
2020-08-04 20:18:49 +05:00
parent cfdf9996f0
commit f1b5589cdd
3 changed files with 436 additions and 421 deletions

14
static/managePHP/managePHP.js Executable file → Normal file
View File

@@ -261,6 +261,7 @@ app.controller('installExtensions', function ($scope, $http, $timeout) {
app.controller('editPHPConfig', function ($scope, $http, $timeout) {
$scope.loadingPHP = true;
$scope.cyberPanelLoading = true;
$scope.canNotFetch = true;
$scope.phpDetailsBox = true;
$scope.couldNotConnect = true;
@@ -377,7 +378,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
};
$scope.saveChanges = function () {
$scope.loadingPHP = false;
@@ -439,7 +439,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
};
$scope.fetchAdvancePHPDetails = function () {
$scope.loadingPHP = false;
$scope.savebtnAdvance = true;
@@ -501,7 +500,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
};
$scope.saveChangesAdvance = function () {
$scope.loadingPHP = false;
@@ -555,6 +553,16 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
};
$scope.restartPHP = function () {
globalScope = $scope;
$scope.cyberPanelLoading = false;
url = "/managephp/restartPHP";
var data = {};
GLobalAjaxCall($http, url, data, GlobalRespSuccess, GlobalRespFailed);
};
});