complete phpmyadmin

This commit is contained in:
Usman Nasir
2020-08-09 12:45:18 +05:00
parent f8219f6f37
commit 0438b47207
9 changed files with 131 additions and 29 deletions

View File

@@ -568,9 +568,12 @@ app.controller('listDBs', function ($scope, $http) {
app.controller('phpMyAdmin', function ($scope, $http, $window) {
$scope.cyberPanelLoading = true;
$scope.generateAccess = function() {
$scope.cyberPanelLoading = false;
url = "/dataBases/generateAccess";
var data = {};
@@ -586,15 +589,16 @@ app.controller('phpMyAdmin', function ($scope, $http, $window) {
function ListInitialDatas(response) {
$scope.cyberPanelLoading = true;
if (response.data.status === 1) {
$window.location.href = '/phpmyadmin';
var rUrl = '/phpmyadmin/signin.php?username=' + response.data.username + '&token=' + response.data.token;
$window.location.href = rUrl;
}
else {}
}
function cantLoadInitialDatas(response) {}
function cantLoadInitialDatas(response) {$scope.cyberPanelLoading = true;}
}