diff --git a/README.md b/README.md index c99b263..998176a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ ## 下载: -* [下载(GitHub) v3.0.0](https://github.com/david082321/BiliRoaming-PHP-Server/raw/main/Server_v3.0.0.zip) +* [下载(GitHub) v3.0.1](https://github.com/david082321/BiliRoaming-PHP-Server/releases/download/v3.0.1/Server_v3.0.1.zip) + +* [下载历史版本](https://github.com/david082321/BiliRoaming-PHP-Server/releases) * !!!重要!!!由于网页脚本的更新,为作缓存区分,v3.0.0 更新了数据库字段。从 1.x 或 2.x 升级的用户,请务必更新数据库。 @@ -123,12 +125,14 @@ ├─cache.sql (导入MySQL用的)[仅缓存使用] -├─config.php (用户设置) +├─config.php (设置本程序各种参数) ├─index.php (接受上面index.php) <──主要入口在这里 ├─log.php (缓存用户)[仅缓存使用] +├─process.php (处理用户传入参数) + ├─replace.php (替换视频) ├─sign.php (重签名)[未公开源码] diff --git a/Server_v3.0.1.zip b/Server_v3.0.1.zip new file mode 100644 index 0000000..701c37d Binary files /dev/null and b/Server_v3.0.1.zip differ diff --git a/config.php b/config.php index 8b77533..42d5aa1 100644 --- a/config.php +++ b/config.php @@ -1,4 +1,8 @@ Power by BiliRoaming-PHP-Server. Ver".VERSION); //首页欢迎语 define('BLOCK_RETURN', '{"code":-10403,"message":"抱歉您已被封锁"}'); //封锁返回内容 -// 参数,不懂就别改 +// 这个参数,不懂就别改 define('APPKEY', '1d8b6e7d45233436'); define('APPSEC', '560c52ccd288fed045859ed18bffd973'); -define('ACCESS_KEY', @$_GET['access_key']); -define('CID', @$_GET['cid']); -define('EP_ID', @$_GET['ep_id']); -define('SS_ID', @$_GET['season_id']); -define('BILIROAMING_VERSION', @$_SERVER['HTTP_X_FROM_BILIROAMING']); -if (BILIROAMING_VERSION == '') { - if (BILIROAMING == 1 && WEB_ON == 0) { //仅限漫游用户,且未开放web脚本 - exit(BLOCK_RETURN); - }else if (@$_GET['area'] == '' || @$_GET['area'] == 'false') { //web脚本 - define('AREA', 'noarea'); - } -}else if (@$_GET['area'] == '') { //适配老漫游版本 - define('AREA', 'oldversion'); -}else{ - define('AREA', @$_GET['area']); -} -if (@$_GET['ts'] == '') { - define('TS', time()); -}else{ - define('TS', @$_GET['ts']); -} -$baned = 0; -if (in_array(EP_ID, $epid_list) && BAN_EP == 1) { - $baned = 1; -} -if (in_array(CID, $cid_list) && BAN_CID == 1) { - $baned = 1; -} -if (in_array(AREA, $BAN_SERVER_AREA)) { - $baned = 1; - exit(BLOCK_RETURN); -} -// 防止外部破解 -if(!defined('SYSTEM')) { - exit(BLOCK_RETURN); -} + ?> diff --git a/index.php b/index.php index 96b346c..37d2e82 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,11 @@ \ No newline at end of file