diff --git a/trunk/src/AppBundle/Twig/AppExtension.php b/trunk/src/AppBundle/Twig/AppExtension.php index ea21be25..92586934 100644 --- a/trunk/src/AppBundle/Twig/AppExtension.php +++ b/trunk/src/AppBundle/Twig/AppExtension.php @@ -120,6 +120,7 @@ class AppExtension extends \Twig_Extension public function lozadFilter($html) { + // return $html; //(loadHTML(''.$html); @@ -127,16 +128,16 @@ class AppExtension extends \Twig_Extension foreach ($images as $image) { $i = Util::getRootDir().'web/'.$image->getAttribute('src'); - if(strpos($image->getAttribute('src'), 'docs')){ + if(strpos($image->getAttribute('src'), 'docs') !== false){ $i = Util::getRootDir().'web/'.substr($image->getAttribute('src'), strpos($image->getAttribute('src'), 'docs')); } - if(strpos($image->getAttribute('src'), 'uploads')){ + if(strpos($image->getAttribute('src'), 'uploads') !== false){ $i = Util::getRootDir().'web/'.substr($image->getAttribute('src'), strpos($image->getAttribute('src'), 'uploads')); } + $i = Image::open($i)->cropResize(848)->guess(75); - // $i = image()..; - $image->setAttribute('data-src', $i); + $image->setAttribute('data-src', "/".$i); $image->setAttribute('src', 'images/placeholder-image.png'); $image->setAttribute('class', 'lozad'); } diff --git a/trunk/web/travelsearch.php b/trunk/web/travelsearch.php index 1683be29..75cfeed0 100644 --- a/trunk/web/travelsearch.php +++ b/trunk/web/travelsearch.php @@ -1,20 +1,115 @@ - '; + */ + + + /*$url = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7'; + $url .= '&' . $_SERVER['QUERY_STRING']; + echo '';*/ + + +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=""; } + +$url = "http://dtps-ibe.traveltainment.de/search?&taid=DRS32"; //&ibe=package"; + + +$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); +$url = urldecode($url); + /*$destination = 0; + $requests = str_replace("/travelsearch.php?", "", $_SERVER['REQUEST_URI']); + $url = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&detail=".($destination > 0 ? 'termine' : $detail)."&showresult=1"; + $url .= $requests;*/ + + + +echo " + + + +DEEPLINK Sterntours + + + +"; + + + + /* $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']; + + echo '';*/ + /* 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 @@ -33,19 +128,13 @@ $form=""; $det="termine"; $hotel="49720"; - - x-webdoc://5EB80A55-1E1B-4688-B586-5E5511A3A415?KID=&formular=&engine=erde&detail=termine&showresult=1&personen=25;25&IFF=6293&termin=1539381600&ruecktermin=1539554400&dauer=6_2&marke=FTI&sleistung=ASW318;PAUS;;DSQF&bplink=1&ttexpedient=Franziska%20Mohsen&ttbueroid=DRS32 - - - http://www.sterntours.de/travelsearch.php?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 - &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/travelsearch.php?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 + https://sterntours.de/travelsearch.php?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 @@ -55,3 +144,4 @@ 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 */ +?> \ No newline at end of file