Stammdaten $foundId = true; $adrLine = explode($sep, $lines[1]); $name1 = $adrLine[0]; if (strlen($name1) > 3) { $name1.=""; } else { $name1=""; } $name2 = $adrLine[1]; if (strlen($name2) > 3) { $name2.=""; } else { $name2=""; } $zusatz = $adrLine[2]; if (strlen($zusatz) <= 3) { $zusatz=""; } $strasse = $adrLine[3]; $plz = $adrLine[4]; $ort = $adrLine[5]; $logo = $adrLine[6]; $neuheit = $adrLine[7]; $tel = $adrLine[8]; $email = $adrLine[9]; $tel2 = $adrLine[10]; $web = $adrLine[11]; $fax = $adrLine[12]; $webdia = $adrLine[13]; $mobil = $adrLine[14]; $webshop = $adrLine[15]; // -> Öffnungszeiten $shopTimes = explode($sep, $lines[2]); $showShopTimes = $shopTimes[0]; if ($showShopTimes == "Wahr") { $showLine1 = $shopTimes[1]; $dayFrom1 = $shopTimes[2]; $dayTo1 = $shopTimes[3]; $time1OpenFrom1 = $shopTimes[4]; $time1OpenTo1 = $shopTimes[5]; $time2OpenFrom1 = $shopTimes[6]; $time2OpenTo1 = $shopTimes[7]; $showLine2 = $shopTimes[8]; $dayFrom2 = $shopTimes[9]; $dayTo2 = $shopTimes[10]; $time1OpenFrom2 = $shopTimes[11]; $time1OpenTo2 = $shopTimes[12]; $time2OpenFrom2 = $shopTimes[13]; $time2OpenTo2 = $shopTimes[14]; $showLine3 = $shopTimes[15]; $dayFrom3 = $shopTimes[16]; $dayTo3 = $shopTimes[17]; $time1OpenFrom3 = $shopTimes[18]; $time1OpenTo3 = $shopTimes[19]; $time2OpenFrom3 = $shopTimes[20]; $time2OpenTo3 = $shopTimes[21]; $showLine4 = $shopTimes[22]; $dayFrom4 = $shopTimes[23]; $dayTo4 = $shopTimes[24]; $time1OpenFrom4 = $shopTimes[25]; $time1OpenTo4 = $shopTimes[26]; $time2OpenFrom4 = $shopTimes[27]; $time2OpenTo4 = $shopTimes[28]; $showLine5 = $shopTimes[29]; $dayFrom5 = $shopTimes[30]; $dayTo5 = $shopTimes[31]; $time1OpenFrom5 = $shopTimes[32]; $time1OpenTo5 = $shopTimes[33]; $time2OpenFrom5 = $shopTimes[34]; $time2OpenTo5 = $shopTimes[35]; $ruhetag = $shopTimes[36]; } // template vorhanden? if ($lines[3] == "Tpl=true") { //ja! $template = true; $templateLines = explode($sep, $lines[4]); $bild1 = $templateLines[0]; $bild2 = $templateLines[1]; $bild3 = $templateLines[2]; $bild4 = $templateLines[3]; $beschreibung = $templateLines[4]; $besonderheiten = explode($sep, $lines[5]); $anmerkung = $lines[6]; } else { //kein template vorhanden $template=false; } } else { // keine Adresse gefunden $foundId = false; } function insertPic($no) { global $hasPic; $tmp = "bild$no"; global $$tmp; $url = $$tmp; global $name1; if (strlen($url) > 3) { $hasPic = true; return ""; } else { return " "; } } $logo_size=getimagesize($logo); $logo_width=$logo_size[0]; ?>