From 22917da83162fb00b9178f16fb612a6868e743bb Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Sun, 16 May 2021 18:06:50 +0800 Subject: [PATCH 1/6] Support Socks5 --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 513dcbd..6a2fde2 100644 --- a/index.php +++ b/index.php @@ -128,6 +128,7 @@ function get_webpage($url,$host="",$ip="") { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); if (SOCKS5_PROXY == 1) { // 指定socks5 + curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); curl_setopt($ch, CURLOPT_PROXY, SOCKS5_PROXY_IP); } if (IP_RESOLVE == 1) { // 指定ip回源 From 305084a4115c829866fe5053c6c8a4e71c7a5d4a Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Sun, 16 May 2021 18:08:01 +0800 Subject: [PATCH 2/6] Support Socks5 --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 8ad6ed0..37bdb4c 100644 --- a/config.php +++ b/config.php @@ -67,7 +67,7 @@ // 指定socks5 define('SOCKS5_PROXY', 0); // 开启功能。0 否, 1 是 -define('SOCKS5_PROXY_IP', "http://127.0.0.1:1234"); // 自行修改地址 +define('SOCKS5_PROXY_IP', "127.0.0.1:1234"); // 自行修改地址 // 指定ip回源 define('IP_RESOLVE', 0); // 开启功能。0 否, 1 是 From bd51389b29442c49e2f52946f36d42d709306924 Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Mon, 17 May 2021 18:21:52 +0800 Subject: [PATCH 3/6] Update replace.php --- replace.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/replace.php b/replace.php index 05b0321..0d22667 100644 --- a/replace.php +++ b/replace.php @@ -14,8 +14,8 @@ function replace() { $type = "web"; } - if (REPLACE_TYPE == "hlw") { - $url = 'https://black.qimo.ink/hlw.php?type='.$type; + if (REPLACE_TYPE == "txbb") { + $url = 'https://bili.tuturu.top/txbb.php?type='.$type; }else if (REPLACE_TYPE == "tom") { $url = 'https://black.qimo.ink/TandJ.php?type='.$type; }else if (REPLACE_TYPE == "xyy") { @@ -91,4 +91,4 @@ function replace() { $output3 = str_replace("\/","/",$output3); exit($output3); } -?> \ No newline at end of file +?> From 5dd7bcdec12dc9e9de9cd6cea9925b47c1432113 Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Mon, 17 May 2021 18:22:34 +0800 Subject: [PATCH 4/6] Update config.php --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 8ad6ed0..599f59d 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ // 封锁 define('BLOCK_TYPE','blacklist'); // 封锁类型:blacklist 黑名单, whitelist 本地白名单, 不是填写前面两个就是不封锁 -define('REPLACE_TYPE', 'tom'); // 是否替换视频(仅黑/白名单时生效)。hlw 葫芦娃, tom 猫和老鼠, xyy 喜羊羊, all 随机 +define('REPLACE_TYPE', 'tom'); // 是否替换视频(仅黑/白名单时生效)。txbb 天线宝宝, tom 猫和老鼠, xyy 喜羊羊, all 随机 define('NEED_LOGIN', 0); //是否要登录用户才能用。0 否, 1 是 define('BILIROAMING', 1); //是否要用哔哩漫游才能使用。0 否, 1 是 define('WEB_ON', 0);//是否开启web接口 0 否, 1 是 目前Web接口不受哔哩漫游请求头影响,且不受服务器锁区影响(待更新) From 461a3c47a8f25a9087cca76b80063e1633166764 Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Mon, 17 May 2021 18:46:06 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9PHP=20PROXY=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=EF=BC=8C=E8=91=AB=E8=8A=A6=E5=A8=83=E6=94=B9=E6=88=90?= =?UTF-8?q?=E5=A4=A9=E7=BA=BF=E5=AE=9D=E5=AE=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改PHP PROXY相关语句以符合文档标准 顺便把下架的黑名单替换用的葫芦娃改成天线宝宝了。葫芦娃已下架 --- config.php | 6 ++++-- index.php | 6 +++--- replace.php | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config.php b/config.php index 75fec36..40bb375 100644 --- a/config.php +++ b/config.php @@ -66,8 +66,10 @@ // define('CUSTOM_HOST_TW', $tw_api[$tw_sum]); //随机调用TW 启用要注释上方默认api // 指定socks5 -define('SOCKS5_PROXY', 0); // 开启功能。0 否, 1 是 -define('SOCKS5_PROXY_IP', "127.0.0.1:1234"); // 自行修改地址 +define('PROXY_ON', 0); // 开启功能。0 否, 1 是 +//define('PROXYTYPE', "CURLPROXY_HTTP"); // 使用HTTP代理 +define('PROXY_TYPE', "CURLPROXY_SOCKS5"); // 使用SOCKS5代理 +define('PROXY_IP', "127.0.0.1:1234"); // 自行修改地址 // 指定ip回源 define('IP_RESOLVE', 0); // 开启功能。0 否, 1 是 diff --git a/index.php b/index.php index 6a2fde2..893267d 100644 --- a/index.php +++ b/index.php @@ -127,9 +127,9 @@ function get_webpage($url,$host="",$ip="") { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); - if (SOCKS5_PROXY == 1) { // 指定socks5 - curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); - curl_setopt($ch, CURLOPT_PROXY, SOCKS5_PROXY_IP); + if (PROXY_ON == 1) { // 指定代理 + curl_setopt($ch, CURLOPT_PROXYTYPE, PROXY_TYPE); + curl_setopt($ch, CURLOPT_PROXY, PROXY_IP); } if (IP_RESOLVE == 1) { // 指定ip回源 curl_setopt($ch, CURLOPT_RESOLVE,[$host.":443:".$ip]); diff --git a/replace.php b/replace.php index 0d22667..8f8f7e8 100644 --- a/replace.php +++ b/replace.php @@ -21,7 +21,7 @@ function replace() { }else if (REPLACE_TYPE == "xyy") { $url = 'https://bili.tuturu.top/xyyjson.php?type='.$type; }else{ - $urls = array('https://black.qimo.ink/hlw.php?type=','https://black.qimo.ink/TandJ.php?type=','https://bili.tuturu.top/xyyjson.php?type='); + $urls = array('https://bili.tuturu.top/txbb.php?type=','https://black.qimo.ink/TandJ.php?type=','https://bili.tuturu.top/xyyjson.php?type='); $url = $urls[array_rand($urls)].$type; } $output = get_webpage($url); From ff30431540f39fd88567ca94b93e20ddc480cc18 Mon Sep 17 00:00:00 2001 From: david082321 Date: Tue, 18 May 2021 17:57:31 +0800 Subject: [PATCH 6/6] Update index.php --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 893267d..039c30f 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@