avatar
SCCZC

Guest 251 19th Dec, 2024

<?php
$channel = $_GET["id"];
switch ($channel)
{
case 1:
chay(168,assp1);
break;
case 2:
chay(169,assp2);
break;
case 3:
chay(170,assp3);
break;
case 4:
chay(171,assp4);
break;
case 5:
chay(371,assp5);
break;
case 6:
chay(271,'astro-arena');
break;
};
function chay($a,$b){
 $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_PORT => "80",
  CURLOPT_URL => "http://udoofree.com/movie2/".$a."/single-live?watch=1",
  CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => "user_agent: vlc 1.0.1"));
 $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if
($err) {
  echo "cURL Error #:" . $err;
} else {
$dau = strpos($response,'token=');
$cuoi = strpos($response,'&remote');
$token = substr($response, $dau, $cuoi - $dau);
echo $token;
$cn='http://139.99.27.33:9998/'.$b.'/index.m3u8?'.$token;
header("Location:".$cn, true, 301);
}
}
?>
Markup
Description

No description

To share this paste please copy this url and send to your friends
RAW Paste Data