Update for v1.30.3116.68

This commit is contained in:
Simon Beginn
2022-03-28 23:10:22 +02:00
parent 715b0b576e
commit 15e3df77cd
3 changed files with 7 additions and 7 deletions

View File

@@ -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', '');
}
?>
?>