Merge pull request #2 from zackspear/feat/upc-anon-mode

Feat/upc anon mode
This commit is contained in:
Zack Spear
2021-09-08 15:25:21 -07:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
@@ -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);
?>
File diff suppressed because one or more lines are too long