This repository has been archived by the owner on May 3, 2022. It is now read-only.
forked from yuantuo666/baiduwp-php
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from yuantuo666/master
同步更新
- Loading branch information
Showing
9 changed files
with
182 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,14 @@ | |
* | ||
* 此项目 GitHub 地址:https://github.com/yuantuo666/baiduwp-php | ||
* | ||
* @version 2.1.6 | ||
* @version 2.1.7 | ||
* | ||
* @author Yuan_Tuo <[email protected]> | ||
* @link https://imwcr.cn/ | ||
* @link https://space.bilibili.com/88197958 | ||
* | ||
*/ | ||
$programVersion_Index = "2.1.6"; | ||
$programVersion_Index = "2.1.7"; | ||
session_start(); | ||
define('init', true); | ||
if (version_compare(PHP_VERSION, '7.0.0', '<')) { | ||
|
@@ -91,6 +91,7 @@ | |
<script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script> | ||
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.2/js/bootstrap.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@keeex/qrcodejs-kx"></script> | ||
<script src="static/color.js"></script> | ||
<script src="static/functions.js"></script> | ||
<script defer src="static/ready.js"></script> | ||
|
@@ -377,8 +378,9 @@ function getip() | |
if (USING_DB) { | ||
connectdb(); | ||
|
||
$DownloadLinkAvailableTime = (is_int(DownloadLinkAvailableTime)) ? DownloadLinkAvailableTime : 8; | ||
// 查询数据库中是否存在已经保存的数据 | ||
$sql = "SELECT * FROM `$dbtable` WHERE `md5`='$md5' AND `ptime` > DATE_SUB(NOW(),INTERVAL 8 HOUR);"; | ||
$sql = "SELECT * FROM `$dbtable` WHERE `md5`='$md5' AND `ptime` > DATE_SUB(NOW(),INTERVAL $DownloadLinkAvailableTime HOUR);"; | ||
$mysql_query = mysqli_query($conn, $sql); | ||
} | ||
if (USING_DB and $result = mysqli_fetch_assoc($mysql_query)) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
* PanDownload 网页复刻版,PHP 语言版配置文件 | ||
* !!!请勿修改本文件,如果手动修改后再在后台设置,可能导致config.php文件被清空!!! | ||
* | ||
* @version 2.1.6 | ||
* @version 2.1.7 | ||
* @author Yuan_Tuo <[email protected]> | ||
* @link https://imwcr.cn/ | ||
* @link https://space.bilibili.com/88197958 | ||
*/ | ||
const programVersion = '2.1.6'; | ||
const programVersion = '2.1.7'; | ||
if (!defined('init')) { | ||
http_response_code(403); header('Content-Type: text/plain; charset=utf-8'); header('Refresh: 3;url=./'); | ||
die("HTTP 403 禁止访问!\r\n此文件是 PanDownload 网页复刻版 PHP 语言版项目版本 " . programVersion . " 的配置文件!\r\n禁止直接访问!"); | ||
|
@@ -39,6 +39,7 @@ const DbConfig = array("servername" => "<servername>", "username" => "<username> | |
|
||
const ADMIN_PASSWORD = '<ADMIN_PASSWORD>'; | ||
const DownloadTimes = <DownloadTimes>; | ||
const DownloadLinkAvailableTime = <DownloadLinkAvailableTime>; | ||
const IsConfirmDownload = <IsConfirmDownload>; | ||
const SVIPSwitchMod = <SVIPSwitchMod>; | ||
|
||
|
Oops, something went wrong.