{include file="common/sidenav" /}
{:__('Member center')}
{:__('Profile')}
{$user.nickname}
{$user.bio|default=__("This guy hasn't written anything yet")}
{:__('Money')}
{$user.money}
{:__('Score')}
{$user.score}
{:__('Successions')}
{$user.successions} {:__('Day')}
{:__('Maxsuccessions')}
{$user.maxsuccessions} {:__('Day')}
{:__('Logintime')}
{$user.logintime|date="Y-m-d H:i:s",###}
{:__('Prevtime')}
{$user.prevtime|date="Y-m-d H:i:s",###}
总流量
total_traffic; $kb = 1024; $Mb = 1024 * $kb; $Gb = 1024 * $Mb; $Tb = 1024 * $Gb; if($val < $Mb){ echo number_format($val/$kb,2) .' Kb'; }else if($val < $Gb){ echo number_format($val/$Mb,2) .' Mb'; }else if($val < $Tb){ echo number_format($val/$Gb,2) .' Gb'; }else{ echo $val + 'b'; } ?>
已使用流量
traffic; $kb = 1024; $Mb = 1024 * $kb; $Gb = 1024 * $Mb; $Tb = 1024 * $Gb; if($val < $Mb){ echo number_format($val/$kb,2) .' Kb'; }else if($val < $Gb){ echo number_format($val/$Mb,2) .' Mb'; }else if($val < $Tb){ echo number_format($val/$Gb,2) .' Gb'; }else{ echo $val + 'b'; } ?>
剩余流量
total_traffic - $user->traffic; $kb = 1024; $Mb = 1024 * $kb; $Gb = 1024 * $Mb; $Tb = 1024 * $Gb; if($val < $Mb){ echo number_format($val/$kb,2) .' Kb'; }else if($val < $Gb){ echo number_format($val/$Mb,2) .' Mb'; }else if($val < $Tb){ echo number_format($val/$Gb,2) .' Gb'; }else{ echo $val + 'b'; } ?>