Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小bug修复 #6

Closed
wants to merge 11 commits into from
72 changes: 5 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
@@ -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文件夹。
3 changes: 2 additions & 1 deletion app/Command/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ public static function DailyJob()
Job::backup();
}

Job::updatedownload();
//Job::updatedownload();
//修复未知updatedownload函数问题
}
// 注释該代碼:會導致重置流量任務失效
// public static function updatedownload()
Expand Down
12 changes: 5 additions & 7 deletions app/Utils/TelegramProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -62,7 +62,6 @@ public static function telegram_process($bot, $message, $command)
case 'help':
$help_list = "命令列表:
/ping 获取群组ID
/chat 唠嗑
/traffic 查询流量
/checkin 签到续命
/help 获取帮助信息
Expand Down Expand Up @@ -189,7 +188,6 @@ public static function telegram_process($bot, $message, $command)
case 'help':
$help_list_group = "命令列表:
/ping 获取群组ID
/chat 唠嗑
/traffic 查询流量
/checkin 签到续命
/help 获取帮助信息
Expand Down
16 changes: 8 additions & 8 deletions config/.config.php.example
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = '<a href="https://www.zhaoj.in">Glzjin</a> mod-2016042210000';

Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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,如果您不知道这是什么,请不要乱动

Expand Down
Binary file added public/SSTap.7z
Binary file not shown.
4 changes: 3 additions & 1 deletion public/theme/material/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions resources/views/material/user/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<p><span class="icon icon-lg text-white">filter_2</span> 打开App,点击右下角的<span class="icon icon-lg text-white">add</span>号图标</p>
<p><span class="icon icon-lg text-white">filter_3</span> 添加/升级 SSR订阅</p>
<p><span class="icon icon-lg text-white">filter_4</span> 添加订阅地址,输入以下订阅地址后确定</p>
<p><span class="icon icon-lg text-white">filter_5</span> 订阅出现系统自带的与仟佰星云,请把系统自带的无效订阅左滑删除(自带影响订阅更新速度)</p>
<p><span class="icon icon-lg text-white">filter_5</span> 订阅出现系统自带的与{$config["appName"]},请把系统自带的无效订阅左滑删除(自带影响订阅更新速度)</p>
<p><span class="icon icon-lg text-white">filter_6</span> 点击确定并升级</p>
<p><span class="icon icon-lg text-white">filter_7</span> 选择任意节点</p>
<p><span class="icon icon-lg text-white">filter_8</span> 路由选择:略过区域网路以及中国大陆</p>
Expand Down Expand Up @@ -151,7 +151,7 @@
{$ssr_url_all_mu = URL::getAllUrl($pre_user, 1, 0)}
{if URL::SSRCanConnect($user)}
<dl class="dl-horizontal">
<p><dt><code>优点导入普通端口,如果普通端口无法使用再导入单端口</code></dt></p>
<p><dt><code>优先导入普通端口,如果普通端口无法使用再导入单端口</code></dt></p>
<p><dt>端口</dt>
<dd>{$user->port}</dd></p>

Expand Down Expand Up @@ -276,7 +276,7 @@
<dl class="dl-horizontal">
<p><dt>帐号等级</dt>
{if $user->class!=0}
<dd><i class="icon icon-md t4-text">stars</i>&nbsp;<code>VIP{$user->class}</dd>
<dd><i class="icon icon-md t4-text">stars</i>&nbsp;<code>VIP{$user->class}</code></dd>
{else}
<dd><i class="icon icon-md t4-text">stars</i>&nbsp;免费</dd>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/material/user/main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,6 @@
</div>
</nav>
<!--这里替换crisp.chat的代码,如您不需要请把script标签删除-->
<script type="text/javascript"> window.$crisp=[];window.CRISP_WEBSITE_ID="您的ID";(function(){ d=document;s=d.createElement("script"); s.src="https://client.crisp.chat/l.js"; s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})(); </script>
<!--script type="text/javascript"> window.$crisp=[];window.CRISP_WEBSITE_ID="您的ID";(function(){ d=document;s=d.createElement("script"); s.src="https://client.crisp.chat/l.js"; s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})(); </script-->
<!--这里放crisp.chat的代码,如您不需要请把script标签删除-->

2 changes: 1 addition & 1 deletion resources/views/material/user/node.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function urlChange(id,is_mu,rule_id) {
{
var doc = document.getElementById('infoifram').contentWindow.document;
doc.open();
doc.write('<img src="https://www.zhaoj.in/wp-content/uploads/2016/07/1469595156fca44223cf8da9719e1d084439782b27.gif" style="width: 100%;height: 100%; border: none;"/>');
doc.write('<img src="../images/node.gif" style="width: 100%;height: 100%; border: none;"/>');
doc.close();
}
else
Expand Down