Advertisement
FutbolLibre

FLuckAPG2.0.php

Feb 17th, 2018
11,347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.66 KB | None | 0 0
  1. <?php
  2. /*
  3.     FLuckAPG 2.0 - 19/02/2018 1:58 PM
  4.     Created by FĂștbol Libre TV
  5.     www.futbollibre.online
  6. */
  7. if(isset($_GET['u'])):
  8. $json = $_GET['u']; // filesusc.com/vps/tnt.json?666
  9. header('Access-Control-Allow-Origin: *');
  10. header('Content-type: application/json');
  11.  
  12.     function FLuckAPG($url, $referer) {
  13.  
  14.         $headers[] = 'Accept:  application/json, text/html,application/xhtml+xml';
  15.         $headers[] = 'Connection: Keep-Alive';
  16.         $headers[] = 'Content-type: application/json';
  17.         $headers[] = 'Origin: http://www.apurogol.net';
  18.         $headers[] = 'Access-Control-Allow-Origin: http://www.apurogol.net';
  19.         $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';
  20.  
  21.         $process = curl_init($url);
  22.         curl_setopt($process, CURLOPT_HTTPHEADER, $headers);
  23.         curl_setopt($process, CURLOPT_HEADER, 0);
  24.         curl_setopt($process, CURLOPT_USERAGENT, $useragent);
  25.         curl_setopt($process, CURLOPT_REFERER, $referer);
  26.         curl_setopt($process, CURLOPT_TIMEOUT, 30);
  27.         curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
  28.         curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1);
  29.         curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false); // curl_setopt($process, CURLOPT_SSL_VERIFYHOST, FALSE);
  30.         curl_setopt($process, CURLOPT_VERBOSE, 1);
  31.  
  32.         $return = curl_exec($process);
  33.         curl_close($process);
  34.  
  35.         return $return;
  36.     }
  37.     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'));
  38. endif;
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement