mirror of
https://github.com/simonmicro/Pritunl-Fake-API.git
synced 2025-12-06 11:07:01 -05:00
Cleaned CSS + customized customizations
This commit is contained in:
parent
ef8df3c44d
commit
4353f6910b
File diff suppressed because one or more lines are too long
@ -19,7 +19,7 @@ if(isset($_GET['path'])) {
|
|||||||
$result = new stdClass;
|
$result = new stdClass;
|
||||||
$license = null;
|
$license = null;
|
||||||
//The stylesheet determines what is shown on the dashboard (and by the plan). As default we change the colors of any text.
|
//The stylesheet determines what is shown on the dashboard (and by the plan). As default we change the colors of any text.
|
||||||
$stylesheet = '* { color: rgb(20, 150, 20); } .dark * { color: rgb(40, 180, 40); }';
|
$stylesheet = '';
|
||||||
if(preg_match('/.*premium/', $body->license)) {
|
if(preg_match('/.*premium/', $body->license)) {
|
||||||
$license = 'premium';
|
$license = 'premium';
|
||||||
} else if(preg_match('/.*enterprise[^\w]/', $body->license)) {
|
} else if(preg_match('/.*enterprise[^\w]/', $body->license)) {
|
||||||
@ -31,7 +31,7 @@ if(isset($_GET['path'])) {
|
|||||||
$stylesheet .= file_get_contents('enterprise_plus.css');
|
$stylesheet .= file_get_contents('enterprise_plus.css');
|
||||||
$stylesheet = preg_replace('/(.*display:.?)none.*/', '$1inline-block', $stylesheet);
|
$stylesheet = preg_replace('/(.*display:.?)none.*/', '$1inline-block', $stylesheet);
|
||||||
}
|
}
|
||||||
$stylesheet .= '/* Generated for ' . $license . ' license */';
|
$stylesheet .= "* { color: rgb(57, 83, 120); }\n.dark * { color: rgb(200, 242, 242); }\n.navbar .navbar-brand { transform:rotateZ(180deg); }\n.footer-brand { opacity: 0; }\n/* Generated for $license license */";
|
||||||
|
|
||||||
$state = null;
|
$state = null;
|
||||||
if($license) { //The following only makes sense if you selected any license
|
if($license) { //The following only makes sense if you selected any license
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user