mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
further refoctor default render tuning
This commit is contained in:
@@ -31,24 +31,18 @@ class tuningManager:
|
||||
return proc.render()
|
||||
|
||||
def phpTuning(self, request, userID):
|
||||
try:
|
||||
userID = request.session['userID']
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
if ProcessUtilities.decideServer() == ProcessUtilities.OLS:
|
||||
websitesName = ACLManager.findAllSites(currentACL, userID)
|
||||
OLS = 1
|
||||
proc = httpProc(request, 'tuning/phpTuning.html',
|
||||
{'websiteList': websitesName, 'OLS': OLS}, 'admin')
|
||||
return proc.render()
|
||||
else:
|
||||
OLS = 0
|
||||
proc = httpProc(request, 'tuning/phpTuning.html',
|
||||
{'OLS': OLS}, 'admin')
|
||||
return proc.render()
|
||||
|
||||
except KeyError:
|
||||
return redirect(loadLoginPage)
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
if ProcessUtilities.decideServer() == ProcessUtilities.OLS:
|
||||
websitesName = ACLManager.findAllSites(currentACL, userID)
|
||||
OLS = 1
|
||||
proc = httpProc(request, 'tuning/phpTuning.html',
|
||||
{'websiteList': websitesName, 'OLS': OLS}, 'admin')
|
||||
return proc.render()
|
||||
else:
|
||||
OLS = 0
|
||||
proc = httpProc(request, 'tuning/phpTuning.html',
|
||||
{'OLS': OLS}, 'admin')
|
||||
return proc.render()
|
||||
|
||||
def tuneLitespeed(self, userID, data):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user