|
|
|
@ -9,6 +9,10 @@ define('BILIROAMING', 1); //是否要用哔哩漫游才能使用。0 否, 1 是
|
|
|
|
|
define('LOCK_AREA', 0); //服务器锁区,须设置$SERVER_AREA。0 否, 1 是
|
|
|
|
|
$WHITELIST = array('1', '2', '3'); // 本地白名单,填写 uid,可自行添加、删除,注意使用英文,和'
|
|
|
|
|
|
|
|
|
|
// 封锁指定epid视频
|
|
|
|
|
define('BAN_EP', 0); //是否开启ban特定视频
|
|
|
|
|
$epid_list = array("369747","371362","371461","371462","371463","371596"); //巨人最终季
|
|
|
|
|
|
|
|
|
|
// 缓存
|
|
|
|
|
define('SAVE_CACHE', 0); //开启缓存,须配置MySQL。0 否, 1 是
|
|
|
|
|
define('CACHE_TIME', 7200); //缓存时长(秒)
|
|
|
|
@ -49,6 +53,8 @@ define('IP_RESOLVE', 0); // 开启功能。0 否, 1 是
|
|
|
|
|
$ips=array("172.0.0.1","192.168.0.1","1.2.3.4");
|
|
|
|
|
$hosts=array("workers.dev","workers.dev");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 其他
|
|
|
|
|
define('WELCOME', 'Success!'); //首页欢迎语
|
|
|
|
|
define('BLOCK_RETURN', '{"code":-10403,"message":"你已被封锁"}'); //封锁返回内容
|
|
|
|
@ -61,4 +67,10 @@ define('AREA', @$_GET['area']);
|
|
|
|
|
define('CID', @$_GET['cid']);
|
|
|
|
|
define('EP_ID', @$_GET['ep_id']);
|
|
|
|
|
define('TS', @$_GET['ts']);
|
|
|
|
|
if (in_array(EP_ID, $epid_list) && BAN_EP == 1) {
|
|
|
|
|
$ep_ban = 1;
|
|
|
|
|
}else {
|
|
|
|
|
$ep_ban = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|