diff --git a/trunk/src/AppBundle/Controller/DefaultController.php b/trunk/src/AppBundle/Controller/DefaultController.php index b4c9169b..74fface0 100644 --- a/trunk/src/AppBundle/Controller/DefaultController.php +++ b/trunk/src/AppBundle/Controller/DefaultController.php @@ -211,8 +211,8 @@ class DefaultController extends Controller if(!empty($get_array['detail'])) { $det=$get_array['detail']; } else { $det=""; } - if(!empty($get_array['IFF'])) { $hotel=$get_array['IFF']; } - else { $hotel=""; } + if(!empty($get_array['IFF'])) { $iff=$get_array['IFF']; } + else { $iff=""; } if(!empty($get_array['abflughafen'])) { $airp=$get_array['abflughafen']; } else { $airp=""; } @@ -243,13 +243,28 @@ class DefaultController extends Controller if(!empty($get_array['ttexpedient'])) { $exp=$get_array['ttexpedient']; } else { $exp=""; } - + - $url = "http://dtps-ibe.traveltainment.de/search?&taid=DRS32"; //&ibe=package"; + /* http://sterntours.local/tt-suche?&KID=&formular=&detail=termine&showresult=1&personen=25;25&IFF=2286&termin=1525298400&ruecktermin=1525730400&dauer=6_5&marke=SLR&sleistung=PMI501;;;A12H&abflughafen=HAM&bplink=1&ttexpedient=Maria%20Bedel&ttbueroid=DRS32 - $url = $url."&adult=".substr_count($pers, '25')."&aid=$hotel&ddate=".date("Y-m-d", $hin)."&rdate=".date("Y-m-d", $rueck)."&dur=".str_replace("_", ",", $dau)."&brand=$va&depap=$airp"; - $url .= "&aidList=".str_replace(";", ",", $sleist); + http://www.sterntours.de/tt-suche?&KID=&formular=&detail=termine&showresult=1&personen=25;25&IFF=2286&termin=1525298400&ruecktermin=1525730400&dauer=6_5&marke=SLR&sleistung=PMI501;;;A12H&abflughafen=HAM&bplink=1&ttexpedient=Maria%20Bedel&ttbueroid=DRS32 + + */ + + if($dau != "" && strpos($dau, "_")){ + $dau = explode("_", $dau); + asort($dau); + $dau = implode(",", $dau); + } + + $url = "http://dtps-ibe.traveltainment.de/offer?&taid=DRS32"; + + $url .= '&ibe=package&adult='.substr_count($pers, '25').'&ddate='.date("Y-m-d", $hin).'&rdate='.date("Y-m-d", $rueck).'&depap='.$airp.'&aid=2286&brand='.$va.'&dur='.$dau; + + + /* $url = $url."&ibe=package&adult=".substr_count($pers, '25')."&aid=$iff&ddate=".date("Y-m-d", $hin)."&rdate=".date("Y-m-d", $rueck)."."&brand=$va&depap=$airp";*/ + //$url .= "&aidList=".str_replace(";", ",", $sleist);*/ $ttUrl = urldecode($url);