mirror of
https://github.com/Encryptshell/Pritunl-API-crack.git
synced 2025-11-29 08:33:10 +00:00
Added fixes for premium style / modals
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dark * {
|
.dark * {
|
||||||
color: rgb(200, 242, 242);
|
color: rgb(220, 232, 232);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar .navbar-brand {
|
.navbar .navbar-brand {
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ if(isset($_GET['path'])) {
|
|||||||
$stylesheet = '';
|
$stylesheet = '';
|
||||||
if(str_contains($input, 'premium')) {
|
if(str_contains($input, 'premium')) {
|
||||||
$license = 'premium';
|
$license = 'premium';
|
||||||
|
$stylesheet = file_get_contents('premium.css');
|
||||||
|
// No need to install the user license "id" into CSS class, as that file only contains custom patches
|
||||||
} else if(str_contains($input, 'enterprise')) {
|
} else if(str_contains($input, 'enterprise')) {
|
||||||
$license = 'enterprise';
|
$license = 'enterprise';
|
||||||
$stylesheet = file_get_contents('enterprise.css');
|
$stylesheet = file_get_contents('enterprise.css');
|
||||||
@@ -77,7 +79,7 @@ if(isset($_GET['path'])) {
|
|||||||
|
|
||||||
if($state == 'Active') {
|
if($state == 'Active') {
|
||||||
$result = array(
|
$result = array(
|
||||||
'active' => $license == 'enterprise_plus',
|
'active' => true, // if the sub is not active, the css won't use the LICENSE-subscription_id pattern
|
||||||
'status' => $state,
|
'status' => $state,
|
||||||
'plan' => $license,
|
'plan' => $license,
|
||||||
'url_key' => $user,
|
'url_key' => $user,
|
||||||
@@ -152,7 +154,7 @@ if(isset($_GET['path'])) {
|
|||||||
),
|
),
|
||||||
'enterprise_plus' => array(
|
'enterprise_plus' => array(
|
||||||
'amount' => $licenseCosts
|
'amount' => $licenseCosts
|
||||||
),
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
12
www/premium.css
Normal file
12
www/premium.css
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
/* Fixes for the premium subscription-modal, which seems to be empty / broken in recent versions */
|
||||||
|
.enterprise-modal .enterprise-info {
|
||||||
|
display: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.enterprise-modal .modal .enterprise-info .premium-plan {
|
||||||
|
display: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.enterprise-modal .enterprise-buttons {
|
||||||
|
display: inherit;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user