mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-06 10:26:23 +02:00
complete phpmyadmin
This commit is contained in:
@@ -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;}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user