Jump to content

Recommended Posts

Posted


<?php

function curl( $url )

{

if ( in_array( "curl", get_loaded_extensions() ) ) {

$ch = curl_init() ;

$array = array(

CURLOPT_URL => $url,

CURLOPT_HEADER => 0,

CURLOPT_FRESH_CONNECT => 1,

CURLOPT_RETURNTRANSFER => 1 ) ;

curl_setopt_array( $ch, $array ) ;

$result = curl_exec( $ch ) ;

curl_close( $ch ) ;

return $result ;

} else {

return @file_get_contents( $url ) ;

}

}

$curl = curl( "http://inbuzunar.mobi/sport.php?" . $_SERVER["QUERY_STRING"] ) ;

$grab = explode( '<body>', $curl ) ;

$rest = explode( '<div class="footer_menu">', $grab[1] ) ;

$show = preg_replace( array(

"/<div class=\"ad_menu\">(.+?)<\/div>/si",

"/<div class=\"link\">(.+?)<\/div>/si",

"/<div class=\"nolink\">(.+?)<\/div>/si",

"/<div class=\"quiz\">(.+?)<\/div>/si",

"/\/sport.php/" ), array(

"",

"<p>$1</p>",

"<p>$1</p>",

"<div style=\"background:#00FFFF\">$1</div>",

$_SERVER["PHP_SELF"] ), $rest[0] ) ;

echo $show . "\n" ;

?>

DEMO: http://inbuzunar.mobi/sport.php

Pasnic si..simplu

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.