mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
minor bug fix
This commit is contained in:
@@ -83,14 +83,6 @@ class WebsiteManager:
|
|||||||
"name": "wp-manager",
|
"name": "wp-manager",
|
||||||
"IP": ACLManager.GetServerIP()
|
"IP": ACLManager.GetServerIP()
|
||||||
}
|
}
|
||||||
test_domain_data = {
|
|
||||||
"name": "test-domain",
|
|
||||||
"IP": ACLManager.GetServerIP(),
|
|
||||||
}
|
|
||||||
|
|
||||||
import requests
|
|
||||||
response = requests.post(url, data=json.dumps(test_domain_data))
|
|
||||||
test_domain_status = response.json()['status']
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
response = requests.post(url, data=json.dumps(data))
|
response = requests.post(url, data=json.dumps(data))
|
||||||
@@ -120,6 +112,17 @@ class WebsiteManager:
|
|||||||
Plugins = wpplugins.objects.filter(owner=userobj)
|
Plugins = wpplugins.objects.filter(owner=userobj)
|
||||||
rnpss = randomPassword.generate_pass(10)
|
rnpss = randomPassword.generate_pass(10)
|
||||||
|
|
||||||
|
##
|
||||||
|
|
||||||
|
test_domain_data = {
|
||||||
|
"name": "test-domain",
|
||||||
|
"IP": ACLManager.GetServerIP(),
|
||||||
|
}
|
||||||
|
|
||||||
|
import requests
|
||||||
|
response = requests.post(url, data=json.dumps(test_domain_data))
|
||||||
|
test_domain_status = response.json()['status']
|
||||||
|
|
||||||
Data = {'packageList': packagesName, "owernList": adminNames, 'WPVersions': FinalVersions,
|
Data = {'packageList': packagesName, "owernList": adminNames, 'WPVersions': FinalVersions,
|
||||||
'Plugins': Plugins, 'Randam_String': rnpss.lower(), 'test_domain_data': test_domain_status}
|
'Plugins': Plugins, 'Randam_String': rnpss.lower(), 'test_domain_data': test_domain_status}
|
||||||
proc = httpProc(request, 'websiteFunctions/WPCreate.html',
|
proc = httpProc(request, 'websiteFunctions/WPCreate.html',
|
||||||
|
|||||||
Reference in New Issue
Block a user