Jump to content

Recommended Posts

Posted


<?php

$zodiac = htmlentities( $_POST["zodiac"] ) ;

$ch = curl_init() ;

$array = array(

CURLOPT_URL => "http://inbuzunar.mobi/horoscop.php?query=daily",

CURLOPT_HEADER => 0,

CURLOPT_FRESH_CONNECT => 1,

CURLOPT_RETURNTRANSFER => 1,

CURLOPT_POST => 1,

CURLOPT_POSTFIELDS => "zodiac=" . $zodiac . "&view=Citeste" ) ;

curl_setopt_array( $ch, $array ) ;

$curl = curl_exec( $ch ) ;

curl_close( $ch ) ;

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

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

$show = preg_replace( array(

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

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

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

"",

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

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

echo $show . "\n" ;

?>

DEMO: http://inbuzunar.mobi/horoscop.php?query=daily

Pasnic si..simplu

Posted

Scriptul acesta (cat si celelalte postate) sunt interesante, insa, daca site-ul "mama" intr-o buna zi nu va mai exista, codurile de mai sus vor deveni inutile, deoarece functioneaza ca un iframe.

Ar fi fost si mai utila postarea continutului paginii horoscop.php

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

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.