mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 08:49:47 -05:00
Merge pull request #2 from zackspear/feat/upc-anon-mode
Feat/upc anon mode
This commit is contained in:
@@ -287,6 +287,10 @@
|
||||
'iAgree' => _('I agree to the'),
|
||||
'text' => _('Terms of Use'),
|
||||
],
|
||||
'anonMode' => [
|
||||
'name' => _('Anonymous Mode'),
|
||||
'label' => _('Keep server details anonymous'),
|
||||
],
|
||||
],
|
||||
'routes' => [
|
||||
'extendTrial' => [
|
||||
@@ -443,6 +447,7 @@
|
||||
];
|
||||
// feeds server vars to Vuex store in a slightly different array than state.php
|
||||
$serverstate = [
|
||||
"anonMode" => $remote['anonMode'] === 'true',
|
||||
"avatar" => $remote['avatar'],
|
||||
"deviceCount" => $var['deviceCount'],
|
||||
"email" => ($remote['email']) ? $remote['email'] : '',
|
||||
|
||||
@@ -56,6 +56,7 @@ $arr['locale'] = $_SESSION['locale'] ? $_SESSION['locale'] : 'en_US';
|
||||
$arr['expiretime']=1000*($var['regTy']=='Trial'||strstr($var['regTy'],'expired')?$var['regTm2']:0);
|
||||
$arr['uptime']=1000*(time() - round(strtok(exec("cat /proc/uptime"),' ')));
|
||||
$arr['serverdesc'] = $_SERVER['COMMENT'];
|
||||
$arr['anonMode'] = $remote['anonMode'] === 'true';
|
||||
|
||||
echo json_encode($arr);
|
||||
?>
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user