From 2be697e7fc830a109e55d6269f4711fee7ef1bc6 Mon Sep 17 00:00:00 2001
From: nickchomey <88559987+nickchomey@users.noreply.github.com>
Date: Wed, 23 Mar 2022 14:02:50 -0600
Subject: [PATCH 01/11] add warning cant revert to OLS after trial
---
serverStatus/templates/serverStatus/litespeedStatus.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/serverStatus/templates/serverStatus/litespeedStatus.html b/serverStatus/templates/serverStatus/litespeedStatus.html
index 8f9cb00c7..747930922 100755
--- a/serverStatus/templates/serverStatus/litespeedStatus.html
+++ b/serverStatus/templates/serverStatus/litespeedStatus.html
@@ -174,6 +174,9 @@
{% trans "Note: If you select 15 days trial there is no need to enter the serial key, CyberPanel will auto fetch 15 days trial key for you. Make sure this server have not used trial already." %}
+
+
{% trans "WARNING: You cannot revert back to OpenLiteSpeed if you choose not to purchase a LiteSpeed Enterprise license after the 15 day trial period. We recommend you test the Enterprise trial on a separate server." %}
+
From 1d74151b8eccfdc9c77e6a68680883aa04068c88 Mon Sep 17 00:00:00 2001
From: nickchomey <88559987+nickchomey@users.noreply.github.com>
Date: Wed, 23 Mar 2022 14:09:31 -0600
Subject: [PATCH 02/11] Update litespeedStatus.html
---
serverStatus/templates/serverStatus/litespeedStatus.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/serverStatus/templates/serverStatus/litespeedStatus.html b/serverStatus/templates/serverStatus/litespeedStatus.html
index 747930922..fcb0f936f 100755
--- a/serverStatus/templates/serverStatus/litespeedStatus.html
+++ b/serverStatus/templates/serverStatus/litespeedStatus.html
@@ -175,7 +175,7 @@
{% trans "Note: If you select 15 days trial there is no need to enter the serial key, CyberPanel will auto fetch 15 days trial key for you. Make sure this server have not used trial already." %}
-
{% trans "WARNING: You cannot revert back to OpenLiteSpeed if you choose not to purchase a LiteSpeed Enterprise license after the 15 day trial period. We recommend you test the Enterprise trial on a separate server." %}
+
{% trans "WARNING: You cannot revert back to OpenLiteSpeed if you choose not to purchase a LiteSpeed Enterprise license after the 15 day trial period. We recommend you test the Enterprise trial on a separate server." %}
From f6fc645abb41f5fde0e8c164855de50358cf459f Mon Sep 17 00:00:00 2001
From: Usman Nasir
Date: Sun, 24 Apr 2022 14:36:40 +0500
Subject: [PATCH 03/11] add requests
---
plogical/IncScheduler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plogical/IncScheduler.py b/plogical/IncScheduler.py
index 30e786647..83b147668 100644
--- a/plogical/IncScheduler.py
+++ b/plogical/IncScheduler.py
@@ -252,7 +252,7 @@ class IncScheduler(multi.Thread):
drive.files().list(pageSize=10, fields="files(id, name)").execute()
except BaseException as msg:
try:
-
+ import requests
finalData = json.dumps({'refresh_token': gDriveData['refresh_token']})
r = requests.post("https://platform.cyberpersons.com/refreshToken", data=finalData
)
From 940e4de0f69f18b56041e21f4fe43b6148cde6e5 Mon Sep 17 00:00:00 2001
From: Usman Nasir
Date: Sun, 24 Apr 2022 22:01:54 +0500
Subject: [PATCH 04/11] v2.3.1
---
backup/templates/backup/googleDrive.html | 2 +-
filemanager/views.py | 3 ++-
plogical/IncScheduler.py | 19 ++++++++-----------
version.txt | 2 +-
4 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/backup/templates/backup/googleDrive.html b/backup/templates/backup/googleDrive.html
index 175a20508..50549d0c7 100755
--- a/backup/templates/backup/googleDrive.html
+++ b/backup/templates/backup/googleDrive.html
@@ -114,7 +114,7 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
From c302ce1bb39942b24ca377d025a7f8eeae5f1328 Mon Sep 17 00:00:00 2001
From: nickchomey <88559987+nickchomey@users.noreply.github.com>
Date: Thu, 28 Apr 2022 20:56:36 -0600
Subject: [PATCH 11/11] Update views.py
---
baseTemplate/views.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/baseTemplate/views.py b/baseTemplate/views.py
index 2aa65dd37..c1bd9b7f3 100755
--- a/baseTemplate/views.py
+++ b/baseTemplate/views.py
@@ -120,6 +120,14 @@ def versionManagment(request):
Currentcomt = output.rstrip("\n")
notechk = True;
+
+ command ="git fetch"
+ output = ProcessUtilities.outputExecutioner(command)
+
+ command ="git -C /usr/local/CyberCP/ log %s..%s --pretty=oneline | wc -l" % ( Currentcomt, latestcomit)
+ output = ProcessUtilities.outputExecutioner(command)
+
+ numCommits = output.rstrip("\n")
if(Currentcomt == latestcomit):
notechk = False;
@@ -127,7 +135,7 @@ def versionManagment(request):
template = 'baseTemplate/versionManagment.html'
finalData = {'build': currentBuild, 'currentVersion': currentVersion, 'latestVersion': latestVersion,
- 'latestBuild': latestBuild, 'latestcomit': latestcomit, "Currentcomt": Currentcomt, "Notecheck" : notechk }
+ 'latestBuild': latestBuild, 'latestcomit': latestcomit, "Currentcomt": Currentcomt, "Notecheck" : notechk, "numCommits": numCommits }
proc = httpProc(request, template, finalData, 'versionManagement')