From 15e3df77cd6431acfced9323086567a6155518b7 Mon Sep 17 00:00:00 2001 From: Simon Beginn Date: Mon, 28 Mar 2022 23:10:22 +0200 Subject: [PATCH] Update for v1.30.3116.68 --- server/pritunl-1.30.3108.50.zip | 3 --- server/pritunl-1.30.3116.68.zip | 3 +++ www/index.php | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 server/pritunl-1.30.3108.50.zip create mode 100644 server/pritunl-1.30.3116.68.zip diff --git a/server/pritunl-1.30.3108.50.zip b/server/pritunl-1.30.3108.50.zip deleted file mode 100644 index 5730b02..0000000 --- a/server/pritunl-1.30.3108.50.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fc70b1940bbb57bd1f344d9fe7fe2a03237e6f403cb9e35ce19129193372f18 -size 5095046 diff --git a/server/pritunl-1.30.3116.68.zip b/server/pritunl-1.30.3116.68.zip new file mode 100644 index 0000000..bfd4dee --- /dev/null +++ b/server/pritunl-1.30.3116.68.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d43025688bf8e6ddfa1234615e538005af6032c4fe5c3d72b6902eefaa035173 +size 5095831 diff --git a/www/index.php b/www/index.php index dba163c..0d241dc 100644 --- a/www/index.php +++ b/www/index.php @@ -13,7 +13,7 @@ if(isset($_GET['path'])) { //Any notification/[version] will be answered here if(preg_match('/notification.*/', $_GET['path'])) { $result = new stdClass; - $result->message = 'Fake API endpoint for v1.30.3108.50 active and reachable (contacted at ' . date('r') . ').'; + $result->message = 'Fake API endpoint for v1.30.3116.68 active and reachable (contacted at ' . date('r') . ').'; $result->vpn = false; //Idk $result->www = false; //Idk } else if(isset($body->license) && preg_match('/subscription.*/', $_GET['path'])) { @@ -42,7 +42,7 @@ if(isset($_GET['path'])) { $stylesheet .= "* { color: rgb(57, 83, 120); }\n.dark * { color: rgb(200, 242, 242); }\n.navbar .navbar-brand { animation-name: pritunl-logo; animation-duration: 20s; animation-iteration-count: infinite; }\n@keyframes pritunl-logo { 0% { transform:rotate3d(1, 0, 0, 360deg); } 25% { transform:rotate3d(1, 0, 0, 0deg); } 50% { transform:rotate3d(0, 1, 0, 0deg); } 75% { transform:rotate3d(0, 1, 0, 360deg); } 100% { transform:rotate3d(0, 1, 0, 360deg); } }\n.footer-brand {visibility: hidden; }\n.footer-brand::before { visibility: visible; position: absolute; bottom: 0; right: 0; content: ''; background: url('https://" . $_SERVER['HTTP_HOST'] . "/logo.png'); background-size: cover; width: 1em; height: 1em; margin: 0.3em; }\n/* Generated for $license license */"; # Workaround for 70b354a10df55d60515f76d851dee42939864395 - if($body->version >= 1003031084050) + if($body->version >= 1003031084050 and $body->version < 1003031164068) $stylesheet = base64_encode($stylesheet); $state = null; @@ -57,7 +57,7 @@ if(isset($_GET['path'])) { } if($state == 'Active') { - $result->active = $license != 'premium'; //If true the stylesheet from below will be activated. This will also hide some elements, so don't use it on premium users (which will have the minimal stylesheet and so the subscription info will be empty)... + $result->active = $body->version < 1003031164068 ? $license != 'premium' : $license == 'enterprise_plus'; $result->status = $state; $result->plan = $license; $result->quantity = 42; @@ -134,4 +134,4 @@ if(false) { if(isset($_GET['clear'])) file_put_contents('access.log', ''); } -?> \ No newline at end of file +?>