Compare commits

...

67 Commits
master ... dev

Author SHA1 Message Date
laurieryayoi 5bb9f75a56 添加TG二维码验证 8 years ago
laurieryayoi 57aba1dbac 添加TG登录功能 8 years ago
CGDF e0587f99c3 统一微教程文案 8 years ago
NimaQu 2d87ccba41
test 8 years ago
CGDF 9fde31ba60
Update README.md 8 years ago
laurieryayoi 2c9a493a66 添加首页的checkbox及passwd页面 8 years ago
laurieryayoi 95e64cfc4e Merge branch 'dev' of https://github.com/NimaQu/ss-panel-v3-mod_Uim into dev 8 years ago
CGDF 8e6313dd1b 修复每次都会出现的赠品。。。 8 years ago
CGDF 40cfcaa07d 恢复用户公告列表 8 years ago
laurieryayoi 04568215dd Merge branch 'dev' of https://github.com/NimaQu/ss-panel-v3-mod_Uim into dev 8 years ago
laurieryayoi 8eb95e7ac5 CSS细化 8 years ago
CGDF bb39517332
Merge pull request #491 from rico93/nimaqu_dev
增加tg bot 重置订阅链接功能
8 years ago
laurieryayoi 15f4703d3e 添加loading画面 8 years ago
laurieryayoi 7d4b370be0 替换掉竟然有200K的favicon 8 years ago
Rico 7df1fff97a 增加重置订阅链接功能 8 years ago
laurieryayoi bbc5ecc5d3 修复获取code时query undefined导致的函数运行中断 8 years ago
laurieryayoi 730e825d3c index邀请码完善 8 years ago
laurieryayoi ebbaba5d55 fix bug 8 years ago
laurieryayoi 88a2cb7364 今日诗词&完善前端路由 8 years ago
laurieryayoi 5ee1a12cb8 修复geetest未验证报错 8 years ago
laurieryayoi ddbe7a8d7e 添加关闭验证码时判断 8 years ago
laurieryayoi e6ab15c44b index页面UI细化 8 years ago
laurieryayoi 87e9fdc81f index页面前后端分离 8 years ago
CGDF 90c6690dd4
Merge pull request #488 from rico93/nimaqu_dev
修改订阅回复样式为InlineKeyboardMarkup,相对简洁些
8 years ago
CGDF de3e744ed7
Update TelegramProcess.php 8 years ago
Rico b9f2c6cb13 删除多余信息 8 years ago
Rico 6ca36867a4 修改订阅样式,改成了InlineKeyboardMarkup 8 years ago
laurieryayoi 47a58606c7 Merge branch 'dev' of https://github.com/NimaQu/ss-panel-v3-mod_Uim into dev 8 years ago
laurieryayoi b1ba37efce messager组件&vuex状态管理 8 years ago
NimaQu 79a93d0d3c
Update README.md 8 years ago
CGDF 06aa84fcd3 修复SSD订阅分组 8 years ago
laurieryayoi ce17049397 index页面user界面Api 8 years ago
laurieryayoi 5e38694377 index页面鉴权强化 8 years ago
NimaQu 8b2c5ee896
Revert "删除enable_analytics_code"
This reverts commit 900fb910d0.
8 years ago
CGDF 560df810d6 修复周报统计BUG 8 years ago
CGDF 900fb910d0 删除enable_analytics_code 8 years ago
laurieryayoi 1d2e92e626 index页面邮箱验证 8 years ago
laurieryayoi b7b91eaa11 index页注册邀请码相关 8 years ago
CGDF 02e860e72f
Merge pull request #485 from rico93/nimaqu_dev
增加sendDailyUsage代码部分对无法找到chat的异常处理
8 years ago
Rico 8d8566ae92 修改message 8 years ago
Rico 36de4e8ee3 增加异常处理,修改了USER model 获取attributs的接口 8 years ago
laurieryayoi 708661ae5c index添加注册页面&登出时路 由调整 8 years ago
CGDF d7f4707f63
Merge pull request #482 from rico93/nimaqu_dev
add bot订阅信息回复
8 years ago
Rico 3dff6557f7 增加每日使用量推送,设置的话和sendDailyMail一样增加定时任务 8 years ago
Anankke b8a456980e
重新增加群组链接 8 years ago
laurieryayoi fb83cb796b 降低渲染耦合 8 years ago
laurieryayoi 2a4701f58a 完善登录验证和路由跳转 8 years ago
Rico e28cb02f15 忘记clash 订阅了 8 years ago
Rico e63cfab266 增加help 说明 8 years ago
Rico ef45ae7407 add bot订阅信息回复 8 years ago
laurieryayoi 1f08dd0ee9 index页面登录功能 8 years ago
NimaQu fff26da0ae
update aff 8 years ago
laurieryayoi 6a52234dab new_index(demo) 8 years ago
laurieryayoi 27302cc64c 一言ajax 8 years ago
chen 6f6c9696a2 chenPay完善支付取消流程 8 years ago
CGDF 7354c868c4 修复手残BUG 8 years ago
CGDF 028cbdcf15 修复ss导出剪贴板 8 years ago
CGDF 486d0c660d 更新mac端教程 8 years ago
CGDF 32f285d8dc 移除早已不再生效的【自定义acl/pac/surge】 8 years ago
CGDF b29c9a845b 优化报错文字 8 years ago
CGDF 4900fd6440 清除膜蛤文字 8 years ago
CGDF af82da5668 修复流量除零错误*2 8 years ago
CGDF bc5d07a98e 修复流量为0时的除零错误 8 years ago
錢爸爸 12d567c272
fix:進度條的邏輯 8 years ago
錢爸爸 97624e65ac
優化進度條
全部元素加載完畢再執行關閉進度條動作
8 years ago
錢爸爸 4fc91fe414
增加首頁進度條 8 years ago
laurieryayoi 695f868560 chenpay界面排版 8 years ago

