Fixed QRcode generate & traffic display.
This commit is contained in:
14
README.md
14
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).
|
||||||
|
|||||||
@@ -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
|
Fork in https://github.com/mengskysama/shadowsocks/tree/manyuser
|
||||||
|
|||||||
@@ -333,6 +333,9 @@ function shadowsocks_ClientArea($params){
|
|||||||
}else{
|
}else{
|
||||||
$traffic = $params['configoption2'];
|
$traffic = $params['configoption2'];
|
||||||
}
|
}
|
||||||
|
if($params['configoption3'] == "GB"){
|
||||||
|
$traffic = $traffic * 1024;
|
||||||
|
}
|
||||||
$traffic_upload = $query_data['upload'] / 1024;
|
$traffic_upload = $query_data['upload'] / 1024;
|
||||||
$traffic_upload = round($traffic_upload, 2);
|
$traffic_upload = round($traffic_upload, 2);
|
||||||
$traffic_download = $query_data['download'] / 1024;
|
$traffic_download = $query_data['download'] / 1024;
|
||||||
@@ -366,7 +369,7 @@ function shadowsocks_ClientArea($params){
|
|||||||
$ipaddr = $node[$x];$x++;
|
$ipaddr = $node[$x];$x++;
|
||||||
$cname = $node[$x];$x++;
|
$cname = $node[$x];$x++;
|
||||||
$method = $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>
|
$node_list .= "<tr>
|
||||||
<td style=\"padding:10px 15px;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9\">
|
<td style=\"padding:10px 15px;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9\">
|
||||||
{$name}
|
{$name}
|
||||||
|
|||||||
Reference in New Issue
Block a user