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 "
+
+
+