On master: Tower Auto-Stash: 2018-04-12 16:38:07 +0200
This commit is contained in:
commit
14d83b7d79
1 changed files with 134 additions and 2 deletions
|
|
@ -97,6 +97,7 @@ class DefaultController extends Controller
|
|||
*/
|
||||
public function ttSearchAction(Request $request)
|
||||
{
|
||||
|
||||
$form = $this->createForm(TtSearchRequestType::class);
|
||||
if (empty($request->query->get('termin')))
|
||||
{
|
||||
|
|
@ -115,6 +116,7 @@ class DefaultController extends Controller
|
|||
$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1';
|
||||
$ttUrl .= '&termin=' . $data['termin']->format('d.m.Y');
|
||||
$ttUrl .= '&ruecktermin=' . $data['ruecktermin']->format('d.m.Y');
|
||||
|
||||
if (!empty($data['dauer'])) $ttUrl .= '&dauer='. $data['dauer'];
|
||||
if (!empty($data['t']))
|
||||
{
|
||||
|
|
@ -150,8 +152,138 @@ class DefaultController extends Controller
|
|||
if ($data['typ'] ?? false) $ttUrl .= '&typ=0';
|
||||
if (!empty($data['sportangebot'])) $ttUrl .= '&sportangebot='. $data['sportangebot'];
|
||||
}else{
|
||||
|
||||
|
||||
|
||||
/*
|
||||
http://www.sterntours.de/tt-suche?termin=&ruecktermin=&dauer=&topRegion=&abflughafen=&shotel=&kategorie=&zimmer=&t=1&child0=&child1=&child2&&KID=
|
||||
|
||||
formular=
|
||||
detail=termine
|
||||
showresult=1
|
||||
personen=25;25
|
||||
IFF=49720
|
||||
termin=1523397600
|
||||
ruecktermin=1524002400
|
||||
dauer=6_7
|
||||
marke=FTI
|
||||
sleistung=MCT328;PAUS;;DX%20F
|
||||
abflughafen=TXL
|
||||
bplink=1
|
||||
ttexpedient=Leoni%20Stern
|
||||
ttbueroid=DRS32
|
||||
|
||||
$form="";
|
||||
$det="termine";
|
||||
$hotel="49720";
|
||||
&formular=$form&detail=$det&IFF=$hotel&abflughafen=$airp&sleistung=$sleist&showresult=$show&personen=$pers&marke=$va&termin=$hin&ruecktermin=$rueck&dauer=$dau&bplink=$bli&ttexpedient=$exp'
|
||||
|
||||
//$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&'.$_SERVER['QUERY_STRING'];
|
||||
|
||||
|
||||
|
||||
http://sterntours.local/tt-suche?termin=&ruecktermin=&dauer=&topRegion=&abflughafen=&shotel=&kategorie=&zimmer=&t=1&child0=&child1=&child2&&KID=&formular=&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32
|
||||
|
||||
http://sterntours.local/tt-suche?termin=&ruecktermin=&dauer=&topRegion=&abflughafen=&shotel=&kategorie=&zimmer=&t=1&child0=&child1=&child2&&KID=&formular=&detail=termine&showresult=1&personen=25;25&IFF=19146&termin=1528063200&ruecktermin=1528322400&dauer=6_3&marke=ITS&sleistung=EF02UXT;;F;AP2N&abflughafen=DUS&bplink=1&ttexpedient=Thomas%20Stern&ttbueroid=DRS32
|
||||
|
||||
http://sterntours.local/tt-suche?&formular=4&engine=erde&detail=termine&IFF=54145&sleistung=RGOLRGOL%3B%3B%3B2SAU&showresult=1&personen=25%3B25&termin=1365026400&ruecktermin=1365458400&dauer=6_5&bplink=1&marke=ATK&ttexpedient=Max+Musterman
|
||||
|
||||
|
||||
http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32
|
||||
|
||||
*/
|
||||
|
||||
if(strpos($_SERVER['QUERY_STRING'], 'ttexpedient')){
|
||||
$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&'.$_SERVER['QUERY_STRING'];
|
||||
|
||||
/* $data = $form->getData();
|
||||
|
||||
var_dump($data);
|
||||
die();*/
|
||||
|
||||
/* if(isset($_GET['formular'])) { $form=$_GET['formular']; }
|
||||
else { $form=""; }
|
||||
|
||||
if(isset($_GET['detail'])) { $det=$_GET['detail']; }
|
||||
else { $det=""; }
|
||||
|
||||
if(isset($_GET['IFF'])) { $hotel=$_GET['IFF']; }
|
||||
else { $hotel=""; }
|
||||
|
||||
if(isset($_GET['abflughafen'])) { $airp=$_GET['abflughafen']; }
|
||||
else { $airp=""; }
|
||||
|
||||
if(isset($_GET['sleistung'])) { $sleist=$_GET['sleistung']; }
|
||||
else { $sleist=""; }
|
||||
|
||||
if(isset($_GET['showresult'])) { $show=$_GET['showresult']; }
|
||||
else { $show=""; }
|
||||
|
||||
if(isset($_GET['personen'])) { $pers=$_GET['personen']; }
|
||||
else { $pers=""; }
|
||||
|
||||
if(isset($_GET['marke'])) { $va=$_GET['marke']; }
|
||||
else { $va=""; }
|
||||
|
||||
if(isset($_GET['termin'])) { $hin=$_GET['termin']; }
|
||||
else { $hin=""; }
|
||||
|
||||
if(isset($_GET['ruecktermin'])) { $rueck=$_GET['ruecktermin']; }
|
||||
else { $rueck=""; }
|
||||
|
||||
if(isset($_GET['dauer'])) { $dau=$_GET['dauer']; }
|
||||
else { $dau=""; }
|
||||
|
||||
if(isset($_GET['bplink'])) { $bli=$_GET['bplink']; }
|
||||
else { $bli=""; }
|
||||
|
||||
if(isset($_GET['ttexpedient'])) { $exp=$_GET['ttexpedient']; }
|
||||
else { $exp=""; }
|
||||
*/
|
||||
|
||||
$hin = date("d.m.Y", 1523397600);
|
||||
$rueck = date("d.m.Y", 1524002400);
|
||||
|
||||
/* &formular=4&detail=termine&IFF=19907&abflughafen=29&sleistung=AALKDVA%3B%3BH%3BD01U&showresult=1&personen=25%3B25&termin=1360623600&ruecktermin=1361228400&dauer=6_7&bplink=1&marke=GTI&ttexpedient=Ma+Mustermann
|
||||
*/
|
||||
|
||||
/* if($this->input->get('IFF')) {
|
||||
$requests = str_replace("/travelsearch/tt?", "", $_SERVER['REQUEST_URI']);
|
||||
$url = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&detail=".($destination > 0 ? 'hotel' : $detail)."&showresult=1";
|
||||
$url .= $requests;
|
||||
}*/
|
||||
// $url = "detail=".($destination > 0 ? 'hotel' : $detail)
|
||||
/*$ttUrl = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&detail=termine&IFF=49720&abflughafen=TXL&sleistung=MCT328;PAUS;;DX F&showresult=1&personen=25;25&marke=FTI&termin=1523397600&ruecktermin=1524002400&dauer=6_7&bplink=1&ttexpedient=Leoni Stern";*/
|
||||
/* $ttUrl = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=$form&engine=pauschal&showresult=1&detail=$det&IFF=$hotel&abflughafen=$airp&sleistung=$sleist&showresult=$show&personen=$pers&marke=$va&termin=$hin&ruecktermin=$rueck&dauer=$dau&bplink=$bli&ttexpedient=$exp";
|
||||
|
||||
die($ttUrl);*/
|
||||
|
||||
$ttUrl = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&detail=zielgebiet&IFF=49720&abflughafen=TXL&sleist
|
||||
ung=MCT328;PAUS;;DX%20F&&showresult=1&personen=25;25&marke=NEC&termin=1523397600&ruecktermin=1524002400&dauer=6_7&bplink=1&
|
||||
ttexpedient=Leoni%20Stern";
|
||||
|
||||
$urlLastMinute = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
|
||||
$urlPauschal = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
|
||||
$urlCharter = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
|
||||
$urlHotel = 'http://www.vidado.com/booking/ibe_bp2/erde/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
|
||||
if (isset($_GET['ttibe']) && $_GET['ttibe'] == 'pauschal') {
|
||||
$url = $urlPauschal;
|
||||
} else if (isset($_GET['ttibe']) && $_GET['ttibe'] == 'charter') {
|
||||
$url = $urlCharter;
|
||||
} else if (isset($_GET['ttibe']) && $_GET['ttibe'] == 'hotel') {
|
||||
$url = $urlHotel;
|
||||
} else {
|
||||
$url = $urlLastMinute;
|
||||
}
|
||||
$url .= '&' . $_SERVER['QUERY_STRING'];
|
||||
|
||||
/*$url .= '&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32';*/
|
||||
die($url);
|
||||
echo '<iframe src="' . $url . '" frameborder="0" width="592"
|
||||
height="10000"></iframe>';
|
||||
|
||||
die();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue