fix: 支付回调签名验证改用网关原始参数;结果页返回卡密信息;SMTP主题UTF-8编码;清理旧assets残留
This commit is contained in:
1 parent
3ff9c41d18
commit
423ac0d3b5
474 files changed
+288
-3308
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
// IPTV 流代理 —— App 经此中转拉 FLV,绕开 Referer/CF/DNS 难题
|
||||
set_time_limit(0);
|
||||
@ini_set('zlib.output_compression', '0');
|
||||
@ini_set('output_buffering', 'off');
|
||||
while (ob_get_level() > 0) ob_end_flush();
|
||||
|
||||
$playUrl = $_GET['url'] ?? '';
|
||||
if (!$playUrl || !preg_match('#^https://p\.iptv200\.com/play\.php#', $playUrl)) {
|
||||
http_response_code(400); echo 'bad url'; exit;
|
||||
}
|
||||
|
||||
$ch = curl_init($playUrl);
|
||||
header('Content-Type: video/x-flv');
|
||||
header('Cache-Control: no-cache');
|
||||
curl_setopt_array($ch, [
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_MAXREDIRS => 5,
|
||||
CURLOPT_TIMEOUT => 0,
|
||||
CURLOPT_CONNECTTIMEOUT => 10,
|
||||
CURLOPT_USERAGENT => 'Mozilla/5.0 (Linux; Android 12) Chrome/124 Mobile Safari/537.36',
|
||||
CURLOPT_REFERER => 'https://m.iptv807.com/',
|
||||
CURLOPT_SSL_VERIFYPEER => false,
|
||||
CURLOPT_HEADERFUNCTION => function($ch, $hdr) {
|
||||
if (preg_match('/^(Content-Type|Content-Length)/i', $hdr)) header(rtrim($hdr));
|
||||
return strlen($hdr);
|
||||
},
|
||||
CURLOPT_WRITEFUNCTION => function($ch, $data) {
|
||||
echo $data;
|
||||
if (function_exists('flush')) flush();
|
||||
return strlen($data);
|
||||
},
|
||||
]);
|
||||
curl_exec($ch);
|
||||
curl_close($ch);
|
||||
Reference in new issue
Block a user