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

@@ -1,7 +1,13 @@
# Shadowsocks-For-WHMCS
# Shadowsocks For WHMCS
这是提供给 WHMCS 的影梭自动开通 & 管理接口。
This module is available automatically sales & management [Shadowsocks Manyuser](https://github.com/mengskysama/shadowsocks/tree/manyuser) in the WHMCS.
#使用方法
## Quick start
详情请参阅https://www.zntec.cn/archives/whmcs-ss-module.html
: ) In fact, it is not "Quick" ...
You can read the [Installation documentation](https://www.zntec.cn/archives/whmcs-ss-module.html) for information on this module contents, and more.
## Copyright and license
Copyright 2016 ZNTEC.CN. Code released under [the MIT license](https://github.com/babytomas/Shadowsocks-For-WHMCS/blob/master/LICENSE).

View File

@@ -1 +1,4 @@
## Shadowsocks Manyuser
This is a based python multi-user derivative version of shadowsocks.
Fork in https://github.com/mengskysama/shadowsocks/tree/manyuser

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}