mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
bug fix: update version and disable csf install
This commit is contained in:
@@ -5,7 +5,7 @@ class CLMain():
|
||||
self.path = '/usr/local/CyberCP/version.txt'
|
||||
#versionInfo = json.loads(open(self.path, 'r').read())
|
||||
self.version = '2.3'
|
||||
self.build = '5'
|
||||
self.build = '6'
|
||||
|
||||
ipFile = "/etc/cyberpanel/machineIP"
|
||||
f = open(ipFile)
|
||||
|
||||
@@ -21,7 +21,7 @@ from plogical.httpProc import httpProc
|
||||
# Create your views here.
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
|
||||
@ensure_csrf_cookie
|
||||
|
||||
@@ -1313,6 +1313,10 @@ class FirewallManager:
|
||||
userID = self.request.session['userID']
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
final_dic = {'installStatus': 0, 'error_message': 'CSF install is currently disabled.'}
|
||||
final_json = json.dumps(final_dic)
|
||||
return HttpResponse(final_json)
|
||||
|
||||
if currentACL['admin'] == 1:
|
||||
pass
|
||||
else:
|
||||
|
||||
@@ -15,7 +15,7 @@ from stat import *
|
||||
import stat
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
char_set = {'small': 'abcdefghijklmnopqrstuvwxyz', 'nums': '0123456789', 'big': 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ from django.utils import translation
|
||||
# Create your views here.
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
|
||||
def verifyLogin(request):
|
||||
|
||||
@@ -13,7 +13,7 @@ from packages.models import Package
|
||||
from baseTemplate.models import version
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
if not os.geteuid() == 0:
|
||||
sys.exit("\nOnly root can run this script\n")
|
||||
|
||||
@@ -52,7 +52,7 @@ except:
|
||||
pass
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
|
||||
## I am not the monster that you think I am..
|
||||
|
||||
@@ -18,7 +18,7 @@ import random
|
||||
import string
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
CENTOS7 = 0
|
||||
CENTOS8 = 1
|
||||
|
||||
@@ -26,7 +26,7 @@ EXPIRE = 3
|
||||
### Version
|
||||
|
||||
VERSION = '2.3'
|
||||
BUILD = 5
|
||||
BUILD = 6
|
||||
|
||||
|
||||
def serverStatusHome(request):
|
||||
|
||||
Reference in New Issue
Block a user