Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- FLuckAPG 2.0 - 19/02/2018 1:58 PM
- Created by FĂștbol Libre TV
- www.futbollibre.online
- */
- if(isset($_GET['u'])):
- $json = $_GET['u']; // filesusc.com/vps/tnt.json?666
- header('Access-Control-Allow-Origin: *');
- header('Content-type: application/json');
- function FLuckAPG($url, $referer) {
- $headers[] = 'Accept: application/json, text/html,application/xhtml+xml';
- $headers[] = 'Connection: Keep-Alive';
- $headers[] = 'Content-type: application/json';
- $headers[] = 'Origin: http://www.apurogol.net';
- $headers[] = 'Access-Control-Allow-Origin: http://www.apurogol.net';
- $useragent = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 OPR/50.0.2762.67';
- $process = curl_init($url);
- curl_setopt($process, CURLOPT_HTTPHEADER, $headers);
- curl_setopt($process, CURLOPT_HEADER, 0);
- curl_setopt($process, CURLOPT_USERAGENT, $useragent);
- curl_setopt($process, CURLOPT_REFERER, $referer);
- curl_setopt($process, CURLOPT_TIMEOUT, 30);
- curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false); // curl_setopt($process, CURLOPT_SSL_VERIFYHOST, FALSE);
- curl_setopt($process, CURLOPT_VERBOSE, 1);
- $return = curl_exec($process);
- curl_close($process);
- return $return;
- }
- print_r(FLuckAPG($json, 'http://www.apurogol.net/2018/02/rosario-central-vs-olimpo-en-vivo-online-superliga-2017-2018-en-directo-fecha-16.html'));
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement