$agent=$_GET['agent']; if ($agent=='') $agent=$user_sid; include_once('config.php'); include_once('funkcje.php'); $referer = $_SERVER['HTTP_REFERER']; $ps_override=$_POST['ps_override']; $departure_port=str_replace('.','',trim($_POST['departure_port'])); $arrival_port=str_replace('.','',trim($_POST['arrival_port'])); $arrival_port_2=str_replace('.','',trim($_POST['arrival_port_2'])); if ($departure_port=='') $departure_port='WAW'; if ($arrival_port=='') $arrival_port='BRU'; $multi_dep=trim(strtoupper($_POST['multi_dep'])); $multi_arr=trim(strtoupper($_POST['multi_arr'])); if ($multi_dep<>'') $departure_port=''; if ($multi_arr<>'') $arrival_port=''; $dep_date=trim($_POST['dep_date']); $arr_date=trim($_POST['arr_date']); if ($dep_date=='') $dep_date=daysahead(7); if ($arr_date=='') $arr_date=daysahead(14); $cabin_class=$_POST['cabin_class']; $ticketing_date=$_POST['ticketing_date']; (int)$adt_count=$_POST['adt_count']; (int)$yth_count=$_POST['yth_count']; (int)$child_count=$_POST['child_count']; (int)$inf_count=$_POST['inf_count']; (int)$src_count=$_POST['src_count']; if ($adt_count=='' && $yth_count=='' && $child_count=='' && $inf_count=='' && $src_count=='') {$adt_count=1;$yth_count=0;$child_count=0;$inf_count=0;$src_count=0;} $cabin_class=$_POST['cabin_class']; $flight_time=$_POST['flight_time']; $preferred_airline1=$_POST['preferred_airline1']; $preferred_airline2=$_POST['preferred_airline2']; $preferred_airline3=$_POST['preferred_airline3']; $exclude_airline1=$_POST['exclude_airline1']; $exclude_airline2=$_POST['exclude_airline2']; $exclude_airline3=$_POST['exclude_airline3']; $specific_airline1=$_POST['specific_airline1']; $specific_airline2=$_POST['specific_airline2']; $specific_airline3=$_POST['specific_airline3']; $currency=$_POST['currency']; $one_way=$_POST['one_way']; $direct_access=$_POST['direct_access']; $direct_flight=$_POST['direct_flight']; $multiport=$_POST['multiport']; $nonstop=$_POST['nonstop']; $seatcount=$_POST['seatcount']; $ignore_advance_purchase=$_POST['ignore_advance_purchase']; $ignore_flight_restrictions=$_POST['ignore_flight_restrictions']; $ignore_minimum_stay=$_POST['ignore_minimum_stay']; $no_break=$_POST['no_break']; $ignore_penalties=$_POST['ignore_penalties']; $unrestricted_fare=$_POST['unrestricted_fare']; $securate_only=$_POST['securate_only']; $all_fares=$_POST['all_fares']; $flex_date=$_POST['flex_date']; $flex_weekend=$_POST['flex_weekend']; $near_dep=$_POST['near_dep']; $near_arr=$_POST['near_arr']; $lowcost=$_POST['lowcost']; $language=$_POST['language']; // do dorobienia!!! if ($language=='') $language=$_GET['language']; if ($language=='') $language=$def_language; $one_way=$_POST['one_way']; if ($currency=='') $currency=$def_currency; $currency_table = array ('EUR','USD','PLN','RON','HUF'); ?>