$value){
if($key == «country») $country = $value;
elseif($key == «city») $city = $value;
elseif($key == «hid») $hid = $value;
else $iparams = $iparams . «$key=$value&»;
};
$country = urlencode(ucwords($country));
$city = urlencode(ucwords($city));
$link = $iparams . «mod=$module_id&mode=$mode&country=$country&city=$city&hid=$hid»;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, «http://online-travel.ru/booking_engine/html.php?$link»);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
echo $output;
curl_close($ch);
?>


