diff --git a/README.md b/README.md index 6909c0d..a0995a4 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/Server/shadowsocks/README.md b/Server/shadowsocks/README.md index 99b8c1e..0c9b7fb 100644 --- a/Server/shadowsocks/README.md +++ b/Server/shadowsocks/README.md @@ -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 diff --git a/WHMCS/modules/servers/shadowsocks/shadowsocks.php b/WHMCS/modules/servers/shadowsocks/shadowsocks.php index 42734d7..7e3dc7f 100644 --- a/WHMCS/modules/servers/shadowsocks/shadowsocks.php +++ b/WHMCS/modules/servers/shadowsocks/shadowsocks.php @@ -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 .= " {$name}