<?php
$cat_id = $_GET['cat_id'];
$D_URL = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
$url = 'http://kredit.tom.ru/partners/index.php';
if ($cat_id) $url .= '?cat_id='.$cat_id.'&d_url='.$D_URL; else $url .= '?d_url='.$D_URL;
$hfile = @fopen($url, 'r');
if ($hfile) while (!feof($hfile))
{
$content = fread($hfile, 4096);
echo $content;
}
?>