diff --git a/README.md b/README.md index f0d077681f..7e89e549e3 100644 --- a/README.md +++ b/README.md @@ -1,73 +1,11 @@ -# 欢迎使用SS-panel-modV3再次修改版 +# 欢迎使用SS-panel-modV3再次修改 bug fix版 -**ss-panel-v3-mod**是一款转为shadowsocks设计的web前端面板,再次感谢ss-panel-v3mod 的制作者,修改后的功能简介: +**ss-panel-v3-mod**是一款专为shadowsocks设计的web前端面板,再次感谢ss-panel-v3mod 以及 再次修改版的制作者。 -- **f2f当面付集成** :支付宝f2f接入 -- **UI** :修改成 ~~援交~~ 圆角、并自定义了几个图标的显示 -- **节点** :节点列表等級0可见等級1节点但无法看见节点详情,增加了国家图标显示 -- **图片**: 添加 ~~死宅喜欢的~~ 萌化图片 -telegram交流群:https://t.me/joinchat/Fjn0HkeqdoovkJgTRnvoNw +这个Fork修复了一些常见的奇奇怪怪的小问题,比如错别字,漏标签,变量等。 -**此面板作者为**[galaxychuck](https://github.com/galaxychuck),因某些原因删除仓库,现代为上传 +安装教程参照:https://github.com/iMeiji/ss-panel-v3-mod/wiki/%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E-lnmp1.4 -**作者Paypal打賞:galaxychuck1995@gmail.com** - -本人不懂编程,不接受功能需求及面板搭建失败之类issus,欢迎dalao提交pr - -本面板在[宝塔面板5.6.0](www.bt.cn),宝塔安装版 nginx1.12,php 7.1 ,mysql 5.7 上全部功能测试通过 - -所有图片由**仟佰星云**制作,**仅供示例**,请搭建完成**手动**替换图片和文字等 - -## 搭建教程 - -感谢LALA制作教程:https://lala.im/2398.html - -GitHub Wiki : https://github.com/NimaQu/ss-panel-v3-mod_UIChanges/wiki/%E5%89%8D%E7%AB%AF%E5%AE%89%E8%A3%85 - -Wiki已经启用,欢迎为此面板制作维护wiki - -### 示例图片 Images - -Image: -------------------- -![](https://github.com/galaxychuck/images/blob/master/1.jpg) - -> 登陆界面 -------------------- - -![](https://github.com/galaxychuck/images/blob/master/2.jpg) - -> 首页 - -------------------- -![](https://github.com/galaxychuck/images/blob/master/3.jpg) - -> 位置调整 - -------------------- -![](https://github.com/galaxychuck/images/blob/master/4.jpg) - -> 非VIP查看等級1节点显示 - -------------------- -![](https://github.com/galaxychuck/images/blob/master/5.jpg) - -> f2f支付宝支付([需要代开当面付点我](https://t.me/galaxyq)) - -------------------- -![](https://github.com/galaxychuck/images/blob/master/6.jpg) - -> 教程 -------------------- - -![](https://github.com/galaxychuck/images/blob/master/7.jpg) - - - -#### 鸣谢 - -很高兴您使用并喜欢该主题,开发不易 十分谢谢与希望您可以保留一下版权声明。 - -它不会影响美观并可以给开发者很大的支持和动力。~~听说删除staff的网站都会遭遇未知DDOS攻击~~ +执行完php xcat initdownload后,记的把public下的SSTap.7z移动到ssr-download文件夹。 diff --git a/app/Command/Job.php b/app/Command/Job.php index f4e8e591d7..2ce1cda32e 100644 --- a/app/Command/Job.php +++ b/app/Command/Job.php @@ -262,7 +262,8 @@ public static function DailyJob() Job::backup(); } - Job::updatedownload(); + //Job::updatedownload(); + //修复未知updatedownload函数问题 } // 注释該代碼:會導致重置流量任務失效 // public static function updatedownload() diff --git a/app/Utils/TelegramProcess.php b/app/Utils/TelegramProcess.php index 887ba6eb18..fbf9204b72 100644 --- a/app/Utils/TelegramProcess.php +++ b/app/Utils/TelegramProcess.php @@ -13,21 +13,21 @@ private static function needbind_method($bot, $message, $command, $user, $reply_ switch ($command) { case 'traffic': $bot->sendMessage($message->getChat()->getId(), "您当前的流量状况: - 今日已使用 ".$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)."% +今日已使用 ".$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)."% ", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); break; case 'checkin': if (!$user->isAbleToCheckin()) { - $bot->sendMessage($message->getChat()->getId(), "您今天续过了,别续了!再续,再续我就把你续给长者了!", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); + $bot->sendMessage($message->getChat()->getId(), "您今天已经签过到了!", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); break; } $traffic = rand(Config::get('checkinMin'), Config::get('checkinMax')); $user->transfer_enable = $user->transfer_enable + Tools::toMB($traffic); $user->last_check_in_time = time(); $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; default: $bot->sendMessage($message->getChat()->getId(), "???", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); @@ -62,7 +62,6 @@ public static function telegram_process($bot, $message, $command) case 'help': $help_list = "命令列表: /ping 获取群组ID - /chat 唠嗑 /traffic 查询流量 /checkin 签到续命 /help 获取帮助信息 @@ -189,7 +188,6 @@ public static function telegram_process($bot, $message, $command) case 'help': $help_list_group = "命令列表: /ping 获取群组ID - /chat 唠嗑 /traffic 查询流量 /checkin 签到续命 /help 获取帮助信息 diff --git a/config/.config.php.example b/config/.config.php.example index 7f9ac8602d..d772d4d66f 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -11,10 +11,10 @@ $System_Config['timeZone'] = 'PRC'; // PRC 天朝时间 UTC 格林时间 $System_Config['pwdMethod'] = 'sha256'; // 密码加密 可选 md5,sha256 $System_Config['salt'] = ''; // 密码加密用,从旧版升级请留空 $System_Config['theme'] = 'material'; // 主题 -$System_Config['authDriver'] = 'cookie'; // 登录验证存储方式 可选: cookie,redis -$System_Config['sessionDriver'] = 'cookie'; -$System_Config['cacheDriver'] = 'cookie'; -$System_Config['tokenDriver'] = 'db'; +$System_Config['authDriver'] = 'cookie'; //不能更改此项 +$System_Config['sessionDriver'] = 'cookie'; // 可选: cookie,redis +$System_Config['cacheDriver'] = 'cookie'; // 可选: cookie,redis +$System_Config['tokenDriver'] = 'db'; // 可选: db,redis //$System_Config['version'] = 'Glzjin mod-2016042210000'; @@ -163,7 +163,7 @@ $System_Config['auto_backup_passwd']='zip password'; #跳转延时,ms -$System_Config['jump_delay']='1800'; +$System_Config['jump_delay']='1200'; //1000ms=1s,不建议太长 #是否启用邀请码注册 $System_Config['enable_invite_code']='false'; @@ -191,10 +191,10 @@ $System_Config['reg_protocol']='auth_sha1_v4'; $System_Config['reg_protocol_param']=''; #注册时默认混淆方式 -$System_Config['reg_obfs']='tls1.2_ticket_auth'; +$System_Config['reg_obfs']='http_simple';//tls更容易识别,修改为http_simple #注册时默认混淆参数 -$System_Config['reg_obfs_param']=''; +$System_Config['reg_obfs_param']='amazon.cn';//默认使用amazon.cn作为混淆参数 #注册时默认禁止访问IP列表,半角英文逗号分割 $System_Config['reg_forbidden_ip']='127.0.0.0/8,::1/128'; @@ -353,7 +353,7 @@ $System_Config['zfbjk_key']=''; $System_Config['zfbjk_qrcodeurl']='https://www.zhaojin97.cn/wp-content/uploads/2016/01/630c50ab52bc139b2a33af8cc64e47ad2016010111570425541.jpg'; #不安全中转模式,这个开启之后使用除了 auth_aes128_md5 或者 auth_aes128_sha1 以外的协议地用户也可以设置和使用中转,但是,强烈推荐不开启。 -$System_Config['relay_insecure_mode']='true'; +$System_Config['relay_insecure_mode']='false';//默认关闭不安全中转 #在套了CDN之后获取用户真实ip,如果您不知道这是什么,请不要乱动 diff --git a/public/SSTap.7z b/public/SSTap.7z new file mode 100644 index 0000000000..60c09c6fb7 Binary files /dev/null and b/public/SSTap.7z differ diff --git a/public/theme/material/css/project.css b/public/theme/material/css/project.css index 93d44059ce..65552645e2 100644 --- a/public/theme/material/css/project.css +++ b/public/theme/material/css/project.css @@ -4,6 +4,7 @@ body { } .ui-content-header { + background-image: url(./images/bg/brand.jpg); background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; @@ -12,7 +13,8 @@ body { padding-bottom: 58px; } .page-brand .ui-content-header { - background-image: url(./images/bg/brand.jpg); + /**background-image: url(./images/bg/brand.jpg);**/ + /**移除无效css**/ } .ui-footer { diff --git a/resources/views/material/user/index.tpl b/resources/views/material/user/index.tpl index 0979a11dbe..8967610aa7 100644 --- a/resources/views/material/user/index.tpl +++ b/resources/views/material/user/index.tpl @@ -120,7 +120,7 @@

