This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.0.1 1. 修复 config.php 报错问题 2. 拆分 config.php ,用户传入参数改为 process.php 处理
- Loading branch information
1 parent
f76f693
commit cf7d01a
Showing
5 changed files
with
56 additions
and
41 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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
// 防止外部破解 | ||
if(!defined('SYSTEM')) {exit(BLOCK_RETURN);} | ||
|
||
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 { | ||
define('AREA', @$_GET['area']); | ||
} | ||
} 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); | ||
} | ||
|
||
?> |