Fixed QRcode generate & traffic display.

This commit is contained in:
babytomas
2016-06-14 11:56:57 +08:00
parent 971cbdd541
commit 18675785c3
3 changed files with 17 additions and 5 deletions

View File

@@ -333,6 +333,9 @@ function shadowsocks_ClientArea($params){
}else{
$traffic = $params['configoption2'];
}
if($params['configoption3'] == "GB"){
$traffic = $traffic * 1024;
}
$traffic_upload = $query_data['upload'] / 1024;
$traffic_upload = round($traffic_upload, 2);
$traffic_download = $query_data['download'] / 1024;
@@ -366,7 +369,7 @@ function shadowsocks_ClientArea($params){
$ipaddr = $node[$x];$x++;
$cname = $node[$x];$x++;
$method = $node[$x];$x++;
$ssqrcode = base64_encode($method.':'.$password.':'.$ipaddr.':'.$query_data['port']);
$ssqrcode = base64_encode($method.':'.$password.'@'.$ipaddr.':'.$query_data['port']);
$node_list .= "<tr>
<td style=\"padding:10px 15px;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9\">
{$name}