bug fix: update version and disable csf install

This commit is contained in:
usmannasir
2024-08-14 11:24:11 +03:00
parent 4871adb7de
commit 5066805bd4
9 changed files with 12 additions and 8 deletions

View File

@@ -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)

View File

@@ -21,7 +21,7 @@ from plogical.httpProc import httpProc
# Create your views here.
VERSION = '2.3'
BUILD = 5
BUILD = 6
@ensure_csrf_cookie

View File

@@ -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:

View File

@@ -15,7 +15,7 @@ from stat import *
import stat
VERSION = '2.3'
BUILD = 5
BUILD = 6
char_set = {'small': 'abcdefghijklmnopqrstuvwxyz', 'nums': '0123456789', 'big': 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}

View File

@@ -19,7 +19,7 @@ from django.utils import translation
# Create your views here.
VERSION = '2.3'
BUILD = 5
BUILD = 6
def verifyLogin(request):

View File

@@ -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")

View File

@@ -52,7 +52,7 @@ except:
pass
VERSION = '2.3'
BUILD = 5
BUILD = 6
## I am not the monster that you think I am..

View File

@@ -18,7 +18,7 @@ import random
import string
VERSION = '2.3'
BUILD = 5
BUILD = 6
CENTOS7 = 0
CENTOS8 = 1

View File

@@ -26,7 +26,7 @@ EXPIRE = 3
### Version
VERSION = '2.3'
BUILD = 5
BUILD = 6
def serverStatusHome(request):