Магазинчик

<?PHP

if(isset($_GET['url'])) {

$uri = $_GET['url'];

 

}

else

{

$uri = 'http://www.ikea.com/ru/ru/allproducts/index.html#function';

}

 

require ('phpQuery.php');

$imgs = file_get_contents($uri);

$imgg = phpQuery::newDocument($imgs);

$body = $imgg->find('#main');

 

foreach ($body->find('img') as $tds)

{

$tdsr = pq($tds);

//$body = $tdsr->

$img = $tdsr->attr('src');

//echo $img;

$urr = 'http://www.ikea.com'.$img;

$res = $tdsr->attr('src',$urr);

}

 

foreach ($body->find('a') as $link)

{

$l = pq($link);

//$body = $tdsr->

$lnk = $l->attr('href');

//echo $lnk;

$urrl = 'http://ikeaideas.com.ua/tow.php?url=http://www.ikea.com'.$lnk;

$l->attr('href',$urrl);

}

 

echo $body;

 

?>

Please publish modules in offcanvas position.