filter_2 打开App,点击右下角的add号图标

filter_3 添加/升级 SSR订阅

filter_4 添加订阅地址,输入以下订阅地址后确定

-

filter_5 订阅出现系统自带的与仟佰星云,请把系统自带的无效订阅左滑删除(自带影响订阅更新速度)

+

filter_5 订阅出现系统自带的与{$config["appName"]},请把系统自带的无效订阅左滑删除(自带影响订阅更新速度)

filter_6 点击确定并升级

filter_7 选择任意节点

filter_8 路由选择:略过区域网路以及中国大陆

@@ -151,7 +151,7 @@ {$ssr_url_all_mu = URL::getAllUrl($pre_user, 1, 0)} {if URL::SSRCanConnect($user)}
-

优点导入普通端口,如果普通端口无法使用再导入单端口

+

优先导入普通端口,如果普通端口无法使用再导入单端口

端口
{$user->port}

@@ -276,7 +276,7 @@

帐号等级
{if $user->class!=0} -
stars VIP{$user->class}
+
stars VIP{$user->class}
{else}
stars 免费
{/if} diff --git a/resources/views/material/user/main.tpl b/resources/views/material/user/main.tpl index 36182e5b66..4e41ba7eb2 100644 --- a/resources/views/material/user/main.tpl +++ b/resources/views/material/user/main.tpl @@ -478,6 +478,6 @@ - + diff --git a/resources/views/material/user/node.tpl b/resources/views/material/user/node.tpl index 77dff99630..b7c5eeb285 100644 --- a/resources/views/material/user/node.tpl +++ b/resources/views/material/user/node.tpl @@ -480,7 +480,7 @@ function urlChange(id,is_mu,rule_id) { { var doc = document.getElementById('infoifram').contentWindow.document; doc.open(); - doc.write(''); + doc.write(''); doc.close(); } else