From 4f4b52a4bcb59c3dee3ff8c19e46796857858759 Mon Sep 17 00:00:00 2001
From: mmmwhy
Date: Fri, 14 Jul 2017 18:58:56 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E9=9A=8F=E4=B8=BB=E7=89=88=E6=9C=AC?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/Controllers/AuthController.php | 3 +-
app/Controllers/UserController.php | 68 +----
bootstrap.php | 2 +-
config/.config.php | 326 ---------------------
config/.config.php.example | 20 +-
resources/views/material/user/nodeinfo.tpl | 61 ++--
6 files changed, 48 insertions(+), 432 deletions(-)
delete mode 100644 config/.config.php
diff --git a/app/Controllers/AuthController.php b/app/Controllers/AuthController.php
index eaa3ecd..5203b12 100644
--- a/app/Controllers/AuthController.php
+++ b/app/Controllers/AuthController.php
@@ -165,7 +165,8 @@ class AuthController extends BaseController
$ary = $request->getQueryParams();
$code = "";
if (isset($ary['code'])) {
- $code = $ary['code'];
+ $antiXss = new AntiXSS();
+ $code = $antiXss->xss_clean($ary['code']);
}
$uid = time().rand(1, 10000) ;
diff --git a/app/Controllers/UserController.php b/app/Controllers/UserController.php
index 811e424..934cb65 100644
--- a/app/Controllers/UserController.php
+++ b/app/Controllers/UserController.php
@@ -193,6 +193,7 @@ class UserController extends BaseController
$router_token = LinkController::GenerateRouterCode($this->user->id, 0);
$router_token_without_mu = LinkController::GenerateRouterCode($this->user->id, 1);
+ $ssr_sub_token = LinkController::GenerateSSRSubCode($this->user->id, 0);
$uid = time().rand(1, 10000) ;
if (Config::get('enable_geetest_checkin') == 'true') {
@@ -204,7 +205,7 @@ class UserController extends BaseController
$Ann = Ann::orderBy('date', 'desc')->first();
- return $this->view()->assign("router_token", $router_token)->assign("router_token_without_mu", $router_token_without_mu)->assign("acl_token", $acl_token)->assign('ann', $Ann)->assign('geetest_html', $GtSdk)->assign("ios_token", $ios_token)->assign("android_add", $android_add)->assign("android_add_without_mu", $android_add_without_mu)->assign('enable_duoshuo', Config::get('enable_duoshuo'))->assign('duoshuo_shortname', Config::get('duoshuo_shortname'))->assign('baseUrl', Config::get('baseUrl'))->display('user/index.tpl');
+ return $this->view()->assign("ssr_sub_token", $ssr_sub_token)->assign("router_token", $router_token)->assign("router_token_without_mu", $router_token_without_mu)->assign("acl_token", $acl_token)->assign('ann', $Ann)->assign('geetest_html', $GtSdk)->assign("ios_token", $ios_token)->assign("android_add", $android_add)->assign("android_add_without_mu", $android_add_without_mu)->assign('enable_duoshuo', Config::get('enable_duoshuo'))->assign('duoshuo_shortname', Config::get('duoshuo_shortname'))->assign('baseUrl', Config::get('baseUrl'))->display('user/index.tpl');
}
@@ -266,55 +267,8 @@ class UserController extends BaseController
return $response->getBody()->write(json_encode($res));
}
}
-
- public function f2fpayget($request, $response, $args)
- {
- $time = $request->getQueryParams()["time"];
- $res['ret'] = 1;
- return $response->getBody()->write(json_encode($res));
- }
- public function f2fpay($request, $response, $args)
- {
- $amount = $request->getParam('amount');
- if ($amount == "") {
- $res['ret'] = 0;
- $res['msg'] = "订单金额错误:".$amount;
- return $response->getBody()->write(json_encode($res));
- }
- $user = $this->user;
-
- //生成二维码
- $qrPayResult = Pay::alipay_get_qrcode($user, $amount, $qrPay);
- // 根据状态值进行业务处理
- switch ($qrPayResult->getTradeStatus()){
- case "SUCCESS":
- $aliresponse = $qrPayResult->getResponse();
- $res['ret'] = 1;
- $res['msg'] = "二维码生成成功";
- $res['amount'] = $amount;
- $res['qrcode'] = $qrPay->create_erweima_baidu($aliresponse->qr_code);
-
- break;
- case "FAILED":
- $res['ret'] = 0;
- $res['msg'] = "支付宝创建订单二维码失败!!! 请使用其他方式付款。";
-
- break;
- case "UNKNOWN":
- $res['ret'] = 0;
- $res['msg'] = "系统异常,状态未知!!!!!! 请使用其他方式付款。";
-
- break;
- default:
- $res['ret'] = 0;
- $res['msg'] = "创建订单二维码返回异常!!!!!! 请使用其他方式付款。";
-
- break;
- }
-
- return $response->getBody()->write(json_encode($res));
- }
+
public function alipay($request, $response, $args)
{
$amount = $request->getQueryParams()["amount"];
@@ -704,8 +658,6 @@ class UserController extends BaseController
$json = json_encode($ary);
$json_show = json_encode($ary, JSON_PRETTY_PRINT);
- $ssurl = str_replace("_compatible", "", $user->obfs).":".str_replace("_compatible", "", $user->protocol).":".$ary['method'] . ":" . $ary['password'] . "@" . $ary['server'] . ":" . $ary['server_port']."/".base64_encode($user->obfs_param);
- $ssqr_s = "ss://" . base64_encode($ssurl);
$ssurl = $ary['server']. ":" . $ary['server_port'].":".str_replace("_compatible", "", $user->protocol).":".$ary['method'].":".str_replace("_compatible", "", $user->obfs).":".Tools::base64_url_encode($ary['password'])."/?obfsparam=".Tools::base64_url_encode($user->obfs_param)."&protoparam=".Tools::base64_url_encode($user->protocol_param)."&remarks=".Tools::base64_url_encode($node->name) . "&group=" . Tools::base64_url_encode(Config::get('appName'));
$ssqr_s_new = "ssr://" . Tools::base64_url_encode($ssurl);
$ssurl = $ary['method'] . ":" . $ary['password'] . "@" . $ary['server'] . ":" . $ary['server_port'];
@@ -718,7 +670,7 @@ class UserController extends BaseController
$surge_proxy = "#!PROXY-OVERRIDE:ProxyBase.conf\n";
$surge_proxy .= "[Proxy]\n";
$surge_proxy .= "Proxy = custom," . $ary['server'] . "," . $ary['server_port'] . "," . $ary['method'] . "," . $ary['password'] . "," . Config::get('baseUrl') . "/downloads/SSEncrypt.module";
- return $this->view()->assign('ary', $ary)->assign('mu', $is_mu)->assign('node', $node)->assign('user', $user)->assign('json', $json)->assign('link1', Config::get('baseUrl')."/link/".$token_1)->assign('link2', Config::get('baseUrl')."/link/".$token_2)->assign('json_show', $json_show)->assign('ssqr', $ssqr)->assign('ssqr_s_new', $ssqr_s_new)->assign('ssqr_s', $ssqr_s)->assign('surge_base', $surge_base)->assign('surge_proxy', $surge_proxy)->assign('info_server', $ary['server'])->assign('info_port', $this->user->port)->assign('info_method', $ary['method'])->assign('info_pass', $this->user->passwd)->display('user/nodeinfo.tpl');
+ return $this->view()->assign('ary', $ary)->assign('mu', $is_mu)->assign('node', $node)->assign('user', $user)->assign('json', $json)->assign('link1', Config::get('baseUrl')."/link/".$token_1)->assign('link2', Config::get('baseUrl')."/link/".$token_2)->assign('json_show', $json_show)->assign('ssqr', $ssqr)->assign('ssqr_s_new', $ssqr_s_new)->assign('surge_base', $surge_base)->assign('surge_proxy', $surge_proxy)->assign('info_server', $ary['server'])->assign('info_port', $this->user->port)->assign('info_method', $ary['method'])->assign('info_pass', $this->user->passwd)->display('user/nodeinfo.tpl');
}
break;
@@ -906,8 +858,6 @@ class UserController extends BaseController
$json = json_encode($ary);
$json_show = json_encode($ary, JSON_PRETTY_PRINT);
- $ssurl = str_replace("_compatible", "", $user->obfs).":".str_replace("_compatible", "", $user->protocol).":".$ary['method'] . ":" . $ary['password'] . "@" . $ary['server'] . ":" . $ary['server_port']."/".base64_encode($user->obfs_param);
- $ssqr_s = "ss://" . base64_encode($ssurl);
$ssurl = $ary['server']. ":" . $ary['server_port'].":".str_replace("_compatible", "", $user->protocol).":".$ary['method'].":".str_replace("_compatible", "", $user->obfs).":".Tools::base64_url_encode($ary['password'])."/?obfsparam=".Tools::base64_url_encode($user->obfs_param)."&protoparam=".Tools::base64_url_encode($user->protocol_param)."&remarks=".Tools::base64_url_encode($node->name) . "&group=" . Tools::base64_url_encode(Config::get('appName'));
$ssqr_s_new = "ssr://" . Tools::base64_url_encode($ssurl);
$ssurl = $ary['method'] . ":" . $ary['password'] . "@" . $ary['server'] . ":" . $ary['server_port'];
@@ -920,7 +870,7 @@ class UserController extends BaseController
$surge_proxy = "#!PROXY-OVERRIDE:ProxyBase.conf\n";
$surge_proxy .= "[Proxy]\n";
$surge_proxy .= "Proxy = custom," . $ary['server'] . "," . $ary['server_port'] . "," . $ary['method'] . "," . $ary['password'] . "," . Config::get('baseUrl') . "/downloads/SSEncrypt.module";
- return $this->view()->assign('ary', $ary)->assign('mu', $is_mu)->assign('node', $node)->assign('user', $user)->assign('json', $json)->assign('link1', Config::get('baseUrl')."/link/".$token_1)->assign('link2', Config::get('baseUrl')."/link/".$token_2)->assign('json_show', $json_show)->assign('ssqr', $ssqr)->assign('ssqr_s_new', $ssqr_s_new)->assign('ssqr_s', $ssqr_s)->assign('surge_base', $surge_base)->assign('surge_proxy', $surge_proxy)->assign('info_server', $ary['server'])->assign('info_port', $this->user->port)->assign('info_method', $ary['method'])->assign('info_pass', $this->user->passwd)->display('user/nodeinfo.tpl');
+ return $this->view()->assign('ary', $ary)->assign('mu', $is_mu)->assign('node', $node)->assign('user', $user)->assign('json', $json)->assign('link1', Config::get('baseUrl')."/link/".$token_1)->assign('link2', Config::get('baseUrl')."/link/".$token_2)->assign('json_show', $json_show)->assign('ssqr', $ssqr)->assign('ssqr_s_new', $ssqr_s_new)->assign('surge_base', $surge_base)->assign('surge_proxy', $surge_proxy)->assign('info_server', $ary['server'])->assign('info_port', $this->user->port)->assign('info_method', $ary['method'])->assign('info_pass', $this->user->passwd)->display('user/nodeinfo.tpl');
}
break;
@@ -1810,4 +1760,12 @@ class UserController extends BaseController
$newResponse = $response->withStatus(302)->withHeader('Location', '/user/edit');
return $newResponse;
}
+
+ public function resetURL($request, $response, $args)
+ {
+ $user = $this->user;
+ $user->clean_link();
+ $newResponse = $response->withStatus(302)->withHeader('Location', '/user');
+ return $newResponse;
+ }
}
diff --git a/bootstrap.php b/bootstrap.php
index d901b3e..1e623ee 100644
--- a/bootstrap.php
+++ b/bootstrap.php
@@ -11,7 +11,7 @@ use App\Services\Boot;
// BASE_PATH
define('BASE_PATH', __DIR__);
-define('VERSION', '20170605');
+define('VERSION', '20170620_1');
// Vendor Autoload
require BASE_PATH.'/vendor/autoload.php';
diff --git a/config/.config.php b/config/.config.php
deleted file mode 100644
index e38077e..0000000
--- a/config/.config.php
+++ /dev/null
@@ -1,326 +0,0 @@
-Glzjin mod-2016042210000';
-
-// mu key 用于校验ss-go mu的请求,半角逗号分隔
-$System_Config['muKey'] = 'mmmwhy';
-// 邮件
-$System_Config['mailDriver'] = 'mailgun'; // mailgun or smtp or sendgrid
-
-// 用户签到设置
-$System_Config['checkinMin'] = '1989'; // 签到最少流量 单位MB
-$System_Config['checkinMax'] = '8964'; // 签到最多流量
-
-//
-$System_Config['defaultTraffic'] = '100'; // 用户初始流量 单位GB
-
-// 注册后获得的邀请码数量
-$System_Config['inviteNum'] = '0';
-
-# database 数据库配置
-$System_Config['db_driver'] = 'mysql';
-$System_Config['db_host'] = 'localhost';
-$System_Config['db_database'] = 'sspanel';
-$System_Config['db_username'] = 'root';
-$System_Config['db_password'] = 'root';
-$System_Config['db_charset'] = 'utf8';
-$System_Config['db_collation'] = 'utf8_general_ci';
-$System_Config['db_prefix'] = '';
-
-# redis
-$System_Config['redis_scheme'] = 'tcp';
-$System_Config['redis_host'] = '127.0.0.1';
-$System_Config['redis_port'] = '6379';
-$System_Config['redis_database'] = '0';
-$System_Config['redis_password']="";
-
-# mailgun
-$System_Config['mailgun_key'] = '';
-$System_Config['mailgun_domain'] = '';
-$System_Config['mailgun_sender'] = '';
-
-# smtp
-$System_Config['smtp_host'] = '';
-$System_Config['smtp_username'] = '';
-$System_Config['smtp_port'] = '25';
-$System_Config['smtp_name'] = '';
-$System_Config['smtp_sender'] = '';
-$System_Config['smtp_passsword'] = '';
-$System_Config['smtp_ssl'] = 'false';
-
-# aws
-$System_Config['aws_access_key_id'] = '';
-$System_Config['aws_secret_access_key'] = '';
-
-
-#glzjin's time
-
-#功能开关
-$System_Config['enable_wecenter']='false';
-$System_Config['enable_radius']='false';
-$System_Config['enable_cloudxns']='false';
-$System_Config['enable_duoshuo']='false';
-
-
-
-
-#用户过期时间,在注册时设置。(天)
-$System_Config['user_expire_in_default']='99999';
-
-#Radius数据库设置
-$System_Config['radius_db_host']='';
-$System_Config['radius_db_database']='';
-$System_Config['radius_db_user']='';
-$System_Config['radius_db_password']='';
-
-#Radius连接密钥
-$System_Config['radius_secret']='';
-
-
-
-
-#多说设置
-$System_Config['duoshuo_shortname']="";
-$System_Config['duoshuo_apptoken']="";
-
-
-#节点离线设置
-$System_Config['node_offline_warn']='true';
-
-#异地登陆提示
-$System_Config['login_warn']='true';
-
-#端口池
-$System_Config['min_port']='10000';
-$System_Config['max_port']='65535';
-
-#两种方式相对于ss端口的偏移
-$System_Config['pacp_offset']='-20000';
-$System_Config['pacpp_offset']='-20000';
-
-#测速周期/h
-$System_Config['Speedtest_duration']='6';
-
-
-#随机分组,注册时随机分配到的分组,多个分组请用英文半角逗号分隔。
-$System_Config['ramdom_group']='0';
-
-#Wecenter 数据库信息
-$System_Config['wecenter_db_host']='localhost';
-$System_Config['wecenter_db_database']='';
-$System_Config['wecenter_db_user']='';
-$System_Config['wecenter_db_password']='';
-
-#系统根域名 zhaoj.in 这样
-$System_Config['wecenter_system_main_domain']='';
-
-#访问路径,不开启这个功能的话就清空这个设置项吧
-$System_Config['wecenter_url']='http://help.';
-
-#可从安装好的 wecenter 目录下的 system/config.inc.php 得到
-
-#G_COOKIE_PREFIX
-$System_Config['wecenter_cookie_prefix']='mmg_';
-
-#G_COOKIE_HASH_KEY
-$System_Config['wecenter_cookie_key']='';
-
-#充值返利百分比
-$System_Config['code_payback']='20';
-
-#注册时的流量重置日以及需要重置的流量,0不重置
-$System_Config['reg_auto_reset_day']='0';
-$System_Config['reg_auto_reset_bandwidth']='100';
-
-#Cloudxns
-$System_Config['cloudxns_apikey']='';#自己去 cloudxns.net 申请
-$System_Config['cloudxns_apisecret']='';
-$System_Config['cloudxns_domain']='zhaoj.in';#你的域名
-
-
-
-#自动备份设置
-$System_Config['enable_auto_backup']='false';
-$System_Config['auto_backup_email']='your email';
-$System_Config['auto_backup_webroot']='your base dir ,such as /home/wwwroot/ss.panel/';
-$System_Config['auto_backup_passwd']='zip password';
-
-
-#跳转延时,ms
-$System_Config['jump_delay']='1800';
-
-
-
-#是否启用邀请码注册
-$System_Config['enable_invite_code']='false';
-
-#是否启用邮箱验证码
-$System_Config['enable_email_verify']='false';
-
-#邮箱验证码有效期
-$System_Config['email_verify_ttl']='3600';
-
-#单IP可请求验证码次数(上面那个周期内)
-$System_Config['email_verify_iplimit']='10';
-
-
-#注册时默认加密方式
-$System_Config['reg_method']='rc4-md5';
-
-#注册时默认协议
-$System_Config['reg_protocol']='origin';
-
-#注册时默认协议参数
-$System_Config['reg_protocol_param']='';
-
-#注册时默认混淆方式
-$System_Config['reg_obfs']='plain';
-
-#注册时默认混淆参数
-$System_Config['reg_obfs_param']='';
-
-#注册时默认禁止访问IP列表,半角英文逗号分割
-$System_Config['reg_forbidden_ip']='127.0.0.0/8,::1/128';
-
-#注册时默认禁止访问端口列表,半角英文逗号分割,支持端口段
-$System_Config['reg_forbidden_port']='';
-
-#是否将登陆线程和IP绑定
-$System_Config['enable_login_bind_ip']='true';
-
-
-
-#等级到期时是否重置流量
-$System_Config['enable_class_expire_reset']='true';
-
-#等级到期时重置为的流量值,GB
-$System_Config['enable_class_expire_reset_traffic']='0';
-
-#账户到期时是否重置流量
-$System_Config['enable_account_expire_reset']='true';
-
-#账户到期时重置为的流量值,GB
-$System_Config['enable_account_expire_reset_traffic']='0';
-
-#购买时是否重置流量
-$System_Config['enable_bought_reset']='true';
-
-#账户到期之后是否会删除账户
-$System_Config['enable_account_expire_delete']='true';
-
-#账户到期几天之后会删除账户
-$System_Config['enable_account_expire_delete_days']='0';
-
-#验证码相关设置,自己去 Geetest.com 申请
-$System_Config['geetest_id']='';
-$System_Config['geetest_key']='';
-
-#启用注册验证码
-$System_Config['enable_geetest_reg']='false';
-
-#启用登录验证码
-$System_Config['enable_geetest_login']='false';
-
-#启用签到验证码
-$System_Config['enable_geetest_checkin']='false';
-
-#自动清理多少天没签到的0级用户
-$System_Config['enable_auto_clean_uncheck']='false';
-$System_Config['enable_auto_clean_uncheck_days']='7';
-
-
-#自动清理多少天没使用的0级用户
-$System_Config['enable_auto_clean_unused']='false';
-$System_Config['enable_auto_clean_unused_days']='30';
-
-
-#是否夹带统计代码,自己在 resources/views/{主题名} 下创建一个 analytics.tpl ,如果有必要就用 literal 界定符
-$System_Config['enable_analytics_code']='false';
-
-#是否启用捐赠相关功能
-$System_Config['enable_donate']='true';
-
-#telegram bot,是否启用
-$System_Config['enable_telegram']='false';
-
-#telegram bot,bot 的 token ,跟 father bot 申请
-$System_Config['telegram_token']='';
-
-#telegram bot,群组会话 ID,把机器人拉进群里之后跟他 /ping 一下即可得到。
-$System_Config['telegram_chatid']='';
-
-#多用户混淆参数后缀
-$System_Config['mu_suffix']='baidu.com';
-
-#多用户混淆参数表达式,%5m代表取用户特征 md5 的前五位,%id 代表用户id,%suffix 代表上面这个后缀。
-$System_Config['mu_regex']='%5m%id.%suffix';
-
-
-#图灵机器人
-$System_Config['enable_tuling']='false';
-$System_Config['tuling_apikey']='';
-$System_Config['tuling_apisecert']='';
-
-#Telegram 机器人账号
-$System_Config['telegram_bot']='_bot';
-
-#Telegram 机器人在群组中不回应
-$System_Config['telegram_group_quiet']='false';
-
-#二维码解码方式,online,phpzbar,zxing_online,zxing_local
-$System_Config['telegram_qrcode']='zxing_local';
-
-#Telegram 机器人请求Key,随意设置,由大小写英文和数字组成,复杂一些,用于校验请求,更新这个参数之后请 php xcat setTelegram
-$System_Config['telegram_request_token']='sjhueAMAndnenw2k2k1mmsJSJWMWiwiwthgfhgfh';
-
-# sendgrid
-$System_Config['sendgrid_key'] = '';
-$System_Config['sendgrid_sender'] = '';
-
-
-#支付系统
-
-#取值 paymentwall,zfbjk,spay,none
-$System_Config['payment_system']='f2fpay';
-
-#PaymentWall
-$System_Config['pmw_publickey']='';
-$System_Config['pmw_privatekey']='';
-$System_Config['pmw_widget']='m2_1';
-$System_Config['pmw_height']='350px';
-
-#alipay,spay
-$System_Config['alipay_id']='';
-$System_Config['alipay_key']='';
-
-#alipay,zfbjk.com
-$System_Config['zfbjk_pid']='';
-$System_Config['zfbjk_key']='';
-$System_Config['zfbjk_qrcodeurl']='https://www.zhaojin97.cn/wp-content/uploads/2016/01/630c50ab52bc139b2a33af8cc64e47ad2016010111570425541.jpg';
-
-#alipay,f2fpay ---> https://91vps.club/2017/06/09/alipay_f2f_ss_panel_mod/
-$System_Config['f2fpay_app_id']='';
-$System_Config['f2fpay_p_id']='';
-$System_Config['alipay_public_key']='';
-$System_Config['merchant_private_key']='';
-$System_Config['f2fpay_activate_key']=''; #请联系 https://t.me/gh012363
-
-
-#不安全中转模式,这个开启之后使用除了 auth_aes128_md5 或者 auth_aes128_sha1 以外的协议地用户也可以设置和使用中转,但是,强烈推荐不开启。
-$System_Config['relay_insecure_mode']='false';
diff --git a/config/.config.php.example b/config/.config.php.example
index af50614..e38077e 100644
--- a/config/.config.php.example
+++ b/config/.config.php.example
@@ -6,7 +6,7 @@
$System_Config['key'] = '';
$System_Config['debug'] = 'false'; // 正式环境请确保为false
$System_Config['appName'] = ''; //站点名称
-$System_Config['baseUrl'] = 'https://zhaojin97.cn'; // 站点地址
+$System_Config['baseUrl'] = 'http://ss.91vps.club'; // 站点地址
$System_Config['timeZone'] = 'PRC'; // PRC 天朝时间 UTC 格林时间
$System_Config['pwdMethod'] = 'sha256'; // 密码加密 可选 md5,sha256
$System_Config['salt'] = ''; // 密码加密用,从旧版升级请留空
@@ -19,7 +19,7 @@ $System_Config['tokenDriver'] = 'db';
//$System_Config['version'] = 'Glzjin mod-2016042210000';
// mu key 用于校验ss-go mu的请求,半角逗号分隔
-$System_Config['muKey'] = '';
+$System_Config['muKey'] = 'mmmwhy';
// 邮件
$System_Config['mailDriver'] = 'mailgun'; // mailgun or smtp or sendgrid
@@ -36,9 +36,9 @@ $System_Config['inviteNum'] = '0';
# database 数据库配置
$System_Config['db_driver'] = 'mysql';
$System_Config['db_host'] = 'localhost';
-$System_Config['db_database'] = '';
-$System_Config['db_username'] = '';
-$System_Config['db_password'] = '';
+$System_Config['db_database'] = 'sspanel';
+$System_Config['db_username'] = 'root';
+$System_Config['db_password'] = 'root';
$System_Config['db_charset'] = 'utf8';
$System_Config['db_collation'] = 'utf8_general_ci';
$System_Config['db_prefix'] = '';
@@ -168,10 +168,10 @@ $System_Config['jump_delay']='1800';
#是否启用邀请码注册
-$System_Config['enable_invite_code']='true';
+$System_Config['enable_invite_code']='false';
#是否启用邮箱验证码
-$System_Config['enable_email_verify']='true';
+$System_Config['enable_email_verify']='false';
#邮箱验证码有效期
$System_Config['email_verify_ttl']='3600';
@@ -297,7 +297,7 @@ $System_Config['sendgrid_sender'] = '';
#支付系统
#取值 paymentwall,zfbjk,spay,none
-$System_Config['payment_system']='none';
+$System_Config['payment_system']='f2fpay';
#PaymentWall
$System_Config['pmw_publickey']='';
@@ -314,11 +314,13 @@ $System_Config['zfbjk_pid']='';
$System_Config['zfbjk_key']='';
$System_Config['zfbjk_qrcodeurl']='https://www.zhaojin97.cn/wp-content/uploads/2016/01/630c50ab52bc139b2a33af8cc64e47ad2016010111570425541.jpg';
-#alipay,f2fpay
+#alipay,f2fpay ---> https://91vps.club/2017/06/09/alipay_f2f_ss_panel_mod/
$System_Config['f2fpay_app_id']='';
$System_Config['f2fpay_p_id']='';
$System_Config['alipay_public_key']='';
$System_Config['merchant_private_key']='';
+$System_Config['f2fpay_activate_key']=''; #请联系 https://t.me/gh012363
+
#不安全中转模式,这个开启之后使用除了 auth_aes128_md5 或者 auth_aes128_sha1 以外的协议地用户也可以设置和使用中转,但是,强烈推荐不开启。
$System_Config['relay_insecure_mode']='false';
diff --git a/resources/views/material/user/nodeinfo.tpl b/resources/views/material/user/nodeinfo.tpl
index 3a5edc0..ad24444 100644
--- a/resources/views/material/user/nodeinfo.tpl
+++ b/resources/views/material/user/nodeinfo.tpl
@@ -26,7 +26,7 @@
注意!
配置文件以及二维码请勿泄露!
-
+
@@ -43,13 +43,13 @@
协议参数:{$user->protocol_param}
混淆:{$user->obfs}
混淆参数:{$user->obfs_param}
-
+
-
+
-
+
@@ -61,11 +61,11 @@
android Android
phone_iphone iOS
-
+
-
+
@@ -73,11 +73,11 @@
SSR-Python 配置Json
-
+
-
+
@@ -89,11 +89,11 @@
Android 手机上用默认浏览器打开点我就可以直接添加了(给 SSR)
iOS 上用 Safari 打开点我就可以直接添加了(给 Shadowrocket)
-
+
-
+
{if $mu == 0}
-
+
{/if}
-
-
-
-
-
-
SSR 旧版(3.8.3之前)配置二维码
-
-
-
-
-
-
-
+
-
SSR 新版(3.8.3之后)配置二维码
+
SSR 配置二维码
-
+
-
-
+
+
{if $mu == 0}
@@ -147,7 +133,7 @@
iOS9 上 Surge 配置
-
+
您要先安装 surge 。
配置的话,直接下载生成好的配置文件,然后在 APP 里添加设置时选择 Download configuration from URL ,把地址粘贴进去添加。
@@ -159,12 +145,12 @@
-
+
{/if}
-
+
@@ -186,16 +172,11 @@
jQuery('#ss-qr').qrcode({
"text": text_qrcode
});
-
- var text_qrcode1 = '{$ssqr_s}';
- jQuery('#ss-qr-y').qrcode({
- "text": text_qrcode1
- });
-
+
var text_qrcode2 = '{$ssqr_s_new}';
jQuery('#ss-qr-n').qrcode({
"text": text_qrcode2
});
-
+