Code:
- <?php
- $Live = $_GET['HLS'];
- $ch = curl_init(''.$Live.'');
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_ENCODING, false);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- "Referer: $Live",
- 'User-Agent: NetSurf/1.0 (Linux; i686)',
- 'Connection: Keep-Alive',
- 'Accept-Encoding: gzip',
- ));
- $site = curl_exec($ch);
- curl_close ($ch);
- preg_match('#video/(.*?)"#',$site,$icerik);
- $Url = $icerik[1];
- $ch1 = curl_init('https://hdplayersystem.live/player/index.php?data='.$Url.'&do=getVideo');
- curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch1, CURLOPT_ENCODING, false);
- curl_setopt($ch1, CURLOPT_POST, true);
- curl_setopt($ch1, CURLOPT_POSTFIELDS, "hash=$Url&r=https://easyizle.com/");
- curl_setopt($ch1, CURLOPT_HTTPHEADER, array(
- 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
- 'X-Requested-With: XMLHttpRequest',
- 'User-Agent: NetSurf/1.0 (Linux; i686)',
- 'Connection: Keep-Alive',
- 'Accept-Encoding: gzip',
- ));
- $site1 = curl_exec($ch1);
- curl_close ($ch1);
- $site1 = str_replace('\\','',$site1);
- preg_match('#securedLink":"(.*?)"#',$site1,$icerik);
- $Link = $icerik[1];
- header ("Location: $Link");
- ?>