Skip to content

Commit

Permalink
Merge pull request #1 from NimaQu/master
Browse files Browse the repository at this point in the history
。。。
  • Loading branch information
mxihan committed Mar 29, 2018
2 parents d77eb63 + a6be04c commit 0569127
Show file tree
Hide file tree
Showing 2,114 changed files with 5,899 additions and 183,103 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#为了能更愉快地 debug,此文件已经作废,请各位 移步 config/config.php 进行设置
#为了能更愉快地 debug,此文件已经作废,请各位 移步 config/config.php 进行设置,但请不要删除此文件,会导致网站500
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*/.DS_Store
.DS_Store
/vendor
/config/.config.php
/.idea
28 changes: 28 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ss-panel-v3-mod_UIChanges</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.aptana.projects.webnature</nature>
</natures>
<filteredResources>
<filter>
<id>1522297588605</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
26 changes: 0 additions & 26 deletions 404.html

This file was deleted.

7 changes: 3 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2015 orvice
Copyright (c) 2018 NimaQu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,5 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

SOFTWARE.
79 changes: 68 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,79 @@
# 歡迎使用SS-panel-modV3再次修改版
# 欢迎使用SS-panel-modV3再次修改版


**ss-panel-v3-mod**是一款專為shadowsocks設計的web前端面板,再次感謝ss-panel-v3mod的工作人員,修改后的功能簡介:

- **f2f當面付** :支付寶二維碼接入
- **UI** :修改了圓角、并自定義了幾個標籤模板的顯示
- **節點** :增加了等級0不可見等級1節點,增加了國家圖標顯示
**ss-panel-v3-mod**是一款转为shadowsocks设计的web前端面板,再次感谢ss-panel-v3mod 的制作者,修改后的功能简介:

- **f2f当面付集成** :支付宝f2f接入
- **UI** :修改成 ~~援交~~ 圆角、并自定义了几个图标的显示
- **节点** :节点列表等級0可见等級1节点但无法看见节点详情,增加了国家图标显示
- **图片**: 添加 ~~死宅喜欢的~~ 萌化图片

telegram交流群:https://t.me/joinchat/Fjn0HkeqdoovkJgTRnvoNw

