mirror of
https://github.com/unraid/api.git
synced 2026-01-19 06:59:40 -06:00
style(plg): organize props fed to UPC. remove comment
This commit is contained in:
@@ -1012,7 +1012,6 @@ unraid-user-profile {
|
||||
<![CDATA[
|
||||
<!-- user profile component -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
|
||||
<!-- <script src="https://registration-dev.unraid.net/unraid-user-profile.min.js" type="text/javascript"</script -->
|
||||
<script src="https://registration-dev.unraid.net/unraid-user-profile.js" type="text/javascript"></script>
|
||||
<!-- No internet connection fallback to filesystem version -->
|
||||
<script type="text/javascript">
|
||||
@@ -1033,34 +1032,34 @@ if (!window.Vue) {
|
||||
<!-- USER PROFILE COMPONENT -->
|
||||
<?
|
||||
$serverstate = [
|
||||
"email" => ($remote['email']) ? $remote['email'] : '',
|
||||
"flashproduct" => $var['flashProduct'],
|
||||
"flashvendor" => $var['flashVendor'],
|
||||
"guid" => $var['flashGUID'],
|
||||
"keyfile" => str_replace(['+','/','='], ['-','_',''], trim(base64_encode(@file_get_contents($var['regFILE'])))),
|
||||
"internalport" => $_SERVER['SERVER_PORT'],
|
||||
"keyfile" => str_replace(['+','/','='], ['-','_',''], trim(base64_encode(@file_get_contents($var['regFILE']))))
|
||||
"protocol" => $_SERVER['REQUEST_SCHEME'],
|
||||
"reggen" => (int)$var['regGen'],
|
||||
"registered" => empty($remote['apikey']) || empty($var['regFILE']) ? 0 : 1,
|
||||
"servername" => $var['NAME'],
|
||||
"serverip" => $_SERVER['SERVER_ADDR'],
|
||||
"site" => $_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST'],
|
||||
"state" => strtoupper(empty($var['regCheck']) ? $var['regTy'] : $var['regCheck']),
|
||||
"reggen" => (int)$var['regGen'],
|
||||
"registered" => empty($remote['apikey']) || empty($var['regFILE']) ? 0 : 1,
|
||||
"internalport" => $_SERVER['SERVER_PORT'],
|
||||
"protocol" => $_SERVER['REQUEST_SCHEME'],
|
||||
"email" => ($remote['email']) ? $remote['email'] : ''
|
||||
];
|
||||
?>
|
||||
<unraid-user-profile
|
||||
serverstate="<?=rawurlencode(json_encode($serverstate, JSON_UNESCAPED_SLASHES))?>"
|
||||
serverdesc="<?=$var['COMMENT']?>"
|
||||
displaydesc="false"
|
||||
uptime="<?=1000*(time() - round(strtok(exec("cat /proc/uptime"),' ')))?>"
|
||||
expiretime="<?=1000*($var['regTy']=='Trial'||strstr($var['regTy'],'expired')?$var['regTm2']:0)?>"
|
||||
username="zspearmint"
|
||||
banner="<?=($display['banner']) ? $display['banner'] : ''?>"
|
||||
textcolor="<?=($header) ? '#'.$header : ''?>"
|
||||
bgcolor="<?=($backgnd) ? '#'.$backgnd : ''?>"
|
||||
apikey="<?=($remote['apikey']) ? $remote['apikey'] : ''?>"
|
||||
theme="<?=$display['theme']?>"
|
||||
avatar="https://source.unsplash.com/400x400/?portrait"
|
||||
banner="<?=($display['banner']) ? $display['banner'] : ''?>"
|
||||
bgcolor="<?=($backgnd) ? '#'.$backgnd : ''?>"
|
||||
displaydesc="false"
|
||||
expiretime="<?=1000*($var['regTy']=='Trial'||strstr($var['regTy'],'expired')?$var['regTm2']:0)?>"
|
||||
serverdesc="<?=$var['COMMENT']?>"
|
||||
serverstate="<?=rawurlencode(json_encode($serverstate, JSON_UNESCAPED_SLASHES))?>"
|
||||
textcolor="<?=($header) ? '#'.$header : ''?>"
|
||||
theme="<?=$display['theme']?>"
|
||||
uptime="<?=1000*(time() - round(strtok(exec("cat /proc/uptime"),' ')))?>"
|
||||
username="zspearmint"
|
||||
></unraid-user-profile>
|
||||
]]>
|
||||
</INLINE>
|
||||
|
||||
Reference in New Issue
Block a user