Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Commit e3f3310

Browse files
authored
2.1.8 版本更新
更新!
2 parents 2c4508d + c085483 commit e3f3310

File tree

5 files changed

+44
-38
lines changed

5 files changed

+44
-38
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,16 @@ PanDownload 网页复刻版,PHP 语言版<br/>
4141
- 使用了 `SESSION`,注意 **PHP 访问系统文件(夹)权限** 问题
4242
- 仅支持 **PHP 7 和 7+**
4343
- 一般情况下网页版不会出现问题,第一次使用就失败一般是**设置的问题**
44-
- 如果使用一段时间后失效,一般是**账号问题****服务器IP被baidu封了**;如果是方法失效,这个项目将关闭。
45-
- 使用 `1.3.6` 版本及以前的站长,请及时更新到最新版本,老版本存在安全问题(在获取链接页面没有验证密码),可能导致SVIP账号被盗用。漏洞利用演示出于安全考虑不再对外展示。
44+
- 如果使用一段时间后失效,一般是**账号失效问题**(点击退出登录按钮会导致当此登录获取到的 Cookies 失效,更改密码会使当前帐号获取过的所有 Cookies 失效)或 **服务器 IP 被封禁**(在解析了大量文件后可能会出现此问题,阈值大约为几十TB),如果是获取下载链接的方法失效,此项目将会被关闭。
4645
- 处理下载限速方法
47-
- 尝试重新分享文件,部分文件可能出现奇怪的问题
48-
- 耐心等待baidu解封账号
49-
- 更换后台SVIP账号
50-
- 更换服务器IP
46+
- 尝试重新分享文件,部分文件可能出现奇怪的问题,部分文件名也有可能导致问题
47+
- 耐心等待账号解封
48+
- 更换后台 SVIP 账号
49+
- 更换服务器 IP
5150
- 使用了较新的 JavaScript 和 CSS 特性,旧版浏览器对此的支持性很差,使用新版的现代浏览器才能正常使用!建议使用的浏览器:
52-
- `Microsoft Edge 88+` [点此访问 Edge 官网](https://www.microsoft.com/zh-cn/edge)
53-
- `Google Chrome 88+` [点此访问 Chrome 官网](https://www.google.cn/chrome/)
54-
- `Firefox 85+` [点此访问 Firefox 官网](https://www.firefox.com.cn/)
51+
- `Microsoft Edge 90+` [点此访问 Edge 官网](https://www.microsoft.com/zh-cn/edge)
52+
- `Google Chrome 90+` [点此访问 Chrome 官网](https://www.google.cn/chrome/)
53+
- `Firefox 89+` [点此访问 Firefox 官网](https://www.firefox.com.cn/)
5554

5655
# 🔧Install & Setting
5756
[**点此查看安装、配置、使用视频教程**](https://www.bilibili.com/video/BV1N5411A77n)
@@ -65,19 +64,14 @@ PanDownload 网页复刻版,PHP 语言版<br/>
6564
**SVIP账号**中可设置**SVIP账号****BDUSS****STOKEN**,添加账号后记得进入**会员账号切换模式**将模式改成**顺序模式****轮换模式**。<br />
6665

6766
## 📦New Changes
68-
- 当前版本:`2.1.7`
69-
- 更新日期:2021-05-18
67+
- 当前版本:`2.1.8`
68+
- 更新日期:2021-06-27
7069
- 修改内容:
7170
- 💥新增功能
72-
- 新增 aria2 安卓端
73-
- 新增解析链接失效时间设置
74-
- 关于页面自动生成二维码
71+
- 增加对 IP 段的黑白名单设置
7572
- ⚠错误修复
76-
- 修复语言设置错误提示中转跳用户设置页面链接错误
77-
- 修复手机端推送 aria2 因文件夹不存在出错
78-
- ♻代码优化
79-
- 在新标签页打开 Motrix 首页
80-
- ws(s)链接检测支持 IPv6
73+
- 修复带单引号的文件名写入数据库时出错的问题 #131
74+
- 修复用户界面显示的解析链接有效时间并不会随设置变化的问题 #132
8175

8276
[查看更多](Update.md)
8377

@@ -93,12 +87,18 @@ PanDownload 网页复刻版,PHP 语言版<br/>
9387
- Telegram:
9488
- [@yuantuo666](https://t.me/yuantuo666)
9589
- [Telegram频道](https://t.me/baiduwp_php)
90+
- 协作者:LC @lc6464
91+
- [个人网站](https://lcwebsite.cn/ "LC的网站")
92+
- [联系](https://lcwebsite.cn/web/contact.aspx "联系 LC")
93+
94+
**作者及合作者都是学生,因未来一段时间课余时间很少,对此项目维护将会减少。** #130<br />
95+
如果遇到问题请先 **仔细阅读此文档** 、查看[视频教程](https://www.bilibili.com/video/BV1N5411A77n)
96+
以及 [以前的 Issues](https://github.com/yuantuo666/baiduwp-php/issues)<br />
97+
98+
如果是**设置账号的 Cookies(BDUSS 和 STOKEN)配置环境**相关的问题,请尽可能自行解决![Google](https://www.google.com/ "谷歌") [Bing](https://cn.bing.com/ "必应")<br />
9699

97-
因为作者及合作者都是学生,所以没有办法及时解决问题。<br />
98-
如果遇到问题请先仔细阅读此文档和[以前的issue](https://github.com/yuantuo666/baiduwp-php/issues?q=is%3Aissue),确实无法解决请提起issue,我们将很乐意为你解决🙂。<br />
99-
所有的邮件我都会查看并回复的~
100100

101101
## 🔔Thanks
102-
- [baiduwp JavaScript 版](https://github.com/TkzcM/baiduwp "GitHub 项目")
102+
- [baiduwp JavaScript 版](https://github.com/TkzcM/baiduwp "baiduwp 项目")
103103
- [PanDownload 网站](https://pandownload.com/ "PanDownload 网站")
104104
- [Bootstrap 深色模式](https://github.com/vinorodrigues/bootstrap-dark "bootstrap-dark 项目")

Update.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# Update
2+
### `2.1.8` 版本:
3+
- 更新日期:2021-06-27
4+
- 修改内容:
5+
- 💥新增功能
6+
- 增加对 IP 段的黑白名单设置
7+
- ⚠错误修复
8+
- 修复带单引号的文件名写入数据库时出错的问题 #131
9+
- 修复用户界面显示的解析链接有效时间并不会随设置变化的问题 #132
10+
211
### `2.1.7` 版本:
312
- 更新日期:2021-05-18
413
- 修改内容:

index.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
*
1010
* 此项目 GitHub 地址:https://github.com/yuantuo666/baiduwp-php
1111
*
12-
* @version 2.1.7
12+
* @version 2.1.8
1313
*
1414
* @author Yuan_Tuo <yuantuo666@gmail.com>
1515
* @link https://imwcr.cn/
1616
* @link https://space.bilibili.com/88197958
1717
*
1818
*/
19-
$programVersion_Index = "2.1.7";
19+
$programVersion_Index = "2.1.8";
2020
session_start();
2121
define('init', true);
2222
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
@@ -324,7 +324,7 @@ function getip()
324324
connectdb();
325325

326326
// 查询数据库中是否存在已经保存的数据
327-
$sql = "SELECT * FROM `" . $dbtable . "_ip` WHERE `ip`='$ip';";
327+
$sql = "SELECT * FROM `" . $dbtable . "_ip` WHERE `ip` LIKE '$ip';";
328328
$mysql_query = mysqli_query($conn, $sql);
329329
if ($result = mysqli_fetch_assoc($mysql_query)) {
330330
// 存在 判断类型
@@ -473,8 +473,8 @@ function getip()
473473
// 记录下使用者ip,下次进入时提示
474474
if (USING_DB and !$usingcache) {
475475
$ptime = date("Y-m-d H:i:s");
476-
$Sqlfilename = htmlspecialchars($filename); // 防止出现一些刁钻的文件名无法处理
477-
$Sqlpath = htmlspecialchars($path);
476+
$Sqlfilename = htmlspecialchars($filename, ENT_QUOTES); // 防止出现一些刁钻的文件名无法处理
477+
$Sqlpath = htmlspecialchars($path, ENT_QUOTES);
478478
$sql = "INSERT INTO `$dbtable`(`userip`, `filename`, `size`, `md5`, `path`, `server_ctime`, `realLink` , `ptime`,`paccount`) VALUES ('$ip','$Sqlfilename','$size','$md5','$Sqlpath','$server_ctime','$realLink','$ptime','$id')";
479479
$mysql_query = mysqli_query($conn, $sql);
480480
if ($mysql_query == false) {
@@ -496,7 +496,7 @@ function getip()
496496
if (USING_DB) {
497497
if ($usingcache) echo "<p class=\"card-text\">下载链接从数据库中提取,不消耗免费次数。</p>";
498498
elseif ($smallfile) echo "<p class=\"card-text\"><span style=\"color:red;\">此文件很小,不消耗解析次数。</span></p>";
499-
else echo "<p class=\"card-text\">服务器将保存下载地址8小时,时限内再次解析不消耗免费次数。</p>";
499+
else echo "<p class=\"card-text\">服务器将保存下载地址" . DownloadLinkAvailableTime . "小时,时限内再次解析不消耗免费次数。</p>";
500500
}
501501
echo FileInfo($filename, $size, $md5, $server_ctime);
502502

@@ -520,13 +520,9 @@ function getip()
520520
if (strstr('https://' . $realLink, "//qdall")) echo '<h5 class="text-danger">当前SVIP账号已被限速,请联系站长更换账号。</h5>';
521521
echo '
522522
<p class="card-text">
523-
<a id="http" href="http://' . $realLink . '" style="display: none;">' . Language["DownloadLink"] . '(不安全)</a>';
524-
if ($smallfile) {
525-
echo '<a id="https" href="https://' . $realLink . '" target="_blank" rel="nofollow noopener noreferrer">' . Language["DownloadLink"] . '(无需设置UA,8小时有效)</a>';
526-
} else {
527-
echo '<a id="https" href="https://' . $realLink . '" target="_blank" rel="nofollow noopener noreferrer">' . Language["DownloadLink"] . '(需设置UA,8小时有效)</a>';
528-
}
529-
echo '</p>';
523+
<a id="http" href="http://' . $realLink . '" style="display: none;">' . Language["DownloadLink"] . '(不安全)</a>' .
524+
'<a id="https" href="https://' . $realLink . '" target="_blank" rel="nofollow noopener noreferrer">' . Language["DownloadLink"] .
525+
'' . ($smallfile ? '无需' : '需要') . '设置 UA,' . DownloadLinkAvailableTime . '小时内有效)</a></p>';
530526
?>
531527
<p class="card-text">
532528
<a href="javascript:void(0)" data-toggle="modal" data-target="#SendToAria2"><?php echo Language["SendToAria2"]; ?>(Motrix)</a>

install/config_raw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* PanDownload 网页复刻版,PHP 语言版配置文件
44
* !!!请勿修改本文件,如果手动修改后再在后台设置,可能导致config.php文件被清空!!!
55
*
6-
* @version 2.1.7
6+
* @version 2.1.8
77
* @author Yuan_Tuo <yuantuo666@gmail.com>
88
* @link https://imwcr.cn/
99
* @link https://space.bilibili.com/88197958
1010
*/
11-
const programVersion = '2.1.7';
11+
const programVersion = '2.1.8';
1212
if (!defined('init')) {
1313
http_response_code(403); header('Content-Type: text/plain; charset=utf-8'); header('Refresh: 3;url=./');
1414
die("HTTP 403 禁止访问!\r\n此文件是 PanDownload 网页复刻版 PHP 语言版项目版本 " . programVersion . " 的配置文件!\r\n禁止直接访问!");

settings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ function IPLoadmore() {
384384
<div class="form-group">
385385
<label>IP地址</label>
386386
<input type="text" class="form-control form-control-sm" name="ip">
387+
<small>现在已经支持对 IP 地址进行模糊匹配,您可以使用“%”代替任意个字符,“_”代替单个字符,更多使用方法请自行搜索 <a href="https://cn.bing.com/search?q=SQL+%E9%80%9A%E9%85%8D%E7%AC%A6" target="_blank" title="SQL 通配符 - 国内版 Bing">SQL 通配符</a>。</small>
387388
</div>
388389
<div class="form-group">
389390
<label>备注</label>

0 commit comments

Comments
 (0)