diff --git a/www/custom.css b/www/custom.css index 784b612..6fdab20 100644 --- a/www/custom.css +++ b/www/custom.css @@ -3,7 +3,7 @@ } .dark * { - color: rgb(200, 242, 242); + color: rgb(220, 232, 232); } .navbar .navbar-brand { diff --git a/www/index.php b/www/index.php index 82bb93c..5324084 100644 --- a/www/index.php +++ b/www/index.php @@ -51,6 +51,8 @@ if(isset($_GET['path'])) { $stylesheet = ''; if(str_contains($input, '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')) { $license = 'enterprise'; $stylesheet = file_get_contents('enterprise.css'); @@ -77,7 +79,7 @@ if(isset($_GET['path'])) { if($state == 'Active') { $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, 'plan' => $license, 'url_key' => $user, @@ -152,7 +154,7 @@ if(isset($_GET['path'])) { ), 'enterprise_plus' => array( 'amount' => $licenseCosts - ), + ) ) ); } diff --git a/www/premium.css b/www/premium.css new file mode 100644 index 0000000..8da017b --- /dev/null +++ b/www/premium.css @@ -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; +} \ No newline at end of file