隐私保护修改

This commit is contained in:
Comsenz 2018-06-04 16:57:43 +08:00
parent f759f176c4
commit bec08dac93
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class mobile_api {
function output() { function output() {
global $_G; global $_G;
$data = $GLOBALS['space']; $data = $GLOBALS['space'];
unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc']); unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc'], $data['qq'], $data['alipay'], $data['icq'], $data['yahoo'], $data['msn'], $data['taobao'], $data['mobile'], $data['telephone'], $data['idcard'], $data['idcardtype'], $data['address'], $data['realname'], $data['zipcode']);
$variable = array( $variable = array(
'space' => $data, 'space' => $data,
'extcredits' => $_G['setting']['extcredits'], 'extcredits' => $_G['setting']['extcredits'],

View File

@ -26,7 +26,7 @@ class mobile_api {
if($_G['uid'] && $data['uid'] == $_G['uid']) { if($_G['uid'] && $data['uid'] == $_G['uid']) {
$data['favthreads'] = C::t('home_favorite')->count_by_uid_idtype($_G['uid'], 'tid'); $data['favthreads'] = C::t('home_favorite')->count_by_uid_idtype($_G['uid'], 'tid');
} }
unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc']); unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc'], $data['qq'], $data['alipay'], $data['icq'], $data['yahoo'], $data['msn'], $data['taobao'], $data['mobile'], $data['telephone'], $data['idcard'], $data['idcardtype'], $data['address'], $data['realname'], $data['zipcode']);
$variable = array( $variable = array(
'space' => $data, 'space' => $data,
'extcredits' => $_G['setting']['extcredits'], 'extcredits' => $_G['setting']['extcredits'],

View File

@ -29,7 +29,7 @@ class mobile_api {
$data['upgradeprogress'] = 100 - ceil($data['upgradecredit'] / ($data['group']['creditslower'] - $data['group']['creditshigher']) * 100); $data['upgradeprogress'] = 100 - ceil($data['upgradecredit'] / ($data['group']['creditslower'] - $data['group']['creditshigher']) * 100);
$data['upgradeprogress'] = max($data['upgradeprogress'], 2); $data['upgradeprogress'] = max($data['upgradeprogress'], 2);
} }
unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc']); unset($data['password'], $data['email'], $data['regip'], $data['lastip'], $data['regip_loc'], $data['lastip_loc'], $data['qq'], $data['alipay'], $data['icq'], $data['yahoo'], $data['msn'], $data['taobao'], $data['mobile'], $data['telephone'], $data['idcard'], $data['idcardtype'], $data['address'], $data['realname'], $data['zipcode']);
$variable = array( $variable = array(
'space' => $data, 'space' => $data,
'extcredits' => $_G['setting']['extcredits'], 'extcredits' => $_G['setting']['extcredits'],