@ -10,7 +10,8 @@
- **优化**:css和js等置入本地提升加载速度 - **优化**:css和js等置入本地提升加载速度
- 增加**v2Ray** 功能,详情请看 [wiki](https://github.com/NimaQu/ss-panel-v3-mod_Uim/wiki/v2ray-%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B) - 增加**v2Ray** 功能,详情请看 [wiki](https://github.com/NimaQu/ss-panel-v3-mod_Uim/wiki/v2ray-%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B)
Telegram 频道 :https://t.me/sspanel_Uim Telegram 频道 :https://t.me/sspanel_Uim
演示站: [demo.nimaqu.com](https://demo.nimaqu.com) 账号和密码都是 admin 对接节点的 mukey=NimaQu 演示站: [demo.nimaqu.com](https://demo.nimaqu.com) 账号和密码都是 admin 对接节点的 mukey=NimaQu
@ -89,20 +90,21 @@ Wiki已经启用,欢迎为此面板维护wiki
您对我们的帮助将是支持我们做下去的动力,只需您在购买部分产品或向他人推荐产品时从我们的返利链接购买,这就是对我们很大的支持了。~~没有钱了,肯定要做啊,不做没有钱用啊,打工是不可能打工的,这辈子不可能打工的~~ 您对我们的帮助将是支持我们做下去的动力,只需您在购买部分产品或向他人推荐产品时从我们的返利链接购买,这就是对我们很大的支持了。~~没有钱了,肯定要做啊,不做没有钱用啊,打工是不可能打工的,这辈子不可能打工的~~
##### dumplin ##### dumplin
- [码支付-微信收款功能开通](https://codepay.fateqq.com/i/39756) - [码支付-微信收款功能开通](https://codepay.fateqq.com/i/39756)
##### galaxychuck ##### galaxychuck
- [黛米付-支付接入](https://www.daimiyun.cn/register.php?aff=624) - [黛米付-支付接入](https://www.daimiyun.cn/register.php?aff=624)
- [冲上云霄云主机](http://console.soar-clouds.com/aff.php?aff=94) - [冲上云霄云主机](http://console.soar-clouds.com/aff.php?aff=94)
- [Vultr](https://www.vultr.com/?ref=7205737) - [Vultr](https://www.vultr.com/?ref=7205737)
[Nymph 的前端课程报名](t.me/kinokonominoco) [laurieryayoi 的前端课程报名](https://t.me/kinokonominoco)
# 免责声明 ## 免责声明
本程序由 MIT License 授权。**不提供任何担保**。使用本程序即表明,您知情并同意:程序开发者不对此程序导致的任何服务中断、数据损失或任何少见未列出的事故负责。 本程序由 MIT License 授权。**不提供任何担保**。使用本程序即表明,您知情并同意:程序开发者不对此程序导致的任何服务中断、数据损失或任何少见未列出的事故负责。

@ -98,8 +98,8 @@ class FinanceMail
{ {
$datatables = new Datatables(new DatatablesHelper()); $datatables = new Datatables(new DatatablesHelper());
$datatables->query( $datatables->query(
'select code.number from code 'SELECT code.number FROM code
where yearweek(date_format(code.usedatetime,\'%Y-%m-%d\')) = yearweek(now())-1 and code.isused= 1'); WHERE DATEDIFF(NOW(),code.usedatetime) <=7 AND DATEDIFF(NOW(),code.usedatetime) >=1 AND code.isused = 1');
//每周的第一天是周日,因此统计周日~周六的七天 //每周的第一天是周日,因此统计周日~周六的七天
$text_json=$datatables->generate(); $text_json=$datatables->generate();
$text_array=json_decode($text_json,true); $text_array=json_decode($text_json,true);

@ -89,6 +89,8 @@ class XCat
return $this->resetAllPort(); return $this->resetAllPort();
case("update"): case("update"):
return Update::update($this); return Update::update($this);
case ("sendDailyUsageByTG"):
return $this->sendDailyUsageByTG();
default: default:
return $this->defaultAction(); return $this->defaultAction();
} }
@ -122,12 +124,12 @@ class XCat
$rule->port = $user->port; $rule->port = $user->port;
$rule->save(); $rule->save();
} }
if ($user->save()) { if ($user->save()) {
echo "重置成功!\n"; echo "重置成功!\n";
} }
} }
public function resetAllPort() public function resetAllPort()
{ {
$users = User::all(); $users = User::all();
@ -269,4 +271,22 @@ class XCat
echo("finish...."); echo("finish....");
} }
} }
public function sendDailyUsageByTG()
{
$bot = new \TelegramBot\Api\BotApi(Config::get('telegram_token'));
$users = User::where('telegram_id',">",0)->get();
foreach ($users as $user){
$reply_message ="您当前的流量状况:
今日已使用 " . $user->TodayusedTraffic() . " " . number_format(($user->u + $user->d - $user->last_day_t) / $user->transfer_enable * 100, 2) . "%
今日之前已使用 " . $user->LastusedTraffic() . " " . number_format($user->last_day_t / $user->transfer_enable * 100, 2) . "%
未使用 " . $user->unusedTraffic() . " " . number_format(($user->transfer_enable - ($user->u + $user->d)) / $user->transfer_enable * 100, 2) . "%
";
try{
$bot->sendMessage($user->get_user_attributes("telegram_id"), $reply_message , $parseMode = null, $disablePreview = false, $replyToMessageId = null);
} catch (\TelegramBot\Api\HttpException $e){
echo 'Message: 用户: '.$user->get_user_attributes("user_name")." 删除了账号或者屏蔽了宝宝";
}
}
}
} }

@ -64,6 +64,28 @@ class AuthController extends BaseController
->display('auth/login.tpl'); ->display('auth/login.tpl');
} }
public function getCaptcha($request, $response, $args) {
$GtSdk = null;
$recaptcha_sitekey = null;
if (Config::get('captcha_provider') != ''){
switch(Config::get('captcha_provider'))
{
case 'recaptcha':
$recaptcha_sitekey = Config::get('recaptcha_sitekey');
$res['recaptchaKey'] = $recaptcha_sitekey;
break;
case 'geetest':
$uid = time().rand(1, 10000) ;
$GtSdk = Geetest::get($uid);
$res['GtSdk'] = $GtSdk;
break;
}
}
$res['respon'] = 1;
return $response->getBody()->write(json_encode($res));
}
public function loginHandle($request, $response, $args) public function loginHandle($request, $response, $args)
{ {
// $data = $request->post('sdf'); // $data = $request->post('sdf');
@ -504,8 +526,8 @@ class AuthController extends BaseController
public function qrcode_check($request, $response, $args) public function qrcode_check($request, $response, $args)
{ {
$token = $request->getQueryParams()["token"]; $token = $request->getParam('token');
$number = $request->getQueryParams()["number"]; $number = $request->getParam('number');
if (Config::get('enable_telegram') == 'true') { if (Config::get('enable_telegram') == 'true') {
$ret = TelegramSessionManager::check_login_session($token, $number); $ret = TelegramSessionManager::check_login_session($token, $number);

@ -19,6 +19,7 @@ use App\Utils\QRcode;
use App\Utils\Pay; use App\Utils\Pay;
use App\Utils\TelegramProcess; use App\Utils\TelegramProcess;
use App\Utils\Spay_tool; use App\Utils\Spay_tool;
use App\Utils\Geetest;
/** /**
* HomeController * HomeController
@ -27,7 +28,46 @@ class HomeController extends BaseController
{ {
public function index() public function index()
{ {
return $this->view()->display('index.tpl'); $GtSdk = null;
$recaptcha_sitekey = null;
if (Config::get('captcha_provider') != ''){
switch(Config::get('captcha_provider'))
{
case 'recaptcha':
$recaptcha_sitekey = Config::get('recaptcha_sitekey');
break;
case 'geetest':
$uid = time().rand(1, 10000) ;
$GtSdk = Geetest::get($uid);
break;
}
}
if (Config::get('enable_telegram') == 'true') {
$login_text = TelegramSessionManager::add_login_session();
$login = explode("|", $login_text);
$login_token = $login[0];
$login_number = $login[1];
} else {
$login_token = '';
$login_number = '';
}
return $this->view()
->assign('geetest_html', $GtSdk)
->assign('login_token', $login_token)
->assign('login_number', $login_number)
->assign('telegram_bot', Config::get('telegram_bot'))
->assign('enable_logincaptcha', Config::get('enable_login_captcha'))
->assign('enable_regcaptcha', Config::get('enable_reg_captcha'))
->assign('base_url', Config::get('baseUrl'))
->assign('recaptcha_sitekey', $recaptcha_sitekey)
->display('index.tpl');
}
public function indexold()
{
return $this->view()->display('indexold.tpl');
} }
public function code() public function code()

@ -37,46 +37,6 @@ class LinkController extends BaseController
return "couldn't alloc token"; return "couldn't alloc token";
} }
public static function GenerateAclCode($address, $port, $userid, $geo, $method)
{
$Elink = Link::where("type", "=", 9)->where("address", "=", $address)->where("port", "=", $port)->where("userid", "=", $userid)->where("geo", "=", $geo)->where("method", "=", $method)->first();
if ($Elink != null) {
return $Elink->token;
}
$NLink = new Link();
$NLink->type = 9;
$NLink->address = $address;
$NLink->port = $port;
$NLink->ios = 0;
$NLink->geo = $geo;
$NLink->method = $method;
$NLink->userid = $userid;
$NLink->token = LinkController::GenerateRandomLink();
$NLink->save();
return $NLink->token;
}
public static function GenerateRouterCode($userid, $without_mu)
{
$Elink = Link::where("type", "=", 10)->where("userid", "=", $userid)->where("geo", $without_mu)->first();
if ($Elink != null) {
return $Elink->token;
}
$NLink = new Link();
$NLink->type = 10;
$NLink->address = "";
$NLink->port = 0;
$NLink->ios = 0;
$NLink->geo = $without_mu;
$NLink->method = "";
$NLink->userid = $userid;
$NLink->token = LinkController::GenerateRandomLink();
$NLink->save();
return $NLink->token;
}
public static function GenerateSSRSubCode($userid, $without_mu) public static function GenerateSSRSubCode($userid, $without_mu)
{ {
$Elink = Link::where("type", "=", 11)->where("userid", "=", $userid)->where("geo", $without_mu)->first(); $Elink = Link::where("type", "=", 11)->where("userid", "=", $userid)->where("geo", $without_mu)->first();
@ -107,494 +67,33 @@ class LinkController extends BaseController
return null; return null;
} }
switch ($Elink->type) { if($Elink->type!=11){
case 9: return null;
$newResponse = $response->withHeader('Content-type', ' application/octet-stream; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate')->withHeader('Content-Disposition', ' attachment; filename='.$token.'.acl');//->getBody()->write($builder->output()); }
$newResponse->getBody()->write(LinkController::GetAcl(User::where("id", "=", $Elink->userid)->first()));
return $newResponse; $user=User::where("id", $Elink->userid)->first();
case 10: if ($user == null) {
$user=User::where("id", $Elink->userid)->first(); return null;
if ($user == null) {
return null;
}
$is_ss = 0;
if (isset($request->getQueryParams()["is_ss"])) {
$is_ss = $request->getQueryParams()["is_ss"];
}
$newResponse = $response->withHeader('Content-type', ' application/octet-stream; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate')->withHeader('Content-Disposition', ' attachment; filename='.$token.'.sh');//->getBody()->write($builder->output());
$newResponse->getBody()->write(LinkController::GetRouter(User::where("id", "=", $Elink->userid)->first(), $Elink->geo, $is_ss));
return $newResponse;
case 11:
$user=User::where("id", $Elink->userid)->first();
if ($user == null) {
return null;
}
$max = 0;
if (isset($request->getQueryParams()["max"])) {
$max = (int)$request->getQueryParams()["max"];
}
$mu = 0;
if (isset($request->getQueryParams()["mu"])) {
$mu = (int)$request->getQueryParams()["mu"];
}
$newResponse = $response->withHeader('Content-type', ' application/octet-stream; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate')->withHeader('Content-Disposition', ' attachment; filename='.$token.'.txt');
$newResponse->getBody()->write(LinkController::GetSSRSub(User::where("id", "=", $Elink->userid)->first(), $mu, $max));
return $newResponse;
default:
break;
}
$newResponse = $response->withHeader('Content-type', ' application/x-ns-proxy-autoconfig; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate');//->getBody()->write($builder->output());
$newResponse->getBody()->write(LinkController::GetPac($type, $Elink->address, $Elink->port, User::where("id", "=", $Elink->userid)->first()->pac));
return $newResponse;
}
public static function GetPcConf($user, $is_mu = 0, $is_ss = 0)
{
if ($is_ss==0) {
$string='
{
"index" : 0,
"random" : false,
"sysProxyMode" : 0,
"shareOverLan" : false,
"bypassWhiteList" : false,
"localPort" : 1080,
"localAuthPassword" : "'.Tools::genRandomChar(26).'",
"dns_server" : "",
"reconnectTimes" : 4,
"randomAlgorithm" : 0,
"TTL" : 60,
"connect_timeout" : 5,
"proxyRuleMode" : 1,
"proxyEnable" : false,
"pacDirectGoProxy" : false,
"proxyType" : 0,
"proxyHost" : "",
"proxyPort" : 0,
"proxyAuthUser" : "",
"proxyAuthPass" : "",
"proxyUserAgent" : "",
"authUser" : "",
"authPass" : "",
"autoBan" : false,
"sameHostForSameTarget" : true,
"keepVisitTime" : 180,
"isHideTips" : true,
"token" : {
},
"portMap" : {
}
}
';
} else {
$string='
{
"strategy": null,
"index": 6,
"global": false,
"enabled": false,
"shareOverLan": false,
"isDefault": false,
"localPort": 1080,
"pacUrl": null,
"useOnlinePac": false,
"secureLocalPac": true,
"availabilityStatistics": false,
"autoCheckUpdate": false,
"checkPreRelease": false,
"isVerboseLogging": true,
"logViewer": {
"topMost": false,
"wrapText": false,
"toolbarShown": false,
"Font": "Consolas, 8pt",
"BackgroundColor": "Black",
"TextColor": "White"
},
"proxy": {
"useProxy": false,
"proxyType": 0,
"proxyServer": "",
"proxyPort": 0,
"proxyTimeout": 3
},
"hotkey": {
"SwitchSystemProxy": "",
"SwitchSystemProxyMode": "",
"SwitchAllowLan": "",
"ShowLogs": "",
"ServerMoveUp": "",
"ServerMoveDown": ""
}
}
';
}
$json=json_decode($string, true);
$temparray=array();
$items = URL::getAllItems($user, $is_mu, $is_ss);
foreach($items as $item) {
if ($is_ss==0) {
array_push($temparray, array("remarks"=>$item['remark'],
"server"=>$item['address'],
"server_port"=>$item['port'],
"method"=>$item['method'],
"obfs"=>$item['obfs'],
"obfsparam"=>$item['obfs_param'],
"remarks_base64"=>base64_encode($item['remark']),
"password"=>$item['passwd'],
"tcp_over_udp"=>false,
"udp_over_tcp"=>false,
"group"=>$item['group'],
"protocol"=>$item['protocol'],
"protoparam"=>$item['protocol_param'],
"protocolparam"=>$item['protocol_param'],
"obfs_udp"=>false,
"enable"=>true));
} else {
array_push($temparray, array("server"=>$item['address'],
"server_port"=>$item['port'],
"password"=>$item['passwd'],
"method"=>$item['method'],
"plugin"=>"obfs-local",
"plugin_opts"=>str_replace(',',';',URL::getSurgeObfs($item)),
"remarks"=>$item['remark'],
"timeout"=>5));
}
}
$json["configs"]=$temparray;
return json_encode($json, JSON_PRETTY_PRINT);
}
private static function GetPac($type, $address, $port, $defined)
{
header('Content-type: application/x-ns-proxy-autoconfig; charset=utf-8');
return LinkController::get_pac($type, $address, $port, true, $defined);
}
private static function GetAcl($user)
{
$rulelist = base64_decode(file_get_contents("https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"))."\n".$user->pac;
$gfwlist = explode("\n", $rulelist);
$count = 0;
$acl_content = '';
$find_function_content = '
#Generated by sspanel-glzjin-mod v3
#Time:'.date('Y-m-d H:i:s').'
[bypass_all]
';
$proxy_list = '[proxy_list]
';
$bypass_list = '[bypass_list]
';
$outbound_block_list = '[outbound_block_list]
';
$isget=array();
foreach ($gfwlist as $index=>$rule) {
if (empty($rule)) {
continue;
} elseif (substr($rule, 0, 1) == '!' || substr($rule, 0, 1) == '[') {
continue;
}
if (substr($rule, 0, 2) == '@@') {
// ||开头表示前面还有路径
if (substr($rule, 2, 2) =='||') {
//$rule_reg = preg_match("/^((http|https):\/\/)?([^\/]+)/i",substr($rule, 2), $matches);
$host = substr($rule, 4);
//preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN,".$host.",DIRECT,force-remote-dns\n";
$bypass_list .= $host."\n";
continue;
// !开头相当于正则表达式^
} elseif (substr($rule, 2, 1) == '|') {
preg_match("/(\d{1,3}\.){3}\d{1,3}/", substr($rule, 3), $matches);
if (!isset($matches[0])) {
continue;
}
$host = $matches[0];
if ($host != "") {
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="IP-CIDR,".$host."/32,DIRECT,no-resolve \n";
$bypass_list .= $host."/32\n";
continue;
} else {
preg_match_all("~^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?~i", substr($rule, 3), $matches);
if (!isset($matches[4][0])) {
continue;
}
$host = $matches[4][0];
if ($host != "") {
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN-SUFFIX,".$host.",DIRECT,force-remote-dns\n";
$bypass_list .= $host."\n";
continue;
}
}
} elseif (substr($rule, 2, 1) == '.') {
$host = substr($rule, 3);
if ($host != "") {
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN-SUFFIX,".$host.",DIRECT,force-remote-dns \n";
$bypass_list .= $host."\n";
continue;
}
}
}
// ||开头表示前面还有路径
if (substr($rule, 0, 2) =='||') {
//$rule_reg = preg_match("/^((http|https):\/\/)?([^\/]+)/i",substr($rule, 2), $matches);
$host = substr($rule, 2);
//preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
if (strpos($host, "*")!==false) {
$host = substr($host, strpos($host, "*")+1);
if (strpos($host, ".")!==false) {
$host = substr($host, strpos($host, ".")+1);
}
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN-KEYWORD,".$host.",Proxy,force-remote-dns\n";
$proxy_list .= $host."\n";
continue;
}
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN,".$host.",Proxy,force-remote-dns\n";
$proxy_list .= $host."\n";
// !开头相当于正则表达式^
} elseif (substr($rule, 0, 1) == '|') {
preg_match("/(\d{1,3}\.){3}\d{1,3}/", substr($rule, 1), $matches);
if (!isset($matches[0])) {
continue;
}
$host = $matches[0];
if ($host != "") {
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
preg_match("/(\d{1,3}\.){3}\d{1,3}\/\d{1,2}/", substr($rule, 1), $matches_ips);
if (!isset($matches_ips[0])) {
$proxy_list .= $host."/32\n";
} else {
$host = $matches_ips[0];
$proxy_list .= $host."\n";
}
//$find_function_content.="IP-CIDR,".$host."/32,Proxy,no-resolve \n";
continue;
} else {
preg_match_all("~^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?~i", substr($rule, 1), $matches);
if (!isset($matches[4][0])) {
continue;
}
$host = $matches[4][0];
if (strpos($host, "*")!==false) {
$host = substr($host, strpos($host, "*")+1);
if (strpos($host, ".")!==false) {
$host = substr($host, strpos($host, ".")+1);
}
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN-KEYWORD,".$host.",Proxy,force-remote-dns\n";
$proxy_list .= $host."\n";
continue;
}
if ($host != "") {
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN-SUFFIX,".$host.",Proxy,force-remote-dns\n";
$proxy_list .= $host."\n";
continue;
}
}
} else {
$host = substr($rule, 0);
if (strpos($host, "/")!==false) {
$host = substr($host, 0, strpos($host, "/"));
}
if ($host != "") {
if (isset($isget[$host])) {
continue;
}
$isget[$host]=1;
//$find_function_content.="DOMAIN-KEYWORD,".$host.",PROXY,force-remote-dns \n";
$proxy_list .= $host."\n";
continue;
}
}
$count = $count + 1;
}
$acl_content .= $find_function_content."\n".$proxy_list."\n".$bypass_list."\n".$outbound_block_list;
return $acl_content;
}
/**
* This is a php implementation of autoproxy2pac
*/
private static function reg_encode($str)
{
$tmp_str = $str;
$tmp_str = str_replace('/', "\\/", $tmp_str);
$tmp_str = str_replace('.', "\\.", $tmp_str);
$tmp_str = str_replace(':', "\\:", $tmp_str);
$tmp_str = str_replace('%', "\\%", $tmp_str);
$tmp_str = str_replace('*', ".*", $tmp_str);
$tmp_str = str_replace('-', "\\-", $tmp_str);
$tmp_str = str_replace('&', "\\&", $tmp_str);
$tmp_str = str_replace('?', "\\?", $tmp_str);
$tmp_str = str_replace('+', "\\+", $tmp_str);
return $tmp_str;
}
private static function get_pac($proxy_type, $proxy_host, $proxy_port, $proxy_google, $defined)
{
$rulelist = base64_decode(file_get_contents("https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"))."\n".$defined;
$gfwlist = explode("\n", $rulelist);
if ($proxy_google == "true") {
$gfwlist[] = ".google.com";
}
$count = 0;
$pac_content = '';
$find_function_content = 'function FindProxyForURL(url, host) { var PROXY = "'.$proxy_type.' '.$proxy_host.':'.$proxy_port.'; DIRECT"; var DEFAULT = "DIRECT";'."\n";
foreach ($gfwlist as $index=>$rule) {
if (empty($rule)) {
continue;
} elseif (substr($rule, 0, 1) == '!' || substr($rule, 0, 1) == '[') {
continue;
}
$return_proxy = 'PROXY';
// @@开头表示默认是直接访问
if (substr($rule, 0, 2) == '@@') {
$rule = substr($rule, 2);
$return_proxy = "DEFAULT";
} }
// ||开头表示前面还有路径 $mu = 0;
if (substr($rule, 0, 2) =='||') { if (isset($request->getQueryParams()["mu"])) {
$rule_reg = "^[\\w\\-]+:\\/+(?!\\/)(?:[^\\/]+\\.)?".LinkController::reg_encode(substr($rule, 2)); $mu = (int)$request->getQueryParams()["mu"];
// !开头相当于正则表达式^
} elseif (substr($rule, 0, 1) == '|') {
$rule_reg = "^" . LinkController::reg_encode(substr($rule, 1));
// 前后匹配的/表示精确匹配
} elseif (substr($rule, 0, 1) == '/' && substr($rule, -1) == '/') {
$rule_reg = substr($rule, 1, strlen($rule) - 2);
} else {
$rule_reg = LinkController::reg_encode($rule);
}
// 以|结尾,替换为$结尾
if (preg_match("/\|$/i", $rule_reg)) {
$rule_reg = substr($rule_reg, 0, strlen($rule_reg) - 1)."$";
}
$find_function_content.='if (/' . $rule_reg . '/i.test(url)) return '.$return_proxy.';'."\n";
$count = $count + 1;
} }
$find_function_content.='return DEFAULT;'."}";
$pac_content.=$find_function_content;
return $pac_content;
}
public static function GetRouter($user, $is_mu = 0, $is_ss = 0)
{
$bash = '#!/bin/sh'."\n";
$bash .= 'export PATH=\'/opt/usr/sbin:/opt/usr/bin:/opt/sbin:/opt/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin\''."\n";
$bash .= 'export LD_LIBRARY_PATH=/lib:/opt/lib'."\n";
$bash .= 'nvram set ss_type='.($is_ss == 1 ? '0' : '1')."\n";
$count = 0; $newResponse = $response->withHeader('Content-type', ' application/octet-stream; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate')->withHeader('Content-Disposition', ' attachment; filename='.$token.'.txt');
$newResponse->getBody()->write(LinkController::GetSSRSub(User::where("id", "=", $Elink->userid)->first(), $mu));
$items = URL::getAllItems($user, $is_mu, $is_ss); return $newResponse;
foreach($items as $item) {
if($is_ss == 0) {
$bash .= 'nvram set rt_ss_name_x'.$count.'="'.$item['remark']."\"\n";
$bash .= 'nvram set rt_ss_port_x'.$count.'='.$item['port']."\n";
$bash .= 'nvram set rt_ss_password_x'.$count.'="'.$item['passwd']."\"\n";
$bash .= 'nvram set rt_ss_server_x'.$count.'='.$item['address']."\n";
$bash .= 'nvram set rt_ss_usage_x'.$count.'="'."-o ".$item['obfs']." -g ".$item['obfs_param']." -O ".$item['protocol']." -G ".$item['protocol_param']."\"\n";
$bash .= 'nvram set rt_ss_method_x'.$count.'='.$item['method']."\n";
$count += 1;
}else{
$bash .= 'nvram set rt_ss_name_x'.$count.'="'.$item['remark']."\"\n";
$bash .= 'nvram set rt_ss_port_x'.$count.'='.$item['port']."\n";
$bash .= 'nvram set rt_ss_password_x'.$count.'="'.$item['passwd']."\"\n";
$bash .= 'nvram set rt_ss_server_x'.$count.'='.$item['address']."\n";
$bash .= 'nvram set rt_ss_usage_x'.$count.'=""'."\n";
$bash .= 'nvram set rt_ss_method_x'.$count.'='.$item['method']."\n";
$count += 1;
}
}
$bash .= "nvram set rt_ssnum_x=".$count."\n";
return $bash;
} }
const V2RYA_MU = 2; const V2RYA_MU = 2;
const SSD_MU = 3; const SSD_MU = 3;
const CLASH_MU = 4; const CLASH_MU = 4;
public static function GetSSRSub($user, $mu = 0, $max = 0) public static function GetSSRSub($user, $mu = 0)
{ {
if ($mu==0||$mu==1) { if ($mu==0||$mu==1) {
return Tools::base64_url_encode(URL::getAllUrl($user, $mu, 0, 1)); return Tools::base64_url_encode(URL::getAllUrl($user, $mu, 0));
} }
elseif ($mu == LinkController::V2RYA_MU){ elseif ($mu == LinkController::V2RYA_MU){
return Tools::base64_url_encode(URL::getAllVMessUrl($user)); return Tools::base64_url_encode(URL::getAllVMessUrl($user));

@ -170,7 +170,7 @@ class RelayController extends UserController
)->where('type', 1)->where('sort', 10)->where("node_class", "<=", $user->class)->first(); )->where('type', 1)->where('sort', 10)->where("node_class", "<=", $user->class)->first();
if ($source_node == null) { if ($source_node == null) {
$rs['ret'] = 0; $rs['ret'] = 0;
$rs['msg'] = "美国的华莱士"; $rs['msg'] = "起源节点错误";
return $response->getBody()->write(json_encode($rs)); return $response->getBody()->write(json_encode($rs));
} }
@ -195,7 +195,7 @@ class RelayController extends UserController
if ($dist_node == null) { if ($dist_node == null) {
$rs['ret'] = 0; $rs['ret'] = 0;
$rs['msg'] = "不知道比你们高到哪里去了"; $rs['msg'] = "目标节点错误";
return $response->getBody()->write(json_encode($rs)); return $response->getBody()->write(json_encode($rs));
} }
@ -207,7 +207,7 @@ class RelayController extends UserController
)->where('type', 1)->where('sort', 9)->where("node_class", "<=", $user->class)->first(); )->where('type', 1)->where('sort', 9)->where("node_class", "<=", $user->class)->first();
if ($port_raw == null && $port != $user->port) { if ($port_raw == null && $port != $user->port) {
$rs['ret'] = 0; $rs['ret'] = 0;
$rs['msg'] = "我和他谈笑风生"; $rs['msg'] = "端口错误";
return $response->getBody()->write(json_encode($rs)); return $response->getBody()->write(json_encode($rs));
} }
@ -324,7 +324,7 @@ class RelayController extends UserController
)->where('type', 1)->where('sort', 10)->where("node_class", "<=", $user->class)->first(); )->where('type', 1)->where('sort', 10)->where("node_class", "<=", $user->class)->first();
if ($source_node == null) { if ($source_node == null) {
$rs['ret'] = 0; $rs['ret'] = 0;
$rs['msg'] = "我告诉你们我是身经百战了"; $rs['msg'] = "起源节点错误";
return $response->getBody()->write(json_encode($rs)); return $response->getBody()->write(json_encode($rs));
} }
@ -349,7 +349,7 @@ class RelayController extends UserController
if ($dist_node == null) { if ($dist_node == null) {
$rs['ret'] = 0; $rs['ret'] = 0;
$rs['msg'] = "见得多了"; $rs['msg'] = "目标节点错误";
return $response->getBody()->write(json_encode($rs)); return $response->getBody()->write(json_encode($rs));
} }
@ -361,7 +361,7 @@ class RelayController extends UserController
)->where('type', 1)->where('sort', 9)->where("node_class", "<=", $user->class)->first(); )->where('type', 1)->where('sort', 9)->where("node_class", "<=", $user->class)->first();
if ($port_raw == null && $port != $user->port) { if ($port_raw == null && $port != $user->port) {
$rs['ret'] = 0; $rs['ret'] = 0;
$rs['msg'] = "西方的哪个国家我没去过"; $rs['msg'] = "端口错误";
return $response->getBody()->write(json_encode($rs)); return $response->getBody()->write(json_encode($rs));
} }

@ -61,9 +61,6 @@ class UserController extends BaseController
{ {
$user = $this->user; $user = $this->user;
$acl_token = LinkController::GenerateAclCode("smart", 0, $this->user->id, 0, "smart");
$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); $ssr_sub_token = LinkController::GenerateSSRSubCode($this->user->id, 0);
$GtSdk = null; $GtSdk = null;
@ -86,9 +83,6 @@ class UserController extends BaseController
return $this->view() return $this->view()
->assign('ssr_sub_token', $ssr_sub_token) ->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('display_ios_class',Config::get('display_ios_class')) ->assign('display_ios_class',Config::get('display_ios_class'))
->assign('ios_account',Config::get('ios_account')) ->assign('ios_account',Config::get('ios_account'))
->assign('ios_password',Config::get('ios_password')) ->assign('ios_password',Config::get('ios_password'))
@ -103,6 +97,50 @@ class UserController extends BaseController
->display('user/index.tpl'); ->display('user/index.tpl');
} }
public function getUserinfo($request, $response, $args) {
$user = $this->user;
$ssr_sub_token = LinkController::GenerateSSRSubCode($this->user->id, 0);
$GtSdk = null;
$recaptcha_sitekey = null;
if (Config::get('captcha_provider') != ''){
switch(Config::get('captcha_provider'))
{
case 'recaptcha':
$recaptcha_sitekey = Config::get('recaptcha_sitekey');
break;
case 'geetest':
$uid = time().rand(1, 10000) ;
$GtSdk = Geetest::get($uid);
break;
}
}
$Ann = Ann::orderBy('date', 'desc')->first();
$display_ios_class = Config::get('display_ios_class');
$ios_account = Config::get('ios_account');
$ios_password = Config::get('ios_password');
$mergeSub = Config::get('mergeSub');
$subUrl = Config::get('subUrl');
$baseUrl = Config::get('baseUrl');
$res['info'] = array(
"user" => $user,
"ssrSubToken" => $ssr_sub_token,
"displayIosClass" => $display_ios_class,
"iosAccount" => $ios_account,
"iosPassword" => $ios_password,
"mergeSub" => $mergeSub,
"subUrl" => $subUrl,
"baseUrl" => $baseUrl,
"ann" => $Ann,
"recaptchaSitekey" => $recaptcha_sitekey,
"GtSdk" => $GtSdk,
);
$res['ret'] = 1;
return $response->getBody()->write(json_encode($res));
}
public function lookingglass($request, $response, $args) public function lookingglass($request, $response, $args)
{ {
$Speedtest = Speedtest::where("datetime", ">", time() - Config::get('Speedtest_duration') * 3600)->orderBy('datetime', 'desc')->get(); $Speedtest = Speedtest::where("datetime", ">", time() - Config::get('Speedtest_duration') * 3600)->orderBy('datetime', 'desc')->get();
@ -323,7 +361,7 @@ class UserController extends BaseController
if ($code == "") { if ($code == "") {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "二维码不能为空";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -347,10 +385,9 @@ class UserController extends BaseController
$enable = $request->getParam('enable'); $enable = $request->getParam('enable');
$user = $this->user; $user = $this->user;
if ($enable == "") { if ($enable == "") {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "选项无效";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -734,17 +771,6 @@ class UserController extends BaseController
} }
} }
public function GetPcConf($request, $response, $args)
{
$is_mu = $request->getQueryParams()["is_mu"];
$is_ss = $request->getQueryParams()["is_ss"];
$newResponse = $response->withHeader('Content-type', ' application/octet-stream')->withHeader('Content-Disposition', ' attachment; filename=gui-config.json');//->getBody()->write($builder->output());
$newResponse->getBody()->write(LinkController::GetPcConf($this->user, $is_mu, $is_ss));
return $newResponse;
}
public function GetIosConf($request, $response, $args) public function GetIosConf($request, $response, $args)
{ {
$newResponse = $response->withHeader('Content-type', ' application/octet-stream')->withHeader('Content-Disposition', ' attachment; filename=allinone.conf');//->getBody()->write($builder->output()); $newResponse = $response->withHeader('Content-type', ' application/octet-stream')->withHeader('Content-Disposition', ' attachment; filename=allinone.conf');//->getBody()->write($builder->output());
@ -833,6 +859,11 @@ class UserController extends BaseController
return $this->view()->assign("anns", $Anns)->display('user/announcement.tpl'); return $this->view()->assign("anns", $Anns)->display('user/announcement.tpl');
} }
public function tutorial($request, $response, $args)
{
return $this->view()->display('user/tutorial.tpl');
}
public function edit($request, $response, $args) public function edit($request, $response, $args)
{ {
@ -1255,7 +1286,7 @@ class UserController extends BaseController
foreach ($adminUser as $user) { foreach ($adminUser as $user) {
$subject = Config::get('appName') . "-新工单被开启"; $subject = Config::get('appName') . "-新工单被开启";
$to = $user->email; $to = $user->email;
$text = "管理员您好,有人开启了新的工单,请您及时处理。"; $text = "管理员,有人开启了新的工单,请您及时处理。";
try { try {
Mail::send($to, $subject, 'news/warn.tpl', [ Mail::send($to, $subject, 'news/warn.tpl', [
"user" => $user, "text" => $text "user" => $user, "text" => $text
@ -1301,7 +1332,7 @@ class UserController extends BaseController
foreach ($adminUser as $user) { foreach ($adminUser as $user) {
$subject = Config::get('appName') . "-工单被重新开启"; $subject = Config::get('appName') . "-工单被重新开启";
$to = $user->email; $to = $user->email;
$text = "管理员您好,有人重新开启了<a href=\"" . Config::get('baseUrl') . "/admin/ticket/" . $ticket_main->id . "/view\">工单</a>,请您及时处理。"; $text = "管理员,有人重新开启了<a href=\"" . Config::get('baseUrl') . "/admin/ticket/" . $ticket_main->id . "/view\">工单</a>,请您及时处理。";
try { try {
Mail::send($to, $subject, 'news/warn.tpl', [ Mail::send($to, $subject, 'news/warn.tpl', [
"user" => $user, "text" => $text "user" => $user, "text" => $text
@ -1316,7 +1347,7 @@ class UserController extends BaseController
foreach ($adminUser as $user) { foreach ($adminUser as $user) {
$subject = Config::get('appName') . "-工单被回复"; $subject = Config::get('appName') . "-工单被回复";
$to = $user->email; $to = $user->email;
$text = "管理员您好,有人回复了<a href=\"" . Config::get('baseUrl') . "/admin/ticket/" . $ticket_main->id . "/view\">工单</a>,请您及时处理。"; $text = "管理员,有人回复了<a href=\"" . Config::get('baseUrl') . "/admin/ticket/" . $ticket_main->id . "/view\">工单</a>,请您及时处理。";
try { try {
Mail::send($to, $subject, 'news/warn.tpl', [ Mail::send($to, $subject, 'news/warn.tpl', [
"user" => $user, "text" => $text "user" => $user, "text" => $text
@ -1425,13 +1456,13 @@ class UserController extends BaseController
if (!Tools::is_param_validate('obfs', $obfs)) { if (!Tools::is_param_validate('obfs', $obfs)) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "混淆无效";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
if (!Tools::is_param_validate('protocol', $protocol)) { if (!Tools::is_param_validate('protocol', $protocol)) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "协议无效";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -1443,7 +1474,7 @@ class UserController extends BaseController
if (!Tools::checkNoneProtocol($user)) { if (!Tools::checkNoneProtocol($user)) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "您好,系统检测到您目前的加密方式为 none ,但您将要设置为的协议并不在以下协议<br>" . implode(',', Config::getSupportParam('allow_none_protocol')) . '<br>之内,请您先修改您的加密方式,再来修改此处设置。'; $res['msg'] = "系统检测到您目前的加密方式为 none ,但您将要设置为的协议并不在以下协议<br>" . implode(',', Config::getSupportParam('allow_none_protocol')) . '<br>之内,请您先修改您的加密方式,再来修改此处设置。';
return $this->echoJson($response, $res); return $this->echoJson($response, $res);
} }
@ -1502,7 +1533,7 @@ class UserController extends BaseController
if (!($mail == "1" || $mail == "0")) { if (!($mail == "1" || $mail == "0")) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "非法输入";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -1523,7 +1554,7 @@ class UserController extends BaseController
if ($pac == "") { if ($pac == "") {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "输入不能为空";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -1545,13 +1576,13 @@ class UserController extends BaseController
if ($pwd == "") { if ($pwd == "") {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "密码不能为空";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
if (!Tools::is_validate($pwd)) { if (!Tools::is_validate($pwd)) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "密码无效";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -1573,13 +1604,13 @@ class UserController extends BaseController
if ($method == "") { if ($method == "") {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "非法输入";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
if (!Tools::is_param_validate('method', $method)) { if (!Tools::is_param_validate('method', $method)) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "悟空别闹"; $res['msg'] = "加密无效";
return $response->getBody()->write(json_encode($res)); return $response->getBody()->write(json_encode($res));
} }
@ -1587,7 +1618,7 @@ class UserController extends BaseController
if (!Tools::checkNoneProtocol($user)) { if (!Tools::checkNoneProtocol($user)) {
$res['ret'] = 0; $res['ret'] = 0;
$res['msg'] = "您好,系统检测到您将要设置的加密方式为 none ,但您的协议并不在以下协议<br>" . implode(',', Config::getSupportParam('allow_none_protocol')) . '<br>之内,请您先修改您的协议,再来修改此处设置。'; $res['msg'] = "系统检测到您将要设置的加密方式为 none ,但您的协议并不在以下协议<br>" . implode(',', Config::getSupportParam('allow_none_protocol')) . '<br>之内,请您先修改您的协议,再来修改此处设置。';
return $this->echoJson($response, $res); return $this->echoJson($response, $res);
} }
@ -1619,7 +1650,7 @@ class UserController extends BaseController
public function logout($request, $response, $args) public function logout($request, $response, $args)
{ {
Auth::logout(); Auth::logout();
$newResponse = $response->withStatus(302)->withHeader('Location', '/auth/login'); $newResponse = $response->withStatus(302)->withHeader('Location', '/');
return $newResponse; return $newResponse;
} }

@ -0,0 +1,84 @@
<?php
namespace App\Controllers;
use App\Models\InviteCode;
use App\Models\User;
use App\Models\Code;
use App\Models\Payback;
use App\Models\Paylist;
use App\Services\Auth;
use App\Services\Config;
use App\Services\Payment;
use App\Utils\AliPay;
use App\Utils\Tools;
use App\Utils\Telegram;
use App\Utils\Tuling;
use App\Utils\TelegramSessionManager;
use App\Utils\QRcode;
use App\Utils\Pay;
use App\Utils\TelegramProcess;
use App\Utils\Spay_tool;
use App\Utils\Geetest;
class VueController extends BaseController {
private $user;
public function __construct()
{
$this->user = Auth::getUser();
}
public function getGlobalConfig($request, $response, $args) {
$GtSdk = null;
$recaptcha_sitekey = null;
$user = $this->user;
if (Config::get('captcha_provider') != ''){
switch(Config::get('captcha_provider'))
{
case 'recaptcha':
$recaptcha_sitekey = Config::get('recaptcha_sitekey');
break;
case 'geetest':
$uid = time().rand(1, 10000) ;
$GtSdk = Geetest::get($uid);
break;
}
}
if (Config::get('enable_telegram') == 'true') {
$login_text = TelegramSessionManager::add_login_session();
$login = explode("|", $login_text);
$login_token = $login[0];
$login_number = $login[1];
} else {
$login_token = '';
$login_number = '';
}
$res['globalConfig'] = array(
"geetest_html" => $GtSdk,
"login_token" => $login_token,
"login_number" => $login_number,
"telegram_bot" => Config::get('telegram_bot'),
"enable_logincaptcha" => Config::get('enable_login_captcha'),
"enable_regcaptcha" => Config::get('enable_reg_captcha'),
"base_url" => Config::get('baseUrl'),
"recaptcha_sitekey" => $recaptcha_sitekey,
"captcha_provider" => Config::get('captcha_provider'),
"jump_delay" => Config::get('jump_delay'),
"register_mode" => Config::get('register_mode'),
"enable_email_verify" => Config::get('enable_email_verify'),
"appName" => Config::get('appName'),
"dateY" => date("Y"),
"isLogin" => $user->isLogin,
"enable_telegram" => Config::get('enable_telegram'),
);
$res['ret'] = 1;
return $response->getBody()->write(json_encode($res));
}
}

@ -341,4 +341,8 @@ class User extends Model
$ref_user_id, $ref_user_name); $ref_user_id, $ref_user_name);
return $return_array; return $return_array;
} }
public function get_user_attributes($key)
{
return $this->attributes[$key];
}
} }

@ -48,7 +48,9 @@ class Config
"enable_flag" => self::get("enable_flag"), "enable_flag" => self::get("enable_flag"),
"enable_kill" => self::get("enable_kill"), "enable_kill" => self::get("enable_kill"),
"custom_invite_price" => self::get("custom_invite_price"), "custom_invite_price" => self::get("custom_invite_price"),
"telegram_grouplink" => self::get("telegram_grouplink") "telegram_grouplink" => self::get("telegram_grouplink"),
"captcha_provider" => self::get("captcha_provider"),
"enable_email_verify" => self::get("enable_email_verify"),
]; ];
} }

@ -4,18 +4,49 @@ namespace App\Utils;
use App\Models\User; use App\Models\User;
use App\Services\Config; use App\Services\Config;
use App\Controllers\LinkController;
class TelegramProcess class TelegramProcess
{ {
private static $all_rss = [
"clean_link"=>"重置订阅",
"?mu=0" => "SSR普通订阅" ,
"?mu=1" => "SSR单端口订阅",
"?mu=3"=> "SS/SSD订阅",
"?mu=2" => "V2ray订阅",
"?mu=4"=> "Clash订阅"];
private static function callback_bind_method($bot,$message,$command){
$reply_to = $message->getMessageId();
$user = User::where('telegram_id', $message->getFrom()->getId())->first();
if ($user != null) {
switch (true){
case (strpos($command,"mu")):
$ssr_sub_token = LinkController::GenerateSSRSubCode($user->id, 0);
$subUrl = Config::get('subUrl');
$reply_message = self::$all_rss[$command].": ".$subUrl.$ssr_sub_token.$command.PHP_EOL;
$bot->sendMessage($message->getChat()->getId(), $reply_message , $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
break;
case ($command=="clean_link"):
$user->clean_link();
$bot->sendMessage($message->getChat()->getId(), "链接重置成功" , $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
break;
default:
$bot->sendMessage($message->getChat()->getId(), "???", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
}
}
}
private static function needbind_method($bot, $message, $command, $user, $reply_to = null) private static function needbind_method($bot, $message, $command, $user, $reply_to = null)
{ {
if ($user != null) { if ($user != null) {
switch ($command) { switch ($command) {
case 'traffic': case 'traffic':
$bot->sendMessage($message->getChat()->getId(), "您当前的流量状况: $bot->sendMessage($message->getChat()->getId(), "您当前的流量状况:
今日已使用 ".$user->TodayusedTraffic()." ".number_format(($user->u+$user->d-$user->last_day_t)/$user->transfer_enable*100, 2)."% 今日已使用 " . $user->TodayusedTraffic() . " " . number_format(($user->u + $user->d - $user->last_day_t) / $user->transfer_enable * 100, 2) . "%
今日之前已使用 ".$user->LastusedTraffic()." ".number_format($user->last_day_t/$user->transfer_enable*100, 2)."% 今日之前已使用 " . $user->LastusedTraffic() . " " . number_format($user->last_day_t / $user->transfer_enable * 100, 2) . "%
未使用 ".$user->unusedTraffic()." ".number_format(($user->transfer_enable-($user->u+$user->d))/$user->transfer_enable*100, 2)."% 未使用 " . $user->unusedTraffic() . " " . number_format(($user->transfer_enable - ($user->u + $user->d)) / $user->transfer_enable * 100, 2) . "%
", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); ", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
break; break;
case 'checkin': case 'checkin':
@ -27,14 +58,27 @@ class TelegramProcess
$user->transfer_enable = $user->transfer_enable + Tools::toMB($traffic); $user->transfer_enable = $user->transfer_enable + Tools::toMB($traffic);
$user->last_check_in_time = time(); $user->last_check_in_time = time();
$user->save(); $user->save();
$bot->sendMessage($message->getChat()->getId(), "签到成功!获得了 ".$traffic." MB 流量!", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); $bot->sendMessage($message->getChat()->getId(), "签到成功!获得了 " . $traffic . " MB 流量!", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
break;
case 'prpr':
$prpr = array('⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄', '(≧ ﹏ ≦)', '(*/ω\*)', 'ヽ(*。>Д<)o゜', '(つ ﹏ ⊂)', '( > < )');
$bot->sendMessage($message->getChat()->getId(), $prpr[mt_rand(0, 5)], $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
break; break;
case 'prpr': case "rss":
$prpr = array('⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄', '(≧ ﹏ ≦)', '(*/ω\*)', 'ヽ(*。>Д<)o゜', '(つ ﹏ ⊂)', '( > < )'); $reply_message = "点击以下按钮获取对应订阅: ";
$bot->sendMessage($message->getChat()->getId(), $prpr[mt_rand(0,5)], $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); $keys = [];
foreach (self::$all_rss as $key => $value){
$keys[] = [["text" => $value, "callback_data" => $key]];
}
$keyboard = new \TelegramBot\Api\Types\Inline\InlineKeyboardMarkup(
$keys
);
$bot->sendMessage($message->getChat()->getId(), $reply_message , $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to,$replyMarkup=$keyboard);
break; break;
default: default:
$bot->sendMessage($message->getChat()->getId(), "???", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); $bot->sendMessage($message->getChat()->getId(), "???", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
} }
} else { } else {
$bot->sendMessage($message->getChat()->getId(), "您未绑定本站账号。", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); $bot->sendMessage($message->getChat()->getId(), "您未绑定本站账号。", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);
@ -48,13 +92,13 @@ class TelegramProcess
if ($message->getChat()->getId() > 0) { if ($message->getChat()->getId() > 0) {
//个人 //个人
$commands = array("ping", "chat", "traffic", "checkin", "help"); $commands = array("ping", "chat", "traffic", "checkin", "help", "rss");
if(in_array($command, $commands)){ if (in_array($command, $commands)) {
$bot->sendChatAction($message->getChat()->getId(), 'typing'); $bot->sendChatAction($message->getChat()->getId(), 'typing');
} }
switch ($command) { switch ($command) {
case 'ping': case 'ping':
$bot->sendMessage($message->getChat()->getId(), 'Pong!这个群组的 ID 是 '.$message->getChat()->getId().'!'); $bot->sendMessage($message->getChat()->getId(), 'Pong!这个群组的 ID 是 ' . $message->getChat()->getId() . '!');
break; break;
case 'chat': case 'chat':
$bot->sendMessage($message->getChat()->getId(), Tuling::chat($message->getFrom()->getId(), substr($message->getText(), 5))); $bot->sendMessage($message->getChat()->getId(), Tuling::chat($message->getFrom()->getId(), substr($message->getText(), 5)));
@ -65,15 +109,19 @@ class TelegramProcess
case 'checkin': case 'checkin':
TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId()); TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId());
break; break;
case 'prpr': case 'prpr':
TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId());
break;
case "rss":
TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId()); TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId());
break; break;
case 'help': case 'help':
$help_list = "命令列表: $help_list = "命令列表:
/ping 获取群组ID /ping 获取群组ID
/traffic 查询流量 /traffic 查询流量
/checkin 签到续命 /checkin 签到
/help 获取帮助信息 /help 获取帮助信息
/rss 获取节点订阅
您可以在面板里点击 资料编辑 ,滑到页面最下方,就可以看到 Telegram 绑定指示了,绑定您的账号,更多精彩功能等着您去发掘。 您可以在面板里点击 资料编辑 ,滑到页面最下方,就可以看到 Telegram 绑定指示了,绑定您的账号,更多精彩功能等着您去发掘。
"; ";
@ -111,12 +159,12 @@ class TelegramProcess
foreach ($photo_id_array as $key => $value) { foreach ($photo_id_array as $key => $value) {
$file = $bot->getFile($value); $file = $bot->getFile($value);
$qrcode_text = QRcode::decode("https://api.telegram.org/file/bot".Config::get('telegram_token')."/".$file->getFilePath()); $qrcode_text = QRcode::decode("https://api.telegram.org/file/bot" . Config::get('telegram_token') . "/" . $file->getFilePath());
if ($qrcode_text == null) { if ($qrcode_text == null) {
foreach ($photo_id_list_array[$key] as $fail_key => $fail_value) { foreach ($photo_id_list_array[$key] as $fail_key => $fail_value) {
$fail_file = $bot->getFile($fail_value); $fail_file = $bot->getFile($fail_value);
$qrcode_text = QRcode::decode("https://api.telegram.org/file/bot".Config::get('telegram_token')."/".$fail_file->getFilePath()); $qrcode_text = QRcode::decode("https://api.telegram.org/file/bot" . Config::get('telegram_token') . "/" . $fail_file->getFilePath());
if ($qrcode_text != null) { if ($qrcode_text != null) {
break; break;
} }
@ -131,9 +179,9 @@ class TelegramProcess
$user->im_type = 4; $user->im_type = 4;
$user->im_value = $message->getFrom()->getUsername(); $user->im_value = $message->getFrom()->getUsername();
$user->save(); $user->save();
$bot->sendMessage($message->getChat()->getId(), "绑定成功。邮箱:".$user->email); $bot->sendMessage($message->getChat()->getId(), "绑定成功。邮箱:" . $user->email);
} else { } else {
$bot->sendMessage($message->getChat()->getId(), "绑定失败,二维码无效。".substr($qrcode_text, 11)); $bot->sendMessage($message->getChat()->getId(), "绑定失败,二维码无效。" . substr($qrcode_text, 11));
} }
} }
@ -141,12 +189,12 @@ class TelegramProcess
if ($user != null) { if ($user != null) {
$uid = TelegramSessionManager::verify_login_session(substr($qrcode_text, 12), $user->id); $uid = TelegramSessionManager::verify_login_session(substr($qrcode_text, 12), $user->id);
if ($uid != 0) { if ($uid != 0) {
$bot->sendMessage($message->getChat()->getId(), "登录验证成功。邮箱:".$user->email); $bot->sendMessage($message->getChat()->getId(), "登录验证成功。邮箱:" . $user->email);
} else { } else {
$bot->sendMessage($message->getChat()->getId(), "登录验证失败,二维码无效。".substr($qrcode_text, 12)); $bot->sendMessage($message->getChat()->getId(), "登录验证失败,二维码无效。" . substr($qrcode_text, 12));
} }
} else { } else {
$bot->sendMessage($message->getChat()->getId(), "登录验证失败,您未绑定本站账号。".substr($qrcode_text, 12)); $bot->sendMessage($message->getChat()->getId(), "登录验证失败,您未绑定本站账号。" . substr($qrcode_text, 12));
} }
} }
@ -157,7 +205,7 @@ class TelegramProcess
if ($user != null) { if ($user != null) {
$uid = TelegramSessionManager::verify_login_number($message->getText(), $user->id); $uid = TelegramSessionManager::verify_login_number($message->getText(), $user->id);
if ($uid != 0) { if ($uid != 0) {
$bot->sendMessage($message->getChat()->getId(), "登录验证成功。邮箱:".$user->email); $bot->sendMessage($message->getChat()->getId(), "登录验证成功。邮箱:" . $user->email);
} else { } else {
$bot->sendMessage($message->getChat()->getId(), "登录验证失败,数字无效。"); $bot->sendMessage($message->getChat()->getId(), "登录验证失败,数字无效。");
} }
@ -175,12 +223,12 @@ class TelegramProcess
return; return;
} }
$commands = array("ping", "chat", "traffic", "checkin", "help"); $commands = array("ping", "chat", "traffic", "checkin", "help");
if(in_array($command, $commands)){ if (in_array($command, $commands)) {
$bot->sendChatAction($message->getChat()->getId(), 'typing'); $bot->sendChatAction($message->getChat()->getId(), 'typing');
} }
switch ($command) { switch ($command) {
case 'ping': case 'ping':
$bot->sendMessage($message->getChat()->getId(), 'Pong!这个群组的 ID 是 '.$message->getChat()->getId().'!', $parseMode = null, $disablePreview = false, $replyToMessageId = $message->getMessageId()); $bot->sendMessage($message->getChat()->getId(), 'Pong!这个群组的 ID 是 ' . $message->getChat()->getId() . '!', $parseMode = null, $disablePreview = false, $replyToMessageId = $message->getMessageId());
break; break;
case 'chat': case 'chat':
if ($message->getChat()->getId() == Config::get('telegram_chatid')) { if ($message->getChat()->getId() == Config::get('telegram_chatid')) {
@ -195,15 +243,16 @@ class TelegramProcess
case 'checkin': case 'checkin':
TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId()); TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId());
break; break;
case 'prpr': case 'prpr':
TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId()); TelegramProcess::needbind_method($bot, $message, $command, $user, $message->getMessageId());
break; break;
case 'help': case 'help':
$help_list_group = "命令列表: $help_list_group = "命令列表:
/ping 获取群组ID /ping 获取群组ID
/traffic 查询流量 /traffic 查询流量
/checkin 签到续命 /checkin 签到
/help 获取帮助信息 /help 获取帮助信息
/rss 获取节点订阅
您可以在面板里点击 资料编辑 ,滑到页面最下方,就可以看到 Telegram 绑定指示了,绑定您的账号,更多精彩功能等着您去发掘。 您可以在面板里点击 资料编辑 ,滑到页面最下方,就可以看到 Telegram 绑定指示了,绑定您的账号,更多精彩功能等着您去发掘。
"; ";
@ -218,7 +267,7 @@ class TelegramProcess
} }
} }
if ($message->getNewChatMember() != null && Config::get('enable_welcome_message') == 'true') { if ($message->getNewChatMember() != null && Config::get('enable_welcome_message') == 'true') {
$bot->sendMessage($message->getChat()->getId(), "欢迎 ".$message->getNewChatMember()->getFirstName()." ".$message->getNewChatMember()->getLastName(), $parseMode = null, $disablePreview = false); $bot->sendMessage($message->getChat()->getId(), "欢迎 " . $message->getNewChatMember()->getFirstName() . " " . $message->getNewChatMember()->getLastName(), $parseMode = null, $disablePreview = false);
} }
} }
} }
@ -233,7 +282,7 @@ class TelegramProcess
// or initialize with botan.io tracker api key // or initialize with botan.io tracker api key
// $bot = new \TelegramBot\Api\Client('YOUR_BOT_API_TOKEN', 'YOUR_BOTAN_TRACKER_API_KEY'); // $bot = new \TelegramBot\Api\Client('YOUR_BOT_API_TOKEN', 'YOUR_BOTAN_TRACKER_API_KEY');
$command_list = array("ping", "chat" ,"traffic", "help", "prpr", "checkin"); $command_list = array("ping", "chat", "traffic", "help", "prpr", "checkin", "rss");
foreach ($command_list as $command) { foreach ($command_list as $command) {
$bot->command($command, function ($message) use ($bot, $command) { $bot->command($command, function ($message) use ($bot, $command) {
TelegramProcess::telegram_process($bot, $message, $command); TelegramProcess::telegram_process($bot, $message, $command);
@ -245,6 +294,17 @@ class TelegramProcess
}), function () { }), function () {
return true; return true;
}); });
$bot->on(function($update) use ($bot){
$callback = $update->getCallbackQuery();
//Answer to Telegram, you make answer in the end, or in the beginning.
$message = $callback->getMessage();
$message->setFrom($callback->getFrom());
TelegramProcess::callback_bind_method($bot,$message,$callback->getData());
}, function($update){
$callback = $update->getCallbackQuery();
if (is_null($callback) || !strlen($callback->getData())){return false; }
return true;
});
$bot->run(); $bot->run();
} catch (\TelegramBot\Api\Exception $e) { } catch (\TelegramBot\Api\Exception $e) {

@ -205,6 +205,7 @@ class URL
$new_user->protocol = str_replace("_compatible", "", $new_user->protocol); $new_user->protocol = str_replace("_compatible", "", $new_user->protocol);
return $new_user; return $new_user;
} }
public static function getAllItems($user, $is_mu = 0, $is_ss = 0) { public static function getAllItems($user, $is_mu = 0, $is_ss = 0) {
$return_array = array(); $return_array = array();
if ($user->is_admin) { if ($user->is_admin) {
@ -302,22 +303,24 @@ class URL
} }
return $return_array; return $return_array;
} }
public static function getAllUrl($user, $is_mu, $is_ss = 0, $enter = 0) { public static function getAllUrl($user, $is_mu, $is_ss = 0) {
$return_url = ''; $return_url = '';
$return_url .= URL::getUserTraffic($user, $is_mu).($enter == 0 ? ' ' : "\n"); if(!$is_ss){
$return_url .= URL::getUserClassExpiration($user, $is_mu).($enter == 0 ? ' ' : "\n"); $return_url .= URL::getUserTraffic($user, $is_mu).PHP_EOL;
$return_url .= URL::getUserClassExpiration($user, $is_mu).PHP_EOL;
}
if(strtotime($user->expire_in)<time()){ if(strtotime($user->expire_in)<time()){
return $return_url; return $return_url;
} }
$items = URL::getAllItems($user, $is_mu, $is_ss); $items = URL::getAllItems($user, $is_mu, $is_ss);
foreach($items as $item) { foreach($items as $item) {
$return_url .= URL::getItemUrl($item, $is_ss).($enter == 0 ? ' ' : "\n"); $return_url .= URL::getItemUrl($item, $is_ss).PHP_EOL;
} }
if(Config::get('mergeSub') and in_array($is_mu, array(0, 1))){ if(Config::get('mergeSub') and in_array($is_mu, array(0, 1))){
$is_mu = $is_mu==0?1:0; $is_mu = $is_mu==0?1:0;
$items = URL::getAllItems($user, $is_mu, $is_ss); $items = URL::getAllItems($user, $is_mu, $is_ss);
foreach($items as $item) { foreach($items as $item) {
$return_url .= URL::getItemUrl($item, $is_ss).($enter == 0 ? ' ' : "\n"); $return_url .= URL::getItemUrl($item, $is_ss).PHP_EOL;
} }
} }
return $return_url; return $return_url;
@ -445,7 +448,7 @@ class URL
->orwhere('sort', '=', 10); ->orwhere('sort', '=', 10);
}) })
->where(function ($func) use ($user){ ->where(function ($func) use ($user){
$func->where('node_group', '=', $user->group) $func->where('node_group', '=', $user->node_group)
->orwhere('node_group', '=', 0); ->orwhere('node_group', '=', 0);
})->orderBy('name')->get(); })->orderBy('name')->get();
$server_index=1; $server_index=1;
@ -625,7 +628,13 @@ class URL
$group_name .= ' - 单端口'; $group_name .= ' - 单端口';
} }
if(strtotime($user->expire_in)>time()){ if(strtotime($user->expire_in)>time()){
$ssurl = "www.google.com:1:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=".Tools::base64_url_encode("剩余流量:".number_format(($user->transfer_enable-($user->u+$user->d))/$user->transfer_enable*100,2)."% ".$user->unusedTraffic())."&group=".Tools::base64_url_encode($group_name); if($user->transfer_enable==0){
$percent='0.00%';
}
else{
$percent=number_format(($user->transfer_enable-$user->u-$user->d)/$user->transfer_enable*100,2).'%';
}
$ssurl = "www.google.com:1:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=".Tools::base64_url_encode('剩余流量:'.$percent.' '.$user->unusedTraffic())."&group=".Tools::base64_url_encode($group_name);
}else{ }else{
$ssurl = "www.google.com:1:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=".Tools::base64_url_encode("账户已过期,请续费后使用")."&group=".Tools::base64_url_encode($group_name); $ssurl = "www.google.com:1:auth_chain_a:chacha20:tls1.2_ticket_auth:YnJlYWt3YWxs/?obfsparam=&protoparam=&remarks=".Tools::base64_url_encode("账户已过期,请续费后使用")."&group=".Tools::base64_url_encode($group_name);
} }

@ -68,6 +68,7 @@ $app->add(new WhoopsMiddleware);
// Home // Home
$app->get('/', 'App\Controllers\HomeController:index'); $app->get('/', 'App\Controllers\HomeController:index');
$app->get('/indexold', 'App\Controllers\HomeController:indexold');
$app->get('/404', 'App\Controllers\HomeController:page404'); $app->get('/404', 'App\Controllers\HomeController:page404');
$app->get('/405', 'App\Controllers\HomeController:page405'); $app->get('/405', 'App\Controllers\HomeController:page405');
$app->get('/500', 'App\Controllers\HomeController:page500'); $app->get('/500', 'App\Controllers\HomeController:page500');
@ -76,6 +77,7 @@ $app->get('/yft/notify', 'App\Services\Gateway\YftPay:notify');//yft uses GET
$app->get('/tos', 'App\Controllers\HomeController:tos'); $app->get('/tos', 'App\Controllers\HomeController:tos');
$app->get('/staff', 'App\Controllers\HomeController:staff'); $app->get('/staff', 'App\Controllers\HomeController:staff');
$app->post('/telegram_callback', 'App\Controllers\HomeController:telegram'); $app->post('/telegram_callback', 'App\Controllers\HomeController:telegram');
$app->get('/globalconfig', 'App\Controllers\VueController:getGlobalConfig');
// User Center // User Center
$app->group('/user', function () { $app->group('/user', function () {
@ -83,6 +85,7 @@ $app->group('/user', function () {
$this->get('/', 'App\Controllers\UserController:index'); $this->get('/', 'App\Controllers\UserController:index');
$this->post('/checkin', 'App\Controllers\UserController:doCheckin'); $this->post('/checkin', 'App\Controllers\UserController:doCheckin');
$this->get('/node', 'App\Controllers\UserController:node'); $this->get('/node', 'App\Controllers\UserController:node');
$this->get('/tutorial', 'App\Controllers\UserController:tutorial');
$this->get('/announcement', 'App\Controllers\UserController:announcement'); $this->get('/announcement', 'App\Controllers\UserController:announcement');
$this->get('/donate', 'App\Controllers\UserController:donate'); $this->get('/donate', 'App\Controllers\UserController:donate');
$this->get('/lookingglass', 'App\Controllers\UserController:lookingglass'); $this->get('/lookingglass', 'App\Controllers\UserController:lookingglass');
@ -99,6 +102,7 @@ $app->group('/user', function () {
$this->get('/shop', 'App\Controllers\UserController:shop'); $this->get('/shop', 'App\Controllers\UserController:shop');
$this->post('/coupon_check', 'App\Controllers\UserController:CouponCheck'); $this->post('/coupon_check', 'App\Controllers\UserController:CouponCheck');
$this->post('/buy', 'App\Controllers\UserController:buy'); $this->post('/buy', 'App\Controllers\UserController:buy');
$this->get('/getuserinfo', 'App\Controllers\UserController:getUserinfo');
// Relay Mange // Relay Mange
@ -151,7 +155,6 @@ $app->group('/user', function () {
$this->post('/resetport', 'App\Controllers\UserController:ResetPort'); $this->post('/resetport', 'App\Controllers\UserController:ResetPort');
$this->post('/specifyport', 'App\Controllers\UserController:SpecifyPort'); $this->post('/specifyport', 'App\Controllers\UserController:SpecifyPort');
$this->post('/pacset', 'App\Controllers\UserController:PacSet'); $this->post('/pacset', 'App\Controllers\UserController:PacSet');
$this->get('/getpcconf', 'App\Controllers\UserController:GetPcConf');
$this->get('/getiosconf', 'App\Controllers\UserController:GetIosConf'); $this->get('/getiosconf', 'App\Controllers\UserController:GetIosConf');
$this->post('/unblock', 'App\Controllers\UserController:Unblock'); $this->post('/unblock', 'App\Controllers\UserController:Unblock');
$this->get('/bought', 'App\Controllers\UserController:bought'); $this->get('/bought', 'App\Controllers\UserController:bought');
@ -175,7 +178,7 @@ $app->group('/payment', function () {
// Auth // Auth
$app->group('/auth', function () { $app->group('/auth', function () {
$this->get('/login', 'App\Controllers\AuthController:login'); $this->get('/login', 'App\Controllers\AuthController:login');
$this->get('/qrcode_check', 'App\Controllers\AuthController:qrcode_check'); $this->post('/qrcode_check', 'App\Controllers\AuthController:qrcode_check');
$this->post('/login', 'App\Controllers\AuthController:loginHandle'); $this->post('/login', 'App\Controllers\AuthController:loginHandle');
$this->post('/qrcode_login', 'App\Controllers\AuthController:qrcode_loginHandle'); $this->post('/qrcode_login', 'App\Controllers\AuthController:qrcode_loginHandle');
$this->get('/register', 'App\Controllers\AuthController:register'); $this->get('/register', 'App\Controllers\AuthController:register');
@ -183,6 +186,7 @@ $app->group('/auth', function () {
$this->post('/send', 'App\Controllers\AuthController:sendVerify'); $this->post('/send', 'App\Controllers\AuthController:sendVerify');
$this->get('/logout', 'App\Controllers\AuthController:logout'); $this->get('/logout', 'App\Controllers\AuthController:logout');
$this->get('/telegram_oauth', 'App\Controllers\AuthController:telegram_oauth'); $this->get('/telegram_oauth', 'App\Controllers\AuthController:telegram_oauth');
$this->get('/login_getCaptcha', 'App\Controllers\AuthController:getCaptcha');
})->add(new Guest()); })->add(new Guest());
// Password // Password

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,579 @@
@import url(https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css);
body {
background-color: #1D1D1D;
color: white;
min-height: 100vh;
}
a {
color: inherit;
text-decoration: none;
}
.flex {
display: flex;
}
.space-around {
justify-content: space-around;
}
.align-center {
align-items: center;
}
.wrap {
flex-wrap: wrap;
}
[v-cloak] {
display: none;
}
.nav,
.main,
.footer {
flex-basis: 100%;
}
.loading {
position: fixed;
text-align: center;
width: 100%;
height: 100%;
justify-content: center;
font-size: 4rem;
}
.button-round.active {
opacity: 1;
}
.logo-sm,
.auth-sm {
padding: 1rem 1rem;
}
.auth-sm {
text-align: right;
justify-content: flex-end;
}
.auth-sm a {
min-width: 80px;
}
.logo-sm .logo {
height: 48px;
}
.logo {
border-radius: 50%;
}
.logo-sm>a {
align-items: center;
}
.logo-sm .logo {
margin-right: .5rem;
}
.logo-bg .logo {
height: 160px;
display: none;
}
.sign {
font-size: .5rem;
margin-top: 2px;
color: #858585;
}
.main {
text-align: center;
min-height: 80vh;
}
.title,
.auth {
margin-right: auto;
margin-left: auto;
display: flex;
align-items: center;
width: 80%;
justify-content: center;
}
.title-left {
text-align: center;
}
.title-left a {
margin-right: .5rem;
margin-bottom: .5rem;
}
.title h1 {
font-size: 2.5rem;
margin: 0;
display: inline-block;
border-bottom: 2px solid currentColor;
}
.title span {
font-size: 1.5rem;
display: block;
margin-bottom: 2rem;
}
.button-index {
font-size: 1rem;
padding: .5rem 1.5rem;
display: inline-block;
border: 2px solid currentColor;
min-width: 120px;
text-align: center;
}
.button-index:hover,
.button-index:focus {
color: rgb(142, 142, 142);
border: 2px solid currentColor;
}
.footer {
padding: 0 3rem;
}
.staff,
.time {
text-align: center;
}
.staff {
color: rgba(120, 120, 120, 1);
}
.staff a {
color: #D1335B;
}
.staff a,
.input-control input,
.auth-submit,
.button-round,
.button-index,
input.checkbox {
transition: all .3s;
}
.staff a:hover,
.staff a:focus {
color: #13c2c2
}
.input-control input {
border: none;
border-bottom: 2px solid white;
background: none;
outline: none;
}
.input-control input:focus {
border-color: #adadad;
}
.auth-submit {
border-radius: 3px;
color: #D1335B;
background: white;
outline: none;
border: 1px solid transparent;
min-height: 46px;
margin-top: 1rem;
width: 32%;
}
.auth-submit:hover,
.auth-submit:focus {
background-color: #d6d6d6;
border-color: #d6d6d6;
}
.auth,
.user,
.pw {
width: 100%;
}
.auth h1 {
font-size: 3.5rem;
margin-top: 0;
}
.auth h3 {
margin: 0;
}
.page-auth,
.page-user,
.page-pw {
text-align: center;
position: relative;
}
.input-control {
justify-content: center;
flex-wrap: wrap;
margin-left: auto;
margin-right: auto;
}
.input-control-inner {
flex-wrap: wrap;
text-align: left;
}
.input-control>label,
.input-control>input,
.input-control>select {
flex-basis: 80%;
text-align: left;
}
.input-control-inner>label,
.input-control-inner>input {
flex-basis: 100%;
}
.twin {
justify-content: space-around;
align-items: flex-end;
padding: 0;
}
.twin>* {
flex-basis: 100%%;
}
.input-control>input {
margin-bottom: 1rem;
}
.reg {
flex-wrap: wrap;
}
.reg .input-control {
flex-basis: 100%;
}
input[name] {
height: 46px;
}
select {
color: black;
height: 36px;
}
.button-round {
justify-content: flex-start;
align-items: center;
margin-bottom: 1rem;
color: white;
opacity: .5;
}
.button-round:hover,
.button-round:focus {
opacity: 1;
}
.icon-round {
background: white;
color: black;
border-radius: 50%;
width: 2rem;
height: 2rem;
display: inline-block;
margin-right: .75rem;
}
.fa {
position: relative;
}
.icon-round .fa-pencil {
top: .25rem;
left: .05rem
}
.icon-round .fa-plus {
top: .35em;
}
.icon-round .fa-gear {
top: .3rem;
}
#embed-captcha-reg {
margin-top: 1em;
}
.title-back {
position: absolute;
width: 100%;
height: 100%;
font-size: 5rem;
user-select: none;
z-index: -1;
color: #2e2e2e;
justify-content: center;
font-weight: bolder;
}
.basis-max .input-control {
width: 100%;
}
.basis-max .auth-submit {
width: 80%;
}
#code_number,
.tg-timeout {
padding: .6rem 1rem;
width: 100%;
font-size: 1.3em;
}
.tg-timeout {
width: 80%;
}
.qr-center img {
width: 70%;
height: 70%;
text-align: center;
}
@media screen and (min-width:35.5em) {
.auth-sm a {
min-width: 120px;
}
.footer {
margin-top: 3rem;
}
.title-left a {
margin-bottom: 0;
}
.logo-sm,
.auth-sm {
padding: 1rem 3rem;
margin-top: .8rem;
}
.title h1 {
font-size: 4rem;
}
.staff {
text-align: left;
}
.time {
text-align: right;
}
.auth-links {
padding: 0;
}
.auth-links a {
flex-basis: 100%;
}
.title-back {
font-size: 8.5rem;
}
.auth>div:first-of-type {
padding: 0 0 0 5%;
}
}
@media screen and (min-width:48em) {
.title h1 {
font-size: 5rem;
}
#register {
margin-top: 2rem;
}
.twin {
justify-content: space-around;
align-items: flex-end;
padding: 0 2.5%;
}
.twin>* {
flex-basis: 39%;
}
.input-control {
width: 41%;
}
.reg .input-control {
flex-basis: 48%;
}
}
@media screen and (min-width:64em) {
.title {
width: 75%;
padding-left: 5%;
}
.auth {
width: 90%;
}
.title-back {
font-size: 12rem;
}
}
@media screen and (min-width:80em) {
.title h1 {
padding-right: 4rem;
}
.title-left {
text-align: left;
}
.logo-bg .logo {
display: unset;
margin-left: 10rem;
}
}
@media screen and (max-width:35.5em) {
.hide-sm {
display: none !important;
}
}
/* 组件 */
/* messager */
.uim-messager {
position: fixed;
top: 6rem;
left: 0;
right: 0;
margin-right: auto;
margin-left: auto;
display: inline-block;
text-align: center;
border-radius: 3px;
z-index: 10;
padding: 7px 10px;
color: black;
background: white;
width: 200px;
min-height: 36px;
box-shadow: 0px 0px 5px 1px gray;
}
.uim-messager span {
margin-left: .6rem;
}
/* checkbox */
input[type=checkbox].uim-checkbox {
width: 16px;
height: 16px;
opacity: 0;
position: relative;
bottom: .1rem;
}
.uim-check-content {
font-size: .9rem;
position: relative;
left: .2rem;
top: 1px;
}
.uim-checkbox-icon {
position: absolute;
bottom: 1px;
font-size: 14px;
}
.uim-check {
position: relative;
top: 1px;
height: 14px;
width: 15px;
background: aliceblue;
transition: all .3s;
}
.uimchecked {
background: #D1335B;
box-shadow: 0 0 5px 1px gray;
}
/* loading 动画 */
.spinner {
width: 60px;
height: 60px;
background-color: #fff;
margin: 100px auto;
-webkit-animation: rotateplane 1.2s infinite ease-in-out;
animation: rotateplane 1.2s infinite ease-in-out;
}
@-webkit-keyframes rotateplane {
0% {
-webkit-transform: perspective(120px)
}
50% {
-webkit-transform: perspective(120px) rotateY(180deg)
}
100% {
-webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
}
}
@keyframes rotateplane {
0% {
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
}
50% {
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
}
100% {
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
<footer class="ui-footer"> <footer class="ui-footer">
<div class="container"> <div class="container">
<marquee>&copy; {$config["appName"]} <a href="/staff">STAFF</a> <marquee> {if $config["enable_analytics_code"] == 'true'}{include file='analytics.tpl'}{/if} <marquee>&copy;{date("Y")} {$config["appName"]} | Powered by <a href="/staff">SSPANEL</a> </marquee> {if $config["enable_analytics_code"] == 'true'}{include file='analytics.tpl'}{/if}
</div> </div>
</footer> </footer>

@ -37,43 +37,46 @@
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="number">失效通知邮箱</label> <label class="floating-label" for="number">失效通知邮箱</label>
<input class="form-control" id="Notice_EMail" type="text" <input class="form-control maxwidth-edit" id="Notice_EMail" type="text"
value="{$payConfig['Notice_EMail']}"> value="{$payConfig['Notice_EMail']}">
</div> </div>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="number">规定金额设定(不设定则无需输入,英文“|”分割,必须大于2)</label> <label class="floating-label" for="number">规定金额设定</label>
<input class="form-control" id="Pay_Price" type="text" <input class="form-control maxwidth-edit" id="Pay_Price" type="text"
value="{$payConfig['Pay_Price']}"> value="{$payConfig['Pay_Price']}">
<p class="form-control-guide"><i class="material-icons">info</i>不设定则无需输入,英文“|”分割,必须大于2</p>
</div> </div>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="amount">支付宝二维码(金额设定后需要英文“|”分割)</label> <label class="floating-label" for="amount">支付宝二维码</label>
<input class="form-control" id="AliPay_QRcode" type="text" <input class="form-control maxwidth-edit" id="AliPay_QRcode" type="text"
value="{$payConfig['AliPay_QRcode']}"> value="{$payConfig['AliPay_QRcode']}">
<p class="form-control-guide"><i class="material-icons">info</i>金额设定后需要英文“|”分割</p>
</div> </div>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="number">支付宝COOKIE</label> <label class="floating-label" for="number">支付宝COOKIE</label>
<input class="form-control" id="AliPay_Cookie" type="text" <input class="form-control maxwidth-edit" id="AliPay_Cookie" type="text"
value='{$payConfig['AliPay_Cookie']}'> value='{$payConfig['AliPay_Cookie']}'>
</div> </div>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="number">微信登录地址</label> <label class="floating-label" for="number">微信登录地址</label>
<input class="form-control" id="WxPay_Url" type="text" <input class="form-control maxwidth-edit" id="WxPay_Url" type="text"
value="{$payConfig['WxPay_Url']}"> value="{$payConfig['WxPay_Url']}">
</div> </div>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="number">微信二维码(金额设定后需要英文“|”分割)</label> <label class="floating-label" for="number">微信二维码</label>
<input class="form-control" id="WxPay_QRcode" type="text" <input class="form-control maxwidth-edit" id="WxPay_QRcode" type="text"
value="{$payConfig['WxPay_QRcode']}"> value="{$payConfig['WxPay_QRcode']}">
<p class="form-control-guide"><i class="material-icons">info</i>金额设定后需要英文“|”分割</p>
</div> </div>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="number">微信COOKIE</label> <label class="floating-label" for="number">微信COOKIE</label>
<input class="form-control" id="WxPay_Cookie" type="text" <input class="form-control maxwidth-edit" id="WxPay_Cookie" type="text"
value="{$payConfig['WxPay_Cookie']}"> value="{$payConfig['WxPay_Cookie']}">
</div> </div>

@ -243,7 +243,7 @@
); );
function f() { function f() {
$.ajax({ $.ajax({
type: "GET", type: "POST",
url: "qrcode_check", url: "qrcode_check",
dataType: "json", dataType: "json",
data: { data: {

File diff suppressed because it is too large Load Diff

@ -0,0 +1,201 @@
<!DOCTYPE HTML>
<!--
Dimension by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
{if $config['appName'] == '跑路'}
<script>window.location.href='{$config["baseUrl"]}/paolu.html';</script>
{/if}
<html>
<head>
<title>{$config["appName"]}</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta charset="utf-8" />
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="bookmark" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<link rel="stylesheet" href="/assets/css/main.css"/>
<noscript><link rel="stylesheet" href="/assets/css/noscript.css" /></noscript>
<link href="//unpkg.com/nprogress@0.2.0/nprogress.css" rel="stylesheet" />
<script src="//unpkg.com/nprogress@0.2.0/nprogress.js"></script>
</head>
<body>
<div id="wrapper">
<!--首页开始-->
<header id="header">
<div class="logo">
<span class="icon fa-rocket"></span>
</div>
{if $user->isLogin}
<div class="content">
<div class="inner">
<p>用户:<code>{$user->user_name}</code>
等级:{if $user->class!=0}
<code>VIP{$user->class}</code>
{else}
<code>免费</code>
{/if}
过期时间:{if $user->class_expire!="1989-06-04 00:05:00"}
<code>{$user->class_expire}</code>
{else}
<code>不过期</code>
{/if}</p>
<p>总流量:<code>{$user->enableTraffic()}</code>
已用流量:<code>{$user->usedTraffic()}</code>
剩余流量:<code>{$user->unusedTraffic()}</code></p>
</div>
</div>
<nav>
<ul>
<li><a href="#1">简介</a></li>
<li><a href="/user">用户中心</a></li>
<li><a href="/user/logout">退出登录</a></li>
</ul>
</nav>
{else}
<div class="content">
<div class="inner">
<h1>{$config["appName"]}</h1>
<!--
如果想自定义文本请删除下面这段script代码,格式为
<p>自定义文本</p>
-->
<div id="lwlhitokoto"></div>
</div>
</div>
<nav>
<ul>
<li><a href="#1">简介</a></li>
<li><a href="/auth/login">登录</a></li>
<li><a href="/auth/register">注册</a></li>
</ul>
</nav>
{/if}
</header>
<!--首页结束-->
<div id="main">
<!--标签1开始-->
<article id="1">
<h2 class="major">简介</h2>
<p>「ホワイトアルバムの季節」が、また、やってきた。</p></article>
<!--
简介修改示例:
<p> 123</p>
一个 <p> 123</p> 为一行,请不要删除 </article>
-->
<!--标签4开始-->
<article id="4">
<h2 class="major">联系我们</h2>
<ul class="icons">
<p>此处填写联系方式</p>
<li>
<a target="_blank" href="#" class="icon fa-facebook">
<!-- 请在fontawesome.com寻找替换图标 href替换链接 -->
<span class="label">Facebook</span>
</a>
</li>
</ul>
</article>
<article id="login">
<h2 class="major">登录</h2>
<form method="post" action="javascript:void(0);">
<div class="field half first">
<label for="email2">邮箱</label>
<input type="text" name="Email" id="email2" />
</div>
<div class="field half">
<label for="passwd">密码</label>
<input type="password" name="Password" id="passwd" />
</div>
<ul class="actions">
<li><input id="login" type="submit" value="登录" class="special" /></li>
<li><input type="reset" value="清空" /></li>
</ul>
</form>
<div class="field half">
<input value="week" id="remember_me" name="remember_me" type="checkbox" checked>
<label for="remember_me">记住我</label>
</div>
<br>
<div id="result" role="dialog" >
<p color class="h5 margin-top-sm text-black-hint" id="msg"></p>
</div>
</article>
<!--全部标签结束-->
</div>
<!-- 版权底部 -->
<footer id="footer">
<p class="copyright">&copy;{date("Y")} {$config["appName"]}</p>
</footer>
<!-- 版权结束 -->
</div>
<!-- BG -->
<div id="bg"></div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
<script src="/assets/js/util.js"></script>
<script src="/assets/js/main.js"></script>
<script language="javascript">
try{
if(window.console&&window.console.log){
console.log("%c{$config["appName"]}"," text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em");
console.log("%chttps://github.com/NimaQu/ss-panel-v3-mod_Uim","background: rgba(252,234,187,1);background: -moz-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%,rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -webkit-gradient(left top, right top, color-stop(0%, rgba(252,234,187,1)), color-stop(12%, rgba(175,250,77,1)), color-stop(28%, rgba(0,247,49,1)), color-stop(39%, rgba(0,210,247,1)), color-stop(51%, rgba(0,189,247,1)), color-stop(64%, rgba(133,108,217,1)), color-stop(78%, rgba(177,0,247,1)), color-stop(87%, rgba(247,0,189,1)), color-stop(100%, rgba(245,22,52,1)));background: -webkit-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -o-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -ms-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: linear-gradient(to right, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#f51634', GradientType=1 );font-size:3em");
}
}catch(e){
};
</script>
<!-- 進度條 -->
<script>
$(function() {
$(window).load(function(){
NProgress.done();
});
NProgress.set(0.0);
NProgress.configure({ showSpinner: false });
NProgress.configure({ minimum: 0.4 });
NProgress.configure({ easing: 'ease', speed: 1200 });
NProgress.configure({ trickleSpeed: 200 });
NProgress.configure({ trickleRate: 0.2, trickleSpeed: 1200 });
NProgress.inc();
$(window).ready(function(){
NProgress.start();
});
})
window.addEventListener('load',()=>{
fetch('https://api.lwl12.com/hitokoto/v1?encode=realjson',{
method: 'GET',
}).then((response)=>{
return response.json();
}).then((r)=>{
insertHitokoto(r);
})
});
function insertHitokoto(data) {
let hitokoto = document.getElementById('lwlhitokoto');
if (data.author || data.source) {
hitokoto.innerHTML = `${ldelim}data.text{rdelim} —— ${ldelim}data.author{rdelim} ${ldelim}data.source{rdelim}`;
} else {
hitokoto.innerHTML = `${ldelim}data.text{rdelim}`;
}
}
</script>
</body>
</html>

@ -3,181 +3,40 @@
<main class="content"> <main class="content">
<div class="content-header ui-content-header"> <div class="content-header ui-content-header">
<div class="container"> <div class="container">
<h1 class="content-heading">使用教程</h1> <h1 class="content-heading">公告</h1>
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<section class="content-inner margin-top-no"> <section class="content-inner margin-top-no">
<div class="ui-card-wrap"> <div class="ui-card-wrap">
<div class="col-lg-12 col-md-12"> <div class="col-lg-12 col-md-12">
<div class="card"> <div class="card">
<div class="card-main"> <div class="card-main">
<div class="card-inner margin-bottom-no">
<div class="card-inner"> <p class="card-heading">公告</p>
<nav class="tab-nav margin-top-no"> <div class="card-table">
<ul class="nav nav-list"> <div class="table-responsive">
<li class="active"> <table class="table">
<a class="" data-toggle="tab" href="#all_ssr_windows"><i class="icon icon-lg">desktop_windows</i>&nbsp;Windows</a> <tr>
</li> <th>ID</th>
<li> <th>日期</th>
<a class="" data-toggle="tab" href="#all_ssr_mac"><i class="icon icon-lg">laptop_mac</i>&nbsp;MacOS</a> <th>内容</th>
</li> </tr>
<li> {foreach $anns as $ann}
<a class="" data-toggle="tab" href="#all_ssr_linux"><i class="icon icon-lg">dvr</i>&nbsp;Linux</a> <tr>
</li> <td>#{$ann->id}</td>
<li> <td>{$ann->date}</td>
<a class="" data-toggle="tab" href="#all_ssr_ios"><i class="icon icon-lg">phone_iphone</i>&nbsp;iOS</a> <td>{$ann->content}</td>
</li> </tr>
<li> {/foreach}
<a class="" data-toggle="tab" href="#all_ssr_android"><i class="icon icon-lg">android</i>&nbsp;Android</a> </table>
</li> </div>
<li>
<a class="" data-toggle="tab" href="#all_ssr_router"><i class="icon icon-lg">router</i>&nbsp;路由器</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_game"><i class="icon icon-lg">videogame_asset</i>&nbsp;游戏端</a>
</li>
</ul>
</nav>
<div class="tab-pane fade active in page-course" id="all_ssr_windows">
<ul>
<h3><li>下载软件</li> </h3>
<ol>
<li>点击左侧用户中心(手机需先点左上角按钮调出导航菜单)</li>
<li>找到快速添加节点</li>
<li>点击下载客户端</li>
<p><img src="/images/c_win_1.png"/></p>
</ol>
</ul>
<ul>
<h3><li>导入节点</li> </h3>
<ul>
<li>解压客户端,双击shadowsocksr4.0的客户端(打不开就用2.0,2.0打不开请下载安装net.framework3.0,还打不开麻烦升级到win7)</li>
<li>方法一:</li>
<ol>
<li>在快速添加节点中找到【备用节点导入方法】</li>
<li>点击其中的链接</li>
<p><img src="/images/c_win_2.png"/></p>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>点击剪贴板批量导入ssr://链接</li>
<p><img src="/images/c_win_3.png"/></p>
</ol>
<li>方法二(推荐):</li>
<ol>
<li>在快速添加节点中找到节点订阅地址</li>
<li>点击按钮复制订阅链接</li>
<p><img src="/images/c_win_4.png"/></p>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>打开SSR服务器订阅链接设置</li>
<p><img src="/images/c_win_5.png"/></p>
<li>点击add添加一个订阅,将复制的链接填入右侧框内点击确定</li>
<p><img src="/images/c_win_6.png"/></p>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>点击更新SSR服务器订阅(不通过代理)</li>
<p><img src="/images/c_win_7.png"/></p>
</ol>
</ul>
</ul>
<ul>
<h3><li>选择节点</li></h3>
<ol>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>服务器->找到对应本站的节点组->选择一个节点单击</li>
<p><img src="/images/c_win_8.png"/></p>
<li>打开浏览器输入www.google.com试试吧!</li>
</ol>
<ul>以上教程均为电脑没有安装过任何代理软件的步骤,如果安装过其他代理软件可能产生冲突</ul>
</ul>
</div> </div>
<div class="tab-pane fade page-course" id="all_ssr_mac">
<p>1:把下载的DMG包放入应用程序列表</p>
<p><img src="/images/c_mac_1.png"/></p>
<p>2:打开程式</p>
<p><img src="/images/c_mac_2.png"/></p>
<p>3:如提示不安全,请到系统偏好设置打开程式</p>
<p><img src="/images/c_mac_3.png"/></p>
<p>4:服务器-编辑订阅</p>
<p><img src="/images/c_mac_4.png"/></p>
<p>5:点击+号后填入订阅链接后手动更新订阅</p>
<p><img src="/images/c_mac_5.png"/></p>
<p><img src="/images/c_mac_4.png"/></p>
<p>6:选择一个节点</p>
<p><img src="/images/c_mac_6.png"/></p>
<p>7:打开谷歌测试一下吧</p>
<p><img src="/images/c_mac_7.png"/></p>
</div>
<div class="tab-pane fade page-course" id="all_ssr_linux">
<h3>Ubuntu使用Shadowsocks-qt5科学上网</h3>
<h4>说明:shadowsocks-qt5是ubuntu上一个可视化的版本</h4>
<hr/>
<h5>安装shadowsocks-qt5</h5>
<pre><code>1.$ sudo add-apt-repository ppa:hzwhuang/ss-qt5
2.$ sudo apt-get update
3.$ sudo apt-get install shadowsocks-qt5</code></pre>
<h5>如果安装成功之后,按<code>win</code>键搜索应该能够找到软件,如下图所示:</h5>
<p><img src="/images/c-linux-1.png"/></p>
<h5>配置shadowsocks-qt5</h5>
<h6>填写对应的服务器IP,端口,密码,加密方式,红色标注地方请与图片一样</h6>
<p><img src="/images/c-linux-4.png"/></p>
<h5>配置系统代理模式</h5>
<p><img src="/images/c-linux-5.png"/></p>
<h5>配置浏览器代理模式(本次为Ubuntu自带FireFox浏览器为例)</h5>
<p><img src="/images/c-linux-6.png"/></p>
<h5>连接并开始上网</h5>
<p><img src="/images/c-linux-7.png"/></p>
<hr/>
<p>本教程由仟佰星云试验截图整理,转载请附本文链接</p>
</div>
<div class="tab-pane fade page-course" id="all_ssr_ios">
<p>1:前往用户中心查看App Store账号,国区App Store已下架)</p>
<p><img src="/images/c_ios_1.jpg"/></p>
<p>2:打开App Store 切换账号,并下载App</p>
<p><img src="/images/c_ios_2.jpg"/></p>
<p>3:打开Safari,登录到 {$config["appName"]} 的用户中心导入节点</p>
<p><img src="/images/c_ios_3.jpg"/></p>
<p>附加:iOS快速连接</p>
<p><img src="/images/c_ios_4.jpg"/></p>
</div>
<div class="tab-pane fade page-course" id="all_ssr_android">
<p>1:下载app</p>
<p><img src="/images/c_android_1.jpg"/></p>
<p>2:添加订阅并更新</p>
<p><img src="/images/c_android_2.jpg"/></p>
<p><img src="/images/c_android_3.jpg"/></p>
<p><img src="/images/c_android_4.jpg"/></p>
<p><img src="/images/c_android_5.jpg"/></p>
<p>3:选择一个节点并设置路由</p>
<p><img src="/images/c_android_6.jpg"/></p>
<p><img src="/images/c_android_7.jpg"/></p>
<p>4:连接</p>
<p><img src="/images/c_android_8.jpg"/></p>
<p>注释:国产安卓系统为定制系统,如需要Youtube、Google套件等,需要安装Google框架,具体机型如何安装各不相同,请直接查找教程</p>
</div>
<div class="tab-pane fade" id="all_ssr_router">
<h2 class="major">路由器</h2>
</div>
<div class="tab-pane fade" id="all_ssr_game">
<h2 class="major">游戏端</h2>
</div>
</div> </div>
</div> </div>
</div> </div>
{include file='dialog.tpl'} {include file='dialog.tpl'}
@ -190,12 +49,4 @@
</main> </main>
{include file='user/footer.tpl'}
{include file='user/footer.tpl'}

@ -1,4 +1,3 @@
<style> <style>
.btn-price { .btn-price {
margin: 5px; margin: 5px;
@ -16,7 +15,7 @@
} }
#qrcode img { #qrcode img {
display: initial!important; display: initial !important;
} }
</style> </style>
<div class="card-inner"> <div class="card-inner">
@ -54,7 +53,7 @@
<div class="modal-dialog modal-xs"> <div class="modal-dialog modal-xs">
<div class="modal-content"> <div class="modal-content">
<div class="modal-heading"> <div class="modal-heading">
<a class="modal-close" id="AliPayReadyToPayClose" data-dismiss="modal">×</a> <a class="modal-close" id="AliPayReadyToPayClose">×</a>
<h2 class="modal-title">扫码充值<span style="color: red;margin-left: 10px;" <h2 class="modal-title">扫码充值<span style="color: red;margin-left: 10px;"
id="countTime"></span> id="countTime"></span>
</h2> </h2>
@ -123,7 +122,10 @@
success: function (data) { success: function (data) {
if (data.ret) { if (data.ret) {
$order_id = data.id; $order_id = data.id;
$("#AliPayReadyToPay").modal(); $("#AliPayReadyToPay").modal({
backdrop: 'static',
keyboard: false
});
getCountdown(); getCountdown();
$id = setInterval(function () { $id = setInterval(function () {
getCountdown() getCountdown()
@ -132,8 +134,7 @@
checkPayTime(data.id) checkPayTime(data.id)
}, 1000); }, 1000);
if (data.url) { if (data.url) {
if ($type == 2) if ($type == 2) $('.pay').attr('href', $wxpayApp);
$('.pay').attr('href', $wxpayApp);
else $('.pay').attr('href', $alipay + data.url); else $('.pay').attr('href', $alipay + data.url);
qrcode.clear(); qrcode.clear();
qrcode.makeCode(data.url); qrcode.makeCode(data.url);
@ -183,10 +184,13 @@
} }
$('#AliPayReadyToPayClose').unbind('click').click(function () { $('#AliPayReadyToPayClose').unbind('click').click(function () {
if (CheckPayTimeId) clearTimeout(CheckPayTimeId); if (confirm("此操作会删除您的订单,是否确定要取消订单吗❓ \n如果您支付完成请耐心等候系统提示,请点取消按钮!")) {
if ($id) clearInterval($id); if (CheckPayTimeId) clearTimeout(CheckPayTimeId);
AliPayDelete($order_id); if ($id) clearInterval($id);
$('.pay').attr('href', '').children('img').attr('src', '/images/loading.gif'); AliPayDelete($order_id);
$("#AliPayReadyToPay").modal('hide');
$('.pay').attr('href', '').children('img').attr('src', '/images/loading.gif');
}
}); });
function close($msg) { function close($msg) {

@ -350,7 +350,7 @@
<p>价格:<code>{$config['port_price_specify']}</code>元/次</p> <p>价格:<code>{$config['port_price_specify']}</code>元/次</p>
<p>端口范围:<code>{$config['min_port']}~{$config['max_port']}</code></p> <p>端口范围:<code>{$config['min_port']}~{$config['max_port']}</code></p>
<div class="form-group form-group-label"> <div class="form-group form-group-label">
<label class="floating-label" for="port-specify">在这输入想钦定的号</label> <label class="floating-label" for="port-specify">在这输入想钦定的端口号</label>
<input class="form-control maxwidth-edit" id="port-specify" type="num"> <input class="form-control maxwidth-edit" id="port-specify" type="num">
</div> </div>
</div> </div>
@ -361,28 +361,6 @@
</div> </div>
{/if} {/if}
<div class="card margin-bottom-no">
<div class="card-main">
<div class="card-inner">
<div class="card-inner">
<div class="cardbtn-edit">
<div class="card-heading">自定义规则</div>
<button class="btn btn-flat" id="setpac"><span class="icon">settings</span>&nbsp;</button>
</div>
<p>适用于ACL/PAC/Surge</p>
<p>格式参看<a href="https://adblockplus.org/zh_CN/filters">撰写 Adblock Plus 过滤规则</a></p>
<p>IP 段请使用 |127.0.0.0/8 类似格式表示</p>
<div class="form-group form-group-label control-highlight-custom">
<label class="floating-label" for="pac">规则书写区</label>
<code contenteditable="true" class="form-control maxwidth-edit" id="pac">{$user->pac}</code>
</div>
</div>
</div>
</div>
</div>
{if $config['enable_telegram'] == 'true'} {if $config['enable_telegram'] == 'true'}
<div class="card margin-bottom-no"> <div class="card margin-bottom-no">
<div class="card-main"> <div class="card-main">

@ -144,6 +144,8 @@
<p class="card-heading"> <i class="icon icon-md">notifications_active</i>公告栏</p> <p class="card-heading"> <i class="icon icon-md">notifications_active</i>公告栏</p>
{if $ann != null} {if $ann != null}
<p>{$ann->content}</p> <p>{$ann->content}</p>
<br/>
<strong>查看所有公告请<a href="/user/announcement">点击这里</a></strong>
{/if} {/if}
{if $config["enable_admin_contact"] == 'true'} {if $config["enable_admin_contact"] == 'true'}
<p class="card-heading">管理员联系方式</p> <p class="card-heading">管理员联系方式</p>
@ -221,7 +223,7 @@
{$user = URL::getSSRConnectInfo($pre_user)} {$user = URL::getSSRConnectInfo($pre_user)}
{$ssr_url_all = URL::getAllUrl($pre_user, 0, 0)} {$ssr_url_all = URL::getAllUrl($pre_user, 0, 0)}
{$ssr_url_all_mu = URL::getAllUrl($pre_user, 1, 0)} {$ssr_url_all_mu = URL::getAllUrl($pre_user, 1, 0)}
<p><span class="icon icon-lg text-white">filter_1</span><a class="btn-dl" href="/ssr-download/ssr-win.7z"><i class="material-icons">save_alt</i> 点击下载客户端</a>解压至任意磁盘并运行</p> <p><span class="icon icon-lg text-white">filter_1</span><a class="btn-dl" href="/ssr-download/ssr-win.7z"><i class="material-icons">save_alt</i> 点击下载SSRR</a>解压至任意磁盘并运行</p>
<p><span class="icon icon-lg text-white">filter_2</span> 任务栏右下角右键纸飞机图标->服务器订阅->SSR服务器订阅设置,将订阅链接设置为下面的地址,确定之后再更新SSR服务器订阅(绕过代理)</p> <p><span class="icon icon-lg text-white">filter_2</span> 任务栏右下角右键纸飞机图标->服务器订阅->SSR服务器订阅设置,将订阅链接设置为下面的地址,确定之后再更新SSR服务器订阅(绕过代理)</p>
<p> <span class="icon icon-lg text-white">filter_3</span> 然后选择一个合适的服务器,代理规则选“绕过局域网和大陆”,然后即可上网</p> <p> <span class="icon icon-lg text-white">filter_3</span> 然后选择一个合适的服务器,代理规则选“绕过局域网和大陆”,然后即可上网</p>
<p><span class="icon icon-lg text-white">filter_4</span> 备用导入节点方法:点击复制<a class="copy-text btn-dl" data-clipboard-text="{$ssr_url_all}"><i class="material-icons icon-sm">how_to_vote</i>普通端口链接</a>或者<a class="copy-text btn-dl" data-clipboard-text="{$ssr_url_all_mu}"><i class="material-icons icon-sm">how_to_vote</i>单端口多用户链接</a>,然后右键小飞机->从剪贴板复制地址</p> <p><span class="icon icon-lg text-white">filter_4</span> 备用导入节点方法:点击复制<a class="copy-text btn-dl" data-clipboard-text="{$ssr_url_all}"><i class="material-icons icon-sm">how_to_vote</i>普通端口链接</a>或者<a class="copy-text btn-dl" data-clipboard-text="{$ssr_url_all_mu}"><i class="material-icons icon-sm">how_to_vote</i>单端口多用户链接</a>,然后右键小飞机->从剪贴板复制地址</p>
@ -233,14 +235,13 @@
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div>
{/if} {/if}
<p><a href="/user/announcement">点击这里查看Windows傻瓜式教程</a></p> <p><a href="/user/tutorial">点击这里查看Windows教程</a></p>
</div> </div>
<div class="tab-pane fade" id="all_ssr_mac"> <div class="tab-pane fade" id="all_ssr_mac">
<p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ssr-mac.dmg" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载客户端</a>,并打开</p> <p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ssr-mac.dmg" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载ShadowsocksX-NG-R8</a>,安装并启动</p>
<p><span class="icon icon-lg text-white">filter_2</span> 把ShadowsocksX拖入到Finder的应用程序列表(Applications)</p> <p><span class="icon icon-lg text-white">filter_2</span> 右击托盘纸飞机图标->服务器->服务器订阅,填入以下订阅地址</p>
<p><span class="icon icon-lg text-white">filter_3</span> 打开Launchapad里的ShadowsocksX</p> <p><span class="icon icon-lg text-white">filter_3</span >更新订阅成功后服务器列表即可出现节点,选择一个节点</p>
<p><span class="icon icon-lg text-white">filter_4</span> 菜单栏的纸飞机图标-服务器-服务器订阅填入以下订阅地址,更新后出现您的节点</p> <p><span class="icon icon-lg text-white">filter_4</span> 再次右击托盘纸飞机图标,如果shadowsocks还未打开,则需要点击打开</p>
<p><span class="icon icon-lg text-white">filter_5</span> 菜单栏的纸飞机图标-打开shadowsocks</p>
<div><span class="icon icon-lg text-white">flash_auto</span> {if !$mergeSub}普通节点{/if}订阅地址:</div> <div><span class="icon icon-lg text-white">flash_auto</span> {if !$mergeSub}普通节点{/if}订阅地址:</div>
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}{if !$mergeSub}?mu=0{/if}" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}{if !$mergeSub}?mu=0{/if}">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}{if !$mergeSub}?mu=0{/if}" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}{if !$mergeSub}?mu=0{/if}">点击复制</button><br></div>
@ -248,10 +249,10 @@
<div><span class="icon icon-lg text-white">flash_auto</span> 单端口节点订阅地址:</div> <div><span class="icon icon-lg text-white">flash_auto</span> 单端口节点订阅地址:</div>
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div>
{/if} {/if}
<p><a href="/user/announcement">点击这里查看Mac傻瓜式教程</a></p> <p><a href="/user/tutorial">点击这里查看Mac教程</a></p>
</div> </div>
<div class="tab-pane fade" id="all_ssr_linux"> <div class="tab-pane fade" id="all_ssr_linux">
<p><a href="/user/announcement">点击这里查看Linux傻瓜式教程</a></p> <p><a href="/user/tutorial">点击这里查看Linux教程</a></p>
</div> </div>
<div class="tab-pane fade" id="all_ssr_ios"> <div class="tab-pane fade" id="all_ssr_ios">
{if $display_ios_class>=0} {if $display_ios_class>=0}
@ -281,7 +282,7 @@
<div><span class="icon icon-lg text-white">flash_auto</span> 单端口节点订阅地址:</div> <div><span class="icon icon-lg text-white">flash_auto</span> 单端口节点订阅地址:</div>
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" id="sub1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" id="sub1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div>
{/if} {/if}
<!-- <p><a href="/user/announcement">点击这里查看iOS傻瓜式教程</a></p> --> <!-- <p><a href="/user/tutorial">点击这里查看iOS教程</a></p> -->
</div> </div>
<div class="tab-pane fade" id="all_ssr_android"> <div class="tab-pane fade" id="all_ssr_android">
<p><span class="icon icon-lg text-white">filter_1</span>点击下载<a href="/ssr-download/ssr-android.apk" class="btn-dl"><i class="material-icons">save_alt</i> SSR </a> 或 <a href="/ssr-download/ssrr-android.apk" class="btn-dl"><i class="material-icons">save_alt</i> SSRR </a> 并安装</p> <p><span class="icon icon-lg text-white">filter_1</span>点击下载<a href="/ssr-download/ssr-android.apk" class="btn-dl"><i class="material-icons">save_alt</i> SSR </a> 或 <a href="/ssr-download/ssrr-android.apk" class="btn-dl"><i class="material-icons">save_alt</i> SSRR </a> 并安装</p>
@ -301,7 +302,7 @@
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div>
{/if} {/if}
<p><a href="/user/announcement">点击这里查看Android傻瓜式教程</a></p> <p><a href="/user/tutorial">点击这里查看Android教程</a></p>
</div> </div>
<div class="tab-pane fade" id="all_ssr_router"> <div class="tab-pane fade" id="all_ssr_router">
<p>梅林:</p> <p>梅林:</p>
@ -322,7 +323,7 @@
{/if} {/if}
</div> </div>
<div class="tab-pane fade" id="all_ssr_game"> <div class="tab-pane fade" id="all_ssr_game">
<p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/SSTap.7z" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载客户端</a>,并安装</p> <p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/SSTap.7z" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载SSTap</a>,并安装</p>
<p><span class="icon icon-lg text-white">filter_2</span> 期间会安装虚拟网卡,请点击允许或确认</p> <p><span class="icon icon-lg text-white">filter_2</span> 期间会安装虚拟网卡,请点击允许或确认</p>
<p><span class="icon icon-lg text-white">filter_3</span> 打开桌面程序SSTap</p> <p><span class="icon icon-lg text-white">filter_3</span> 打开桌面程序SSTap</p>
<p><span class="icon icon-lg text-white">filter_4</span> 齿轮图标-SSR订阅-SSR订阅管理添加以下订阅链接即可</p> <p><span class="icon icon-lg text-white">filter_4</span> 齿轮图标-SSR订阅-SSR订阅管理添加以下订阅链接即可</p>
@ -335,7 +336,7 @@
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=1" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=1">点击复制</button><br></div>
{/if} {/if}
<p><a href="/user/announcement">点击这里查看游戏客户端傻瓜式教程</a></p> <p><a href="/user/tutorial">点击这里查看游戏客户端教程</a></p>
</div> </div>
<div class="tab-pane fade" id="all_ssr_info"> <div class="tab-pane fade" id="all_ssr_info">
{$user = URL::getSSRConnectInfo($pre_user)} {$user = URL::getSSRConnectInfo($pre_user)}
@ -390,9 +391,8 @@
</nav> </nav>
<div class="tab-pane fade" id="all_ss_info"> <div class="tab-pane fade" id="all_ss_info">
{$user = URL::getSSConnectInfo($pre_user)} {$user = URL::getSSConnectInfo($pre_user)}
{$ss_url_all = URL::getAllUrl($pre_user, 0, 1)}
{$ss_url_all_mu = URL::getAllUrl($pre_user, 1, 1)} {$ss_url_all_mu = URL::getAllUrl($pre_user, 1, 1)}
{$ss_url_all_win = URL::getAllUrl($pre_user, 0, 2)} {$ss_url_all = URL::getAllUrl($pre_user, 0, 2)}
{$ssd_url_all =URL::getAllSSDUrl($user)} {$ssd_url_all =URL::getAllSSDUrl($user)}
{if URL::SSCanConnect($user)} {if URL::SSCanConnect($user)}
@ -418,12 +418,14 @@
<p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ssd-win.7z" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 SSD</a>,解压至任意磁盘并运行</p> <p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ssd-win.7z" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 SSD</a>,解压至任意磁盘并运行</p>
<p><span class="icon icon-lg text-white">filter_2</span> 任务栏右下角右键纸飞机图标->服务器订阅->SSD服务器订阅设置,将订阅链接设置为下面的地址,确定之后再更新SSD服务器订阅</p> <p><span class="icon icon-lg text-white">filter_2</span> 任务栏右下角右键纸飞机图标->服务器订阅->SSD服务器订阅设置,将订阅链接设置为下面的地址,确定之后再更新SSD服务器订阅</p>
<p><span class="icon icon-lg text-white">filter_3</span> 然后选择一个合适的服务器,代理规则选“绕过局域网和大陆”,然后即可上网</p> <p><span class="icon icon-lg text-white">filter_3</span> 然后选择一个合适的服务器,代理规则选“绕过局域网和大陆”,然后即可上网</p>
<p><span class="icon icon-lg text-white">filter_4</span> 备用导入节点方法:<a class="copy-text btn-dl" data-clipboard-text='{$ssd_url_all}'><i class="material-icons icon-sm">how_to_vote</i>复制链接</a>,然后右键小飞机->从剪贴板复制地址</p> <p><span class="icon icon-lg text-white">filter_4</span> 备用导入节点方法:<a class="copy-text btn-dl" data-clipboard-text='{$ssd_url_all}'><i class="material-icons icon-sm">how_to_vote</i>点我复制链接</a>,然后右键小飞机->从剪贴板复制地址</p>
<div><span class="icon icon-lg text-white">flash_auto</span> 节点订阅地址:</div> <div><span class="icon icon-lg text-white">flash_auto</span> 节点订阅地址:</div>
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=3" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=3">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=3" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=3">点击复制</button><br></div>
</div> </div>
<div class="tab-pane fade" id="all_ss_mac"> <div class="tab-pane fade" id="all_ss_mac">
<p><a href="/ssr-download/ss-mac.zip" class="btn-dl"><i class="material-icons">save_alt</i> 下载客户端</a>,安装,然后下载<a href="/user/getpcconf?is_mu=0&is_ss=1" class="btn-dl"><i class="material-icons icon-sm">how_to_vote</i>普通端口链接</a>或者<a href="/user/getpcconf?is_mu=1&is_ss=1" class="btn-dl"><i class="material-icons icon-sm">how_to_vote</i>单端口多用户链接</a>,运行程序,小飞机上右键 服务器列表 子菜单 的 “导入服务器配置文件...” 导入这个文件,然后选择一个合适的服务器,更新一下PAC,然后开启系统代理即可上网</p> <p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ss-mac.zip" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 ShadowsocksX-NG</a>,并安装</p>
<p><span class="icon icon-lg text-white">filter_2</span> <a class="copy-text btn-dl" data-clipboard-text='{$ss_url_all}'><i class="material-icons icon-sm">how_to_vote</i>点我复制链接</a>,然后右击托盘小飞机图标->从剪贴板导入服务器配置链接</p>
<p><span class="icon icon-lg text-white">filter_3</span> 再次右击托盘小飞机图标->服务器,选择一个服务器即可上网</p>
</div> </div>
<div class="tab-pane fade" id="all_ss_ios"> <div class="tab-pane fade" id="all_ss_ios">
{if $display_ios_class>=0} {if $display_ios_class>=0}
@ -449,8 +451,8 @@
</div> </div>
<div class="tab-pane fade" id="all_ss_android"> <div class="tab-pane fade" id="all_ss_android">
<p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ssd-android.apk" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 SSD</a>,<a href="/ssr-download/ss-android-obfs.apk" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 SS 混淆插件</a></p> <p><span class="icon icon-lg text-white">filter_1</span><a href="/ssr-download/ssd-android.apk" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 SSD</a>,<a href="/ssr-download/ss-android-obfs.apk" class="btn-dl"><i class="material-icons">save_alt</i> 点击下载 SS 混淆插件</a></p>
<p><span class="icon icon-lg text-white">filter_2</span> 安装后,在手机上点击 <a class="copy-text btn-dl" data-clipboard-text="{$ss_url_all}"><i class="material-icons icon-sm">how_to_vote</i>复制链接</a></p> <p><span class="icon icon-lg text-white">filter_2</span> 安装后,在手机上点击复制下方的订阅链接</a></p>
<p><span class="icon icon-lg text-white">filter_3</span> 打开 ShadowsocksD 客户端,点击右上角的“加号”,选择“添加订阅”,将剪贴板中的内容粘贴进去,点击“OK”,稍等片刻即可看见订阅的节点</p> <p><span class="icon icon-lg text-white">filter_3</span> 打开 ShadowsocksD ,点击右上角的“加号”,选择“添加订阅”,将剪贴板中的内容粘贴进去,点击“OK”,稍等片刻即可看见订阅的节点</p>
<div><span class="icon icon-lg text-white">flash_auto</span> 节点订阅地址:</div> <div><span class="icon icon-lg text-white">flash_auto</span> 节点订阅地址:</div>
<div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=3" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=3">点击复制</button><br></div> <div class="float-clear"><input type="text" class="input form-control form-control-monospace cust-link col-xx-12 col-sm-8 col-lg-7" name="input1" readonly value="{$subUrl}{$ssr_sub_token}?mu=3" readonly="true"><button class="copy-text btn btn-subscription col-xx-12 col-sm-3 col-lg-2" type="button" data-clipboard-text="{$subUrl}{$ssr_sub_token}?mu=3">点击复制</button><br></div>
</div> </div>
@ -664,21 +666,21 @@
<div class="progressbar"> <div class="progressbar">
<div class="before"></div> <div class="before"></div>
<div class="bar tuse color3" style="width:calc({($user->u+$user->d-$user->last_day_t)/$user->transfer_enable*100}%);"><span></span></div> <div class="bar tuse color3" style="width:calc({($user->transfer_enable==0)?0:($user->u+$user->d-$user->last_day_t)/$user->transfer_enable*100}%);"><span></span></div>
<div class="label-flex"> <div class="label-flex">
<div class="label la-top"><div class="bar ard color3"><span></span></div><span class="traffic-info">今日已用</span><code class="card-tag tag-red">{$user->TodayusedTraffic()}</code></div> <div class="label la-top"><div class="bar ard color3"><span></span></div><span class="traffic-info">今日已用</span><code class="card-tag tag-red">{$user->TodayusedTraffic()}</code></div>
</div> </div>
</div> </div>
<div class="progressbar"> <div class="progressbar">
<div class="before"></div> <div class="before"></div>
<div class="bar ard color2" style="width:calc({$user->last_day_t/$user->transfer_enable*100}%);"><span></span></div> <div class="bar ard color2" style="width:calc({($user->transfer_enable==0)?0:$user->last_day_t/$user->transfer_enable*100}%);"><span></span></div>
<div class="label-flex"> <div class="label-flex">
<div class="label la-top"><div class="bar ard color2"><span></span></div><span class="traffic-info">过去已用</span><code class="card-tag tag-orange">{$user->LastusedTraffic()}</code></div> <div class="label la-top"><div class="bar ard color2"><span></span></div><span class="traffic-info">过去已用</span><code class="card-tag tag-orange">{$user->LastusedTraffic()}</code></div>
</div> </div>
</div> </div>
<div class="progressbar"> <div class="progressbar">
<div class="before"></div> <div class="before"></div>
<div class="bar remain color" style="width:calc({($user->transfer_enable-($user->u+$user->d))/$user->transfer_enable*100}%);"><span></span></div> <div class="bar remain color" style="width:calc({($user->transfer_enable==0)?0:($user->transfer_enable-($user->u+$user->d))/$user->transfer_enable*100}%);"><span></span></div>
<div class="label-flex"> <div class="label-flex">
<div class="label la-top"><div class="bar ard color"><span></span></div><span class="traffic-info">剩余流量</span><code class="card-tag tag-green" id="remain">{$user->unusedTraffic()}</code></div> <div class="label la-top"><div class="bar ard color"><span></span></div><span class="traffic-info">剩余流量</span><code class="card-tag tag-green" id="remain">{$user->unusedTraffic()}</code></div>
</div> </div>

@ -46,6 +46,10 @@
<input type="text" class="input form-control form-control-monospace cust-link" name="input1" readonly="" value="{$config["baseUrl"]}/auth/register?code={$code->code}"> <input type="text" class="input form-control form-control-monospace cust-link" name="input1" readonly="" value="{$config["baseUrl"]}/auth/register?code={$code->code}">
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$config["baseUrl"]}/auth/register?code={$code->code}">点击复制</button> <button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$config["baseUrl"]}/auth/register?code={$code->code}">点击复制</button>
</div> </div>
<div class="invite-link">
<input type="text" class="input form-control form-control-monospace cust-link" name="input2" readonly="" value="{$config["baseUrl"]}/#/auth/register?code={$code->code}">
<button class="copy-text btn btn-subscription" type="button" data-clipboard-text="{$config["baseUrl"]}/#/auth/register?code={$code->code}">点击复制</button>
</div>
</div> </div>
</div> </div>
</div> </div>

@ -86,6 +86,12 @@
</a> </a>
</li> </li>
<li>
<a href="/user/trafficlog">
<i class="icon icon-lg">hourglass_empty</i>&nbsp;流量记录
</a>
</li>
{if $config['enable_ticket']=='true'} {if $config['enable_ticket']=='true'}
<li> <li>
<a href="/user/ticket"> <a href="/user/ticket">
@ -118,16 +124,19 @@
</li> </li>
<li> <li>
<a href="/user/trafficlog"> <a href="/user/lookingglass">
<i class="icon icon-lg">hourglass_empty</i>&nbsp;流量记录 <i class="icon icon-lg">visibility</i>&nbsp;延迟检测
</a> </a>
</li> </li>
<li> <li>
<a href="/user/lookingglass">
<i class="icon icon-lg">visibility</i>&nbsp;延迟检测
</a>
<a href="/user/announcement"> <a href="/user/announcement">
<i class="icon icon-lg">announcement</i>&nbsp;网站公告
</a>
</li>
<li>
<a href="/user/tutorial">
<i class="icon icon-lg">start</i>&nbsp;使用教程 <i class="icon icon-lg">start</i>&nbsp;使用教程
</a> </a>
</li> </li>

@ -0,0 +1,201 @@
{include file='user/main.tpl'}
<main class="content">
<div class="content-header ui-content-header">
<div class="container">
<h1 class="content-heading">使用教程</h1>
</div>
</div>
<div class="container">
<section class="content-inner margin-top-no">
<div class="ui-card-wrap">
<div class="col-lg-12 col-md-12">
<div class="card">
<div class="card-main">
<div class="card-inner">
<nav class="tab-nav margin-top-no">
<ul class="nav nav-list">
<li class="active">
<a class="" data-toggle="tab" href="#all_ssr_windows"><i class="icon icon-lg">desktop_windows</i>&nbsp;Windows</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_mac"><i class="icon icon-lg">laptop_mac</i>&nbsp;MacOS</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_linux"><i class="icon icon-lg">dvr</i>&nbsp;Linux</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_ios"><i class="icon icon-lg">phone_iphone</i>&nbsp;iOS</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_android"><i class="icon icon-lg">android</i>&nbsp;Android</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_router"><i class="icon icon-lg">router</i>&nbsp;路由器</a>
</li>
<li>
<a class="" data-toggle="tab" href="#all_ssr_game"><i class="icon icon-lg">videogame_asset</i>&nbsp;游戏端</a>
</li>
</ul>
</nav>
<div class="tab-pane fade active in page-course" id="all_ssr_windows">
<ul>
<h3><li>下载软件</li> </h3>
<ol>
<li>点击左侧用户中心(手机需先点左上角按钮调出导航菜单)</li>
<li>找到快速添加节点</li>
<li>点击下载客户端</li>
<p><img src="/images/c_win_1.png"/></p>
</ol>
</ul>
<ul>
<h3><li>导入节点</li> </h3>
<ul>
<li>解压客户端,双击shadowsocksr4.0的客户端(打不开就用2.0,2.0打不开请下载安装net.framework3.0,还打不开麻烦升级到win7)</li>
<li>方法一:</li>
<ol>
<li>在快速添加节点中找到【备用节点导入方法】</li>
<li>点击其中的链接</li>
<p><img src="/images/c_win_2.png"/></p>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>点击剪贴板批量导入ssr://链接</li>
<p><img src="/images/c_win_3.png"/></p>
</ol>
<li>方法二(推荐):</li>
<ol>
<li>在快速添加节点中找到节点订阅地址</li>
<li>点击按钮复制订阅链接</li>
<p><img src="/images/c_win_4.png"/></p>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>打开SSR服务器订阅链接设置</li>
<p><img src="/images/c_win_5.png"/></p>
<li>点击add添加一个订阅,将复制的链接填入右侧框内点击确定</li>
<p><img src="/images/c_win_6.png"/></p>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>点击更新SSR服务器订阅(不通过代理)</li>
<p><img src="/images/c_win_7.png"/></p>
</ol>
</ul>
</ul>
<ul>
<h3><li>选择节点</li></h3>
<ol>
<li>找到系统托盘菜单中的SSR纸飞机图标右键调出菜单</li>
<li>服务器->找到对应本站的节点组->选择一个节点单击</li>
<p><img src="/images/c_win_8.png"/></p>
<li>打开浏览器输入www.google.com试试吧!</li>
</ol>
<ul>以上教程均为电脑没有安装过任何代理软件的步骤,如果安装过其他代理软件可能产生冲突</ul>
</ul>
</div>
<div class="tab-pane fade page-course" id="all_ssr_mac">
<p>1:把下载的DMG包放入应用程序列表</p>
<p><img src="/images/c_mac_1.png"/></p>
<p>2:打开程式</p>
<p><img src="/images/c_mac_2.png"/></p>
<p>3:如提示不安全,请到系统偏好设置打开程式</p>
<p><img src="/images/c_mac_3.png"/></p>
<p>4:服务器-编辑订阅</p>
<p><img src="/images/c_mac_4.png"/></p>
<p>5:点击+号后填入订阅链接后手动更新订阅</p>
<p><img src="/images/c_mac_5.png"/></p>
<p><img src="/images/c_mac_4.png"/></p>
<p>6:选择一个节点</p>
<p><img src="/images/c_mac_6.png"/></p>
<p>7:打开谷歌测试一下吧</p>
<p><img src="/images/c_mac_7.png"/></p>
</div>
<div class="tab-pane fade page-course" id="all_ssr_linux">
<h3>Ubuntu使用Shadowsocks-qt5科学上网</h3>
<h4>说明:shadowsocks-qt5是ubuntu上一个可视化的版本</h4>
<hr/>
<h5>安装shadowsocks-qt5</h5>
<pre><code>1.$ sudo add-apt-repository ppa:hzwhuang/ss-qt5
2.$ sudo apt-get update
3.$ sudo apt-get install shadowsocks-qt5</code></pre>
<h5>如果安装成功之后,按<code>win</code>键搜索应该能够找到软件,如下图所示:</h5>
<p><img src="/images/c-linux-1.png"/></p>
<h5>配置shadowsocks-qt5</h5>
<h6>填写对应的服务器IP,端口,密码,加密方式,红色标注地方请与图片一样</h6>
<p><img src="/images/c-linux-4.png"/></p>
<h5>配置系统代理模式</h5>
<p><img src="/images/c-linux-5.png"/></p>
<h5>配置浏览器代理模式(本次为Ubuntu自带FireFox浏览器为例)</h5>
<p><img src="/images/c-linux-6.png"/></p>
<h5>连接并开始上网</h5>
<p><img src="/images/c-linux-7.png"/></p>
<hr/>
<p>本教程由仟佰星云试验截图整理,转载请附本文链接</p>
</div>
<div class="tab-pane fade page-course" id="all_ssr_ios">
<p>1:前往用户中心查看App Store账号,国区App Store已下架)</p>
<p><img src="/images/c_ios_1.jpg"/></p>
<p>2:打开App Store 切换账号,并下载App</p>
<p><img src="/images/c_ios_2.jpg"/></p>
<p>3:打开Safari,登录到 {$config["appName"]} 的用户中心导入节点</p>
<p><img src="/images/c_ios_3.jpg"/></p>
<p>附加:iOS快速连接</p>
<p><img src="/images/c_ios_4.jpg"/></p>
</div>
<div class="tab-pane fade page-course" id="all_ssr_android">
<p>1:下载app</p>
<p><img src="/images/c_android_1.jpg"/></p>
<p>2:添加订阅并更新</p>
<p><img src="/images/c_android_2.jpg"/></p>
<p><img src="/images/c_android_3.jpg"/></p>
<p><img src="/images/c_android_4.jpg"/></p>
<p><img src="/images/c_android_5.jpg"/></p>
<p>3:选择一个节点并设置路由</p>
<p><img src="/images/c_android_6.jpg"/></p>
<p><img src="/images/c_android_7.jpg"/></p>
<p>4:连接</p>
<p><img src="/images/c_android_8.jpg"/></p>
<p>注释:国产安卓系统为定制系统,如需要Youtube、Google套件等,需要安装Google框架,具体机型如何安装各不相同,请直接查找教程</p>
</div>
<div class="tab-pane fade" id="all_ssr_router">
<h2 class="major">路由器</h2>
</div>
<div class="tab-pane fade" id="all_ssr_game">
<h2 class="major">游戏端</h2>
</div>
</div>
</div>
</div>
{include file='dialog.tpl'}
</div>
</div>
</section>
</div>
</main>
{include file='user/footer.tpl'}
Loading…
Cancel
Save