0) { $error= Get_Text("makeuser_error_nick1"). $_POST["Nick"]. Get_Text("makeuser_error_nick3"); } elseif( strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == FALSE ) { $error= Get_Text("makeuser_error_mail"); } elseif( $_POST["Passwort"] != $_POST["Passwort2"] ) { $error= Get_Text("makeuser_error_password1"); } elseif( strlen($_POST["Passwort"]) < 6 ) { $error= Get_Text("makeuser_error_password2"); } else { $_POST["Passwort"] = PassCrypt($_POST["Passwort"]); unset($_POST["Passwort2"]); if( $_POST["Alter"]=="") $_POST["Alter"] = 0; $SQL = "INSERT INTO `User` (". "`Nick` , ". "`Name` , ". "`Vorname`, ". "`Alter` , ". "`Telefon`, ". "`DECT`, ". "`Handy`, ". "`email`, ". "`Size`, ". "`Passwort`, ". "`Art` , ". "`kommentar` ) ". "VALUES ( ". "'". $_POST["Nick"]. "', ". "'". $_POST["Name"]. "', ". "'". $_POST["Vorname"]. "', ". $_POST["Alter"]. ", ". "'". $_POST["Telefon"]. "', ". "'". $_POST["DECT"]. "', ". "'". $_POST["Handy"]. "', ". "'". $_POST["email"]. "', ". "'". $_POST["Size"]. "', ". "'". $_POST["Passwort"]. "', ". "'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "' );"; $Erg = mysql_query($SQL, $con); if ($Erg != 1) { echo Get_Text("makeuser_error_write1"). "
\n"; $error = mysql_error($con); } else { echo "

". Get_Text("makeuser_writeOK"). "\n"; $SQL2 = "SELECT UID FROM `User` WHERE Nick='". $_POST["Nick"]. "';"; $Erg2 = mysql_query($SQL2, $con); $Data = mysql_fetch_array($Erg2); $SQL3 = "INSERT INTO `UserCVS` (`UID`) VALUES (". $Data["UID"]. ");"; $Erg3 = mysql_query($SQL3, $con); if ($Erg3 != 1) { echo "

". Get_Text("makeuser_error_write2"). "
\n"; $error = mysql_error($con); } else { echo Get_Text("makeuser_writeOK2"). "
\n"; echo "

". Get_Text("makeuser_writeOK3"). "

\n"; } echo Get_Text("makeuser_writeOK4"). "

\n

\n"; } } if( !isset($error) ) echo Get_Text("makeuser_text4"). "
\n"; else echo "

\n$error\n

\n\n"; } else { //init vars $_POST["Nick"] = ""; $_POST["Name"] = ""; $_POST["Vorname"] = ""; $_POST["Alter"] = ""; $_POST["Telefon"] = ""; $_POST["DECT"] = ""; $_POST["Handy"] = ""; $_POST["email"] = ""; $_POST["Size"] = ""; $_POST["Art"] = ""; $_POST["kommentar"] = ""; } Print_Text("makeuser_text1"); echo "\t
\n"; echo "\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t
". Get_Text("makeuser_Nickname"). "*
". Get_Text("makeuser_Nachname"). "
". Get_Text("makeuser_Vorname"). "
". Get_Text("makeuser_Alter"). "
". Get_Text("makeuser_Telefon"). "
". Get_Text("makeuser_DECT"). "\n"; echo "\t\t\t
". Get_Text("makeuser_Handy"). "
". Get_Text("makeuser_E-Mail"). "*
". Get_Text("makeuser_T-Shirt"). " Grösse*\n"; echo "\t\t\t\n"; echo "\t\t\t
". Get_Text("makeuser_Engelart"). "\n"; echo "\t\t\t\n"; echo "\t\t\t
". Get_Text("makeuser_text2"). "
". Get_Text("makeuser_Passwort"). "*
". Get_Text("makeuser_Passwort2"). "*
 
\n"; echo "\t
\n"; Print_Text("makeuser_text3"); include ("./inc/footer.php"); ?>