aktiv == "1") { $tpl_topnaviName = $GetMenueObject->headline; if($GetMenueObject->bigImage != "") { if(file_exists("../../images/dbimages/" . $GetMenueObject->bigImage)) { $imageSize = getimagesize("../../images/dbimages/" . $GetMenueObject->bigImage); $tpl_topImage = "bigImage . "\" width=\"" . $imageSize[0] . "\" height=\"" . $imageSize[1] . "\" border=\"0\" align=\"left\">\n"; } } $tpl_topEintrag = stripslashes($GetMenueObject->textEintrag) . "\n"; if($_POST["submit"]) { if (($_POST["name"] == "") || ($_POST["tel"] == "") || ($_POST["betreff"] == "") || ($_POST["nachricht"] == "")) { $tpl_formFehlerText = $u_sternFelder; } elseif(is_mail($_POST["formEmail"]) == false) { $tpl_formFehlerText = $lang_emailInkorrekt; } else { if (eregi("\r",$_POST["formEmail"]) || eregi("\n",$_POST["formEmail"])) { echo "Spammer"; } else { $mailText = "Anfrage zum Thema " . $_POST["betreff"] . "\n\nName: " . $_POST["name"] . "\nFirma:" . $_POST["firma"] . "\nTelefon:" . $_POST["tel"] . "\nFax: " . $_POST["fax"] . "\nE-Mail: " . $_POST["formEmail"] . "\n\n".$_POST["nachricht"]; $e_mail = mail($rowAll->email,$_POST["betreff"], $mailText, "From: ".$_POST["formEmail"]."\nReply-To: ".$_POST["formEmail"] ."\nContent-Type: text/plain; charset=".CHARSET); } $_POST["name"] =""; $_POST["firma"] =""; $_POST["tel"] =""; $_POST["fax"] =""; $_POST["formEmail"] =""; $_POST["betreff"] =""; $_POST["nachricht"] =""; $tpl_formErfolgreich = $lang_anfrage_erfolgreich; } } $contentFile = DATEIPFAD . "templates/" . $rowTemp->name . "/website/kontakt/formular.tpl"; } // Ende Abfrage onlinestatus else { $contentFile = DATEIPFAD . "templates/" . $rowTemp->name . "/website/kein_inhalt.tpl"; } // Letzte globale Zusammenfassung z.B. fuer Warenkorbanzeige, bevor das Template geladen wird. include(DATEIPFAD . "includes/footer.inc.php"); // Template include(DATEIPFAD . "templates/" . $rowTemp->name . "/website/index.tpl"); @mysql_close($db); ?>