Logo: Paul Reber GmbH & CO. KG

"; $users = $DB->getUsername($username); //echo "DBQuery: ".$DB->querystring."
"; if (count($users)>0) { $errormessage = $message["register_userexists"]; } else { $status = $DB->addUsername($username); //echo "DBQuery: ".$DB->querystring."
"; if ($status) { $id_kunde = $DB->dbId_inserted; $validusername=true; } else { $errormessage = $message["register_dberr_adduser"]." [".$DB->dberror."]"; } } } else if (isset($_POST['register'])) { $validusername=true; $username = $_POST['username']; $id_kunde = $_POST['id_kunde']; $password = $_POST['password']; $password2 = $_POST['password2']; $name = $_POST['name']; $firma = $_POST['firma']; $strasse = $_POST['strasse']; $plz = $_POST['plz']; $ort = $_POST['ort']; $land = $_POST['land']; $email = $_POST['email']; $email2 = $_POST['email2']; $tel = $_POST['tel']; $fax = $_POST['fax']; if (strlen($password)<6) $errormessage=$message["register_err_shortpassword"]; else if ($password!=$password2) $errormessage=$message["register_err_password2_incorrect"]; else if (strlen($name)==0) $errormessage=$message["register_err_missingname"]; else if (strlen($strasse)==0) $errormessage=$message["register_err_missingstreet"]; else if (strlen($plz)==0) $errormessage=$message["register_err_missingzipcode"]; else if (strlen($ort)==0) $errormessage=$message["register_err_missingcity"]; else if (strlen($land)==0) $errormessage=$message["register_err_missingcountry"]; else if (strlen($email)==0) $errormessage=$message["register_err_missingemail"]; else if ($email!=$email2) $errormessage=$message["register_err_email2_incorrect"]; else if ($_POST['agb']!="accept") $errormessage=$message["acquire_errormessage2"]; else { $freischaltcode = sha1($username.$name.$email); $status = $DB->writeKunde($id_kunde, $firma, $name, $strasse, $plz, $ort, $land, $email, $tel, $fax, "", 0, 0, 0,$username,$password,$freischaltcode); //echo "Query:".$DB->querystring."
"; //echo "Freischaltcode:".$freischaltcode."
"; if ($status) { $errormessage = $message["register_success_writedata"]; $to = $email; $subject = $message["email_subject"]; $body = $message["email_welcome"].$username.",\n\n"; $body .= $message["email_line1"]."\n"; $body .= $message["email_line2"]."\n"; $body .= $message["email_line3"]."\n\n"; $body .= pathinfo("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],PATHINFO_DIRNAME).'/activate.php?key='.$freischaltcode."\n\n"; $body .= $message["email_line4"]."\n"; $body .= $message["email_line5"]."\n\n"; $body .= $message["email_signatur"]."\n"; $headers = 'From: office@vivamozart.at'."\r\n".'Reply-To: office@vivamozart.at'."\r\n".'X-Mailer: PHP/' . phpversion(); $mailstatus = mail($to, $subject, $body, $headers); if ($mailstatus) { $errormessage = $message["register_success_sendmail"]; } else { $errormessage = $message["register_err_sendmail"]; } } else { $errormessage = $message["register_dberr_writedata"]; } } } else { $username = ""; //echo "!addUser
"; } ?>

  " class="formbutton">

 
 
 *
 *
- *
 *
 *
 *
" class="formbutton">