From ef85135e1954fdf4cf934846017a662e9926c75c Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 27 Sep 2024 15:00:23 +0500 Subject: [PATCH] bug fix: default dkim to 1 --- .../websiteFunctions/createDomain.html | 33 +++++++------------ .../websiteFunctions/createWebsite.html | 31 +++++++---------- websiteFunctions/website.py | 7 ++-- 3 files changed, 26 insertions(+), 45 deletions(-) diff --git a/websiteFunctions/templates/websiteFunctions/createDomain.html b/websiteFunctions/templates/websiteFunctions/createDomain.html index 580ae961c..1dbe49331 100755 --- a/websiteFunctions/templates/websiteFunctions/createDomain.html +++ b/websiteFunctions/templates/websiteFunctions/createDomain.html @@ -212,10 +212,10 @@ - - -
-
- -
-
- -
-
- -
-
+{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +
diff --git a/websiteFunctions/templates/websiteFunctions/createWebsite.html b/websiteFunctions/templates/websiteFunctions/createWebsite.html index 9448a18a7..4d39ece28 100755 --- a/websiteFunctions/templates/websiteFunctions/createWebsite.html +++ b/websiteFunctions/templates/websiteFunctions/createWebsite.html @@ -179,35 +179,26 @@
- -
-
- -
-
- -
-
- -
-
+{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#}
diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index c71a62576..8ec87a367 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -2218,7 +2218,7 @@ class WebsiteManager: execPath = execPath + " createVirtualHost --virtualHostName " + domain + \ " --administratorEmail " + adminEmail + " --phpVersion '" + phpSelection + \ "' --virtualHostUser " + externalApp + " --ssl " + str(data['ssl']) + " --dkimCheck " \ - + str(data['dkimCheck']) + " --openBasedir " + str(data['openBasedir']) + \ + + str(1) + " --openBasedir " + str(data['openBasedir']) + \ ' --websiteOwner "' + websiteOwner + '" --package "' + packageName + '" --tempStatusPath ' + tempStatusPath + " --apache " + apacheBackend + " --mailDomain %s" % ( mailDomain) @@ -2319,8 +2319,7 @@ class WebsiteManager: execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py" execPath = execPath + " createDomain --masterDomain " + masterDomain + " --virtualHostName " + domain + \ - " --phpVersion '" + phpSelection + "' --ssl " + str(data['ssl']) + " --dkimCheck " + str( - data['dkimCheck']) \ + " --phpVersion '" + phpSelection + "' --ssl " + str(data['ssl']) + " --dkimCheck " + str(1) \ + " --openBasedir " + str(data['openBasedir']) + ' --path ' + path + ' --websiteOwner ' \ + admin.userName + ' --tempStatusPath ' + tempStatusPath + " --apache " + apacheBackend + f' --aliasDomain {str(alias)}' @@ -4541,7 +4540,7 @@ StrictHostKeyChecking no websiteOwner = data['websiteOwner'] ownerPassword = data['ownerPassword'] data['ssl'] = 1 - data['dkimCheck'] = 0 + data['dkimCheck'] = 1 data['openBasedir'] = 1 data['adminEmail'] = data['ownerEmail'] data['phpSelection'] = "PHP 7.4"