mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-11 07:36:15 +02:00
ACL Manager
This commit is contained in:
@@ -42,3 +42,8 @@ class backupSchedules(models.Model):
|
||||
dest = models.ForeignKey(dest)
|
||||
frequency = models.CharField(max_length=15)
|
||||
|
||||
|
||||
class aliasDomains(models.Model):
|
||||
master = models.ForeignKey(Websites, on_delete=models.CASCADE)
|
||||
aliasDomain = models.CharField(max_length=75)
|
||||
|
||||
|
||||
@@ -537,8 +537,6 @@ app.controller('modifyWebsitesController', function($scope,$http) {
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* Java script code to Modify Pacakge ends here */
|
||||
|
||||
|
||||
@@ -723,7 +721,7 @@ app.controller('websitePages', function($scope, $http, $timeout, $window) {
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
|
||||
if(response.data.logstatus == 1){
|
||||
if(response.data.logstatus === 1){
|
||||
|
||||
|
||||
// notifications
|
||||
@@ -839,7 +837,7 @@ app.controller('websitePages', function($scope, $http, $timeout, $window) {
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
|
||||
if(response.data.configstatus == 1){
|
||||
if(response.data.configstatus === 1){
|
||||
|
||||
//Rewrite rules
|
||||
|
||||
@@ -956,7 +954,7 @@ app.controller('websitePages', function($scope, $http, $timeout, $window) {
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
|
||||
if(response.data.configstatus == 1){
|
||||
if(response.data.configstatus === 1){
|
||||
|
||||
$scope.configurationsBox = false;
|
||||
$scope.configsFetched = true;
|
||||
@@ -1366,10 +1364,10 @@ app.controller('websitePages', function($scope, $http, $timeout, $window) {
|
||||
|
||||
var domain = $("#domainNamePage").text();
|
||||
var path = $scope.installPath;
|
||||
var sitename = $scope.sitename
|
||||
var username = $scope.username
|
||||
var password = $scope.password
|
||||
var prefix = $scope.prefix
|
||||
var sitename = $scope.sitename;
|
||||
var username = $scope.username;
|
||||
var password = $scope.password;
|
||||
var prefix = $scope.prefix;
|
||||
|
||||
|
||||
url = "/websites/installJoomla";
|
||||
@@ -1480,7 +1478,7 @@ app.controller('websitePages', function($scope, $http, $timeout, $window) {
|
||||
var data = {
|
||||
virtualHost: virtualHost,
|
||||
cert:cert,
|
||||
key:key,
|
||||
key:key
|
||||
};
|
||||
|
||||
var config = {
|
||||
@@ -2377,9 +2375,8 @@ app.controller('suspendWebsiteControl', function($scope,$http) {
|
||||
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
console.log(response.data)
|
||||
|
||||
if (response.data.websiteStatus == 1)
|
||||
if (response.data.websiteStatus === 1)
|
||||
{
|
||||
if(state=="Suspend"){
|
||||
|
||||
@@ -3071,6 +3068,10 @@ app.controller('launchChild', function($scope,$http) {
|
||||
|
||||
$scope.fileManagerURL = "/filemanager/"+$("#domainNamePage").text();
|
||||
$scope.previewUrl = "/preview/"+$("#childDomain").text()+"/";
|
||||
$scope.wordPressInstallURL = "/websites/" + $("#childDomain").text() + "/wordpressInstall";
|
||||
$scope.joomlaInstallURL = "/websites/" + $("#childDomain").text() + "/joomlaInstall";
|
||||
$scope.setupGit = "/websites/" + $("#childDomain").text() + "/setupGit";
|
||||
$scope.installPrestaURL = "/websites/" + $("#childDomain").text() + "/installPrestaShop";
|
||||
|
||||
var logType = 0;
|
||||
$scope.pageNumber = 1;
|
||||
@@ -3124,7 +3125,7 @@ app.controller('launchChild', function($scope,$http) {
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
|
||||
if(response.data.logstatus == 1){
|
||||
if(response.data.logstatus === 1){
|
||||
|
||||
|
||||
$scope.logFileLoading = true;
|
||||
@@ -3180,11 +3181,11 @@ app.controller('launchChild', function($scope,$http) {
|
||||
var errorPageNumber = $scope.errorPageNumber;
|
||||
|
||||
|
||||
if(type==3){
|
||||
if(type === 3){
|
||||
errorPageNumber = $scope.errorPageNumber+1;
|
||||
$scope.errorPageNumber = errorPageNumber;
|
||||
}
|
||||
else if(type==4){
|
||||
else if(type === 4){
|
||||
errorPageNumber = $scope.errorPageNumber-1;
|
||||
$scope.errorPageNumber = errorPageNumber;
|
||||
}
|
||||
@@ -3225,7 +3226,7 @@ app.controller('launchChild', function($scope,$http) {
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
|
||||
if(response.data.logstatus == 1){
|
||||
if(response.data.logstatus === 1){
|
||||
|
||||
|
||||
// notifications
|
||||
@@ -3805,7 +3806,7 @@ app.controller('launchChild', function($scope,$http) {
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
|
||||
if(response.data.sslStatus == 1){
|
||||
if(response.data.sslStatus === 1){
|
||||
|
||||
$scope.sslSaved = false;
|
||||
$scope.couldNotSaveSSL = true;
|
||||
@@ -3931,7 +3932,7 @@ app.controller('launchChild', function($scope,$http) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -532,7 +532,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="example-box-wrapper">
|
||||
<div style="border-radius: 25px;border-color:#3498db" class="content-box">
|
||||
<h3 class="content-box-header bg-blue">
|
||||
@@ -653,6 +652,72 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="example-box-wrapper">
|
||||
|
||||
<div style="border-radius: 25px;border-color:#3498db" class="content-box">
|
||||
<h3 class="content-box-header bg-blue">
|
||||
{% trans "Application Installer" %}
|
||||
</h3>
|
||||
|
||||
<div class="content-box-wrapper">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-4" style="margin-bottom: 2%;">
|
||||
|
||||
<a href="{$ wordPressInstallURL $}" target="_blank" title="{% trans 'Install wordpress with LSCache' %}">
|
||||
<img src="{% static 'images/icons/wordpress.png' %}">
|
||||
</a>
|
||||
<a href="{$ wordPressInstallURL $}" target="_blank" title="{% trans 'Install wordpress with LSCache' %}">
|
||||
<span style='font-size: 21px;font-family: "Times New Roman", Times, serif; padding-left: 2%'>{% trans "Wordpress with LSCache" %}</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4" style="margin-bottom: 2%;">
|
||||
|
||||
<a href="{$ joomlaInstallURL $}" target="_blank" title="{% trans 'Install Joomla with LSCache' %}">
|
||||
<img src="{% static 'images/icons/joomla-logo.png' %}">
|
||||
</a>
|
||||
<a href="{$ joomlaInstallURL $}" target="_blank" title="{% trans 'Install Joomla with LSCache' %}">
|
||||
<span style='font-size: 21px;font-family: "Times New Roman", Times, serif; padding-left: 2%'>{% trans "Joomla" %}</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4" style="margin-bottom: 2%;">
|
||||
|
||||
<a href="{$ setupGit $}" target="_blank" title="{% trans 'Attach Git with this website!' %}">
|
||||
<img src="{% static 'images/icons/git-logo.png' %}">
|
||||
</a>
|
||||
<a href="{$ setupGit $}" target="_blank" title="{% trans 'Attach Git with this website!' %}">
|
||||
<span style='font-size: 21px;font-family: "Times New Roman", Times, serif; padding-left: 2%'>{% trans "Git" %}</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-4" style="margin-bottom: 2%;">
|
||||
|
||||
<a href="{$ installPrestaURL $}" target="_blank" title="{% trans 'Install Prestashop' %}">
|
||||
<img src="{% static 'images/icons/prestashop.png' %}">
|
||||
</a>
|
||||
<a href="{$ installPrestaURL $}" target="_blank" title="{% trans 'Install Prestashop' %}">
|
||||
<span style='font-size: 21px;font-family: "Times New Roman", Times, serif; padding-left: 2%'>{% trans "Prestashop" %}</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class="alert alert-danger">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user