**此面板作者为**[galaxychuck](https://github.com/galaxychuck),因某些原因删除仓库,现代为上传

此面板对数据库无改动,可直接沿用原版魔改数据库,并对小白不友好,如果你什么都不懂,请左转91vps一键包

**作者Paypal打賞:galaxychuck1995@gmail.com**

本人不懂编程,不接受功能需求及面板搭建失败之类issus,欢迎dalao提交pr,~~付费代搭200一位~~

本面板在[宝塔面板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

易付通接入教程 :https://github.com/NimaQu/ss-panel-v3-mod_UIChanges/wiki/%E6%98%93%E4%BB%98%E9%80%9A%E6%94%AF%E4%BB%98%E9%85%8D%E7%BD%AE%E6%95%99%E7%A8%8B

黛米付接入教程:https://github.com/NimaQu/ss-panel-v3-mod_UIChanges/wiki/%E9%BB%9B%E7%B1%B3%E4%BB%98%E6%8E%A5%E5%85%A5%E6%95%99%E7%A8%8B

Wiki已经启用,欢迎为此面板制作维护wiki

### 示例图片 Images

Image:
-------------------
![](https://github.com/galaxychuck/images/blob/master/1.jpg)

模板在線查看:www.qianbx.com
> 登陆界面
-------------------

![](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)


使用tips:

1、替換您自己的.config.php文件
#### 鸣谢

2、修改默認的站點名稱,包括主題文件
很高兴您使用并喜欢该主题,开发不易 十分谢谢与希望您可以保留一下版权声明。

3、如果您有任何問題,概不接受任何質疑、Wiki製作、Issuse...等等
它不会影响美观并可以给开发者很大的支持和动力。~~听说删除staff的网站都会遭遇未知DDOS攻击~~
19 changes: 10 additions & 9 deletions app/Command/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,15 @@ public static function DailyJob()
Job::backup();
}

Job::updatedownload();
}

public static function updatedownload()
{
system('cd '.BASE_PATH."/public/ssr-download/ && git pull", $ret);
echo $ret;
//Job::updatedownload();
//修复未知updatedownload函数问题
}
// 注释該代碼:會導致重置流量任務失效
// public static function updatedownload()
// {
// system('cd '.BASE_PATH."/public/ssr-download/ && git pull", $ret);
// echo $ret;
// }

public static function CheckJob()
{
Expand Down Expand Up @@ -438,7 +439,7 @@ public static function CheckJob()

$adminUser = User::where("is_admin", "=", "1")->get();

$latest_content = file_get_contents("https://github.com/esdeathlove/ss-panel-v3-mod/raw/new_master/bootstrap.php");
$latest_content = file_get_contents("https://raw.githubusercontent.com/NimaQu/ss-panel-v3-mod_UIChanges/master/bootstrap.php");
$newmd5 = md5($latest_content);
$oldmd5 = md5(file_get_contents(BASE_PATH."/bootstrap.php"));

Expand All @@ -453,7 +454,7 @@ public static function CheckJob()
echo "Send mail to user: ".$user->id;
$subject = Config::get('appName')."-系统提示";
$to = $user->email;
$text = "管理员您好,系统发现有了新版本,您可以到 <a href=\"https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97\">https://github.com/esdeathlove/ss-panel-v3-mod/wiki/%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97</a> 按照步骤进行升级。" ;
$text = "管理员您好,系统发现有了新版本,您可以到 <a href=\"https://github.com/NimaQu/ss-panel-v3-mod_UIChanges/wiki/%E5%8D%87%E7%B4%9A%E7%89%88%E6%9C%AC\">https://github.com/NimaQu/ss-panel-v3-mod_UIChanges/wiki/%E5%8D%87%E7%B4%9A%E7%89%88%E6%9C%AC</a> 按照步骤进行升级。" ;
try {
Mail::send($to, $subject, 'news/warn.tpl', [
"user" => $user,"text" => $text
Expand Down
2 changes: 1 addition & 1 deletion app/Command/XCat.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function install()

public function initdownload()
{
system('git clone https://github.com/esdeathlove/panel-download.git '.BASE_PATH."/public/ssr-download/", $ret);
system('git clone https://github.com/xcxnig/ssr-download.git '.BASE_PATH."/public/ssr-download/", $ret);
echo $ret;
}

Expand Down
16 changes: 16 additions & 0 deletions app/Controllers/Admin/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ public function add($request, $response, $args)
$content["reset_exp"]=$request->getParam('reset_exp');
}

//if ($request->getParam('speedlimit')!=0) {
$content["speedlimit"]=$request->getParam('speedlimit');
//}

//if ($request->getParam('connector')!=0) {
$content["connector"]=$request->getParam('connector');
//}

$shop->content=json_encode($content);


Expand Down Expand Up @@ -138,6 +146,14 @@ public function update($request, $response, $args)
if ($request->getParam('reset_exp')!=0) {
$content["reset_exp"]=$request->getParam('reset_exp');
}

//if ($request->getParam('speedlimit')!=0) {
$content["speedlimit"]=$request->getParam('speedlimit');
//}

//if ($request->getParam('connector')!=0) {
$content["connector"]=$request->getParam('connector');
//}

$shop->content=json_encode($content);

Expand Down
4 changes: 2 additions & 2 deletions app/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ function ($query) use ($user) {
$mu_user = User::where('port', '=', $mu_node->server)->first();
$mu_user->obfs_param = $user->getMuMd5();

array_push($temparray, array("remarks"=>$node->name."- ".$mu_node->server." 端口单端口多用户",
array_push($temparray, array("remarks"=>$node->name."- ".$mu_node->server." 单端口",
"server"=>$node->server,
"server_port"=>$mu_user->port,
"method"=>$mu_user->method,
"group"=>Config::get('appName'),
"obfs"=>str_replace("_compatible", "", (($node->custom_rss==1&&!($mu_user->obfs=='plain'&&$mu_user->protocol=='origin'))?$mu_user->obfs:"plain")),
"obfsparam"=>(($node->custom_rss==1&&!($mu_user->obfs=='plain'&&$mu_user->protocol=='origin'))?$mu_user->obfs_param:""),
"remarks_base64"=>base64_encode($node->name."- ".$mu_node->server." 端口单端口多用户"),
"remarks_base64"=>base64_encode($node->name."- ".$mu_node->server." 单端口"),
"password"=>$mu_user->passwd,
"tcp_over_udp"=>false,
"udp_over_tcp"=>false,
Expand Down
Loading

0 comments on commit 0569127

Please sign in to comment.