Pogledajte određenu poruku
Staro 14. 12. 2011.   #13
webarto
expert
Grand Master
 
Avatar webarto
 
Datum učlanjenja: 11.04.2010
Poruke: 998
Hvala: 141
959 "Hvala" u 153 poruka
webarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished road
Default

Evo samo ne tuši više.

PHP kôd:
<?php

error_reporting
(E_ALL E_NOTICE);

$url $_GET['url'];

if( ! empty(
$url))
{
    
$data file_get_contents($url);
    
    
$data str_replace('<head>''<head><base href="'.$url.'" /></base>'$data);
    
    
$data preg_replace('#<script(.*?)>(.*?)</script>#is'''$data);
    
$data preg_replace('#<iframe(.*?)></iframe>#is'''$data);
    
    
$data .= 
    
'
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script>
    $("div").each(function(i){
        if($(this).css("position") == "fixed") $(this).css("display", "none");
    });
    </script>
    '
    
;
    
    die(
$data); 
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="author" content="Webarto" />

    <title>AdriaMart</title>

<script src="http://code.jquery.com/jquery-latest.js"></script>

<style type="text/css">
<!--
iframe{width:100%;height:400px;}
-->
</style>

</head>
<body>

<iframe id="iframe" src="?url=http://kupime.com"></iframe>

</body>
</html>
__________________
Github // LinkedIn // PHP // ZCE // Stackoverflow PHP // Site5 Web Hosting
webarto je offline   Odgovorite uz citat