$an = preg_replace("/(content-type:|bcc:|cc:|to:|from:)/im", "", $an);
mail($an, $subject, $message, "From: {$von}\nReply-To: {$von}\nX-Mailer: PHP/" . phpversion());
if ($isReseller) {
    mail($resellerEMail, $subject, $message, "From: {$von}\nReply-To: {$von}\nX-Mailer: PHP/" . phpversion());
}
//...und die standard-sprache:
setStandardSprache($unterkunft_id, $sprache, $link);
setStandardSpracheBelegungsplan($unterkunft_id, $sprache, $link);
//anonymen gast anlegen:
//der bekommt die id = 1
insertGuestWithID(1, $unterkunft_id, " ", "Anonym", "Anonymous", "no street address", "no post code", "no city", "no land", "no e-mail", "no tel", "no fax", "anonymous guest", "en", $link);
//die standard-framegroessen setzen:
//zuerst mal einen eintrag in den einstellungen machen:
$query = "REPLACE INTO \n\t\t\t  Rezervi_Einstellungen_Neu\n\t\t\t  (FK_Unterkunft_ID)\n\t\t\t  VALUES\t\t\t\t  \n\t\t\t  ('{$unterkunft_id}')\n\t\t\t ";
$res = mysqli_query($link, $query);
setFramesizeRightBP($unterkunft_id, "", "*", $link);
setFramesizeLeftBP($unterkunft_id, "280", "px", $link);
setFramesizeLeftWI($unterkunft_id, "280", "px", $link);
setFramesizeRightWI($unterkunft_id, "", "*", $link);
//speichert der default Values in der properties tabelle:
setDefaultValues($unterkunft_id, $link);
if (!$fail) {
    $fehler = false;
    $unterkunft = true;
    $antwort = $antwort . "Anlegen der Unterkunft erfolgreich durchgeführt.";
} else {
    $fehler = true;
    $unterkunft = false;
    $antwort .= getUebersetzung("Installationsfehler.", $sprache, $link) . "<br/>";
    $antwort .= getUebersetzung("Überprüfen Sie die Zugangsdaten in conf/rdbmsConfig.php und die Version Ihrer MySQL Datenbank.", $sprache, $link) . "<br/>";
    $antwort .= getUebersetzung("Ansonsten wenden sie sich bitte per E-Mail an utilo.eu - wir helfen ihnen gerne weiter!", $sprache, $link) . "<br/>";
    $wertLeftWI = "*";
}
$unterkunft_id = getSessionWert(UNTERKUNFT_ID);
$sprache = getSessionWert(SPRACHE);
$passwort = getSessionWert(PASSWORT);
$benutzername = getSessionWert(BENUTZERNAME);
//datenbank öffnen:
include_once "../../../conf/rdbmsConfig.php";
include_once "../../../include/einstellungenFunctions.php";
include_once "../../../include/uebersetzer.php";
include_once "../../../include/benutzerFunctions.php";
include_once "../../../include/unterkunftFunctions.php";
include_once "../../templates/components.php";
include_once $root . "/include/propertiesFunctions.php";
setFramesizeLeftBP($unterkunft_id, $wertLeftBP, $artLeftBP, $link);
setFramesizeRightBP($unterkunft_id, $wertRightBP, $artRightBP, $link);
setFramesizeRightWI($unterkunft_id, $wertRightWI, $artRightWI, $link);
setFramesizeLeftWI($unterkunft_id, $wertLeftWI, $artLeftWI, $link);
$nachricht = "Die Framegrößen wurden erfolgreich geändert";
$nachricht = getUebersetzung($nachricht, $sprache, $link);
$nachricht .= ".";
$fehler = false;
if (isset($_POST["splitHorizontal"]) && $_POST["splitHorizontal"] == "true") {
    setProperty(HORIZONTAL_FRAME, "true", $unterkunft_id, $link);
} else {
    setProperty(HORIZONTAL_FRAME, "false", $unterkunft_id, $link);
}
include_once "../../templates/headerA.php";
?>
<style type="text/css">
<?php