pruefung des alter felde hinzugefuegt
git-svn-id: svn://svn.cccv.de/engel-system@93 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
adeb66ec6e
commit
71115efa5e
|
@ -9,6 +9,8 @@ include ("./inc/crypt.php");
|
||||||
if( isset($_POST["send"]))
|
if( isset($_POST["send"]))
|
||||||
{
|
{
|
||||||
$eNick = trim($_POST["Nick"]);
|
$eNick = trim($_POST["Nick"]);
|
||||||
|
if( $_POST["Alter"]=="") $_POST["Alter"] = 0;
|
||||||
|
|
||||||
//user vorhanden?
|
//user vorhanden?
|
||||||
$SQLans = "SELECT UID FROM `User` WHERE `Nick`='". $_POST["Nick"]. "'";
|
$SQLans = "SELECT UID FROM `User` WHERE `Nick`='". $_POST["Nick"]. "'";
|
||||||
$Ergans = mysql_query($SQLans, $con);
|
$Ergans = mysql_query($SQLans, $con);
|
||||||
|
@ -26,6 +28,10 @@ if( isset($_POST["send"]))
|
||||||
{
|
{
|
||||||
$error= Get_Text("makeuser_error_mail");
|
$error= Get_Text("makeuser_error_mail");
|
||||||
}
|
}
|
||||||
|
elseif( !is_numeric($_POST["Alter"]))
|
||||||
|
{
|
||||||
|
$error= Get_Text("makeuser_error_Alter");
|
||||||
|
}
|
||||||
elseif( $_POST["Passwort"] != $_POST["Passwort2"] )
|
elseif( $_POST["Passwort"] != $_POST["Passwort2"] )
|
||||||
{
|
{
|
||||||
$error= Get_Text("makeuser_error_password1");
|
$error= Get_Text("makeuser_error_password1");
|
||||||
|
@ -39,8 +45,6 @@ if( isset($_POST["send"]))
|
||||||
$_POST["Passwort"] = PassCrypt($_POST["Passwort"]);
|
$_POST["Passwort"] = PassCrypt($_POST["Passwort"]);
|
||||||
unset($_POST["Passwort2"]);
|
unset($_POST["Passwort2"]);
|
||||||
|
|
||||||
if( $_POST["Alter"]=="") $_POST["Alter"] = 0;
|
|
||||||
|
|
||||||
$SQL = "INSERT INTO `User` (".
|
$SQL = "INSERT INTO `User` (".
|
||||||
"`Nick` , ". "`Name` , ".
|
"`Nick` , ". "`Name` , ".
|
||||||
"`Vorname`, ". "`Alter` , ".
|
"`Vorname`, ". "`Alter` , ".
|
||||||
|
|
Loading…
Reference in New Issue