mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
Minor bug fix in SSL Home page
This commit is contained in:
@@ -1,22 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.shortcuts import render,redirect
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import redirect
|
||||
# Create your views here.
|
||||
import json
|
||||
from websiteFunctions.models import dest, backupSchedules
|
||||
import plogical.CyberCPLogFileWriter as logging
|
||||
from loginSystem.views import loadLoginPage
|
||||
import os
|
||||
import time
|
||||
import shlex
|
||||
import subprocess
|
||||
import requests
|
||||
from plogical.virtualHostUtilities import virtualHostUtilities
|
||||
from random import randint
|
||||
from plogical.mailUtilities import mailUtilities
|
||||
from plogical.acl import ACLManager
|
||||
from plogical.backupManager import BackupManager
|
||||
|
||||
|
||||
|
||||
@@ -22,8 +22,11 @@
|
||||
|
||||
<div class="example-box-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<a href="{% url 'createDatabase' %}" title="{% trans 'Create Database' %}" class="tile-box tile-box-shortcut btn-primary">
|
||||
|
||||
{% if manageSSL or admin %}
|
||||
|
||||
<div class="col-md-4">
|
||||
<a href="{% url 'manageSSL' %}" title="{% trans 'Manage SSL' %}" class="tile-box tile-box-shortcut btn-primary">
|
||||
<div class="tile-header">
|
||||
{% trans "Manage SSL" %}
|
||||
</div>
|
||||
@@ -33,9 +36,13 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<div class="col-md-6">
|
||||
<a href="{% url 'deleteDatabase' %}" title="{% trans 'Delete Database' %}" class="tile-box tile-box-shortcut btn-primary">
|
||||
{% if hostnameSSL or admin %}
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<a href="{% url 'sslForHostName' %}" title="{% trans 'Hostname SSL' %}" class="tile-box tile-box-shortcut btn-primary">
|
||||
<div class="tile-header">
|
||||
{% trans "Hostname SSL" %}
|
||||
</div>
|
||||
@@ -45,6 +52,23 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if mailServerSSL or admin %}
|
||||
|
||||
<div class="col-md-4">
|
||||
<a href="{% url 'sslForMailServer' %}" title="{% trans 'MailServer SSL' %}" class="tile-box tile-box-shortcut btn-primary">
|
||||
<div class="tile-header">
|
||||
{% trans "MailServer SSL" %}
|
||||
</div>
|
||||
<div class="tile-content-wrapper">
|
||||
<i class="glyph-icon icon-dashboard"></i>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -16,8 +16,9 @@ from plogical.acl import ACLManager
|
||||
|
||||
def loadSSLHome(request):
|
||||
try:
|
||||
val = request.session['userID']
|
||||
return render(request, 'manageSSL/index.html')
|
||||
userID = request.session['userID']
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
return render(request, 'manageSSL/index.html', currentACL)
|
||||
except KeyError:
|
||||
return redirect(loadLoginPage)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
|
||||
class CyberCPLogFileWriter:
|
||||
fileName = "/home/cyberpanel/error-logs.txt"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user