From 866c47ec603595e8fe67da5f0e5d162a70b1f7b4 Mon Sep 17 00:00:00 2001 From: cookie Date: Sun, 6 Nov 2005 17:14:25 +0000 Subject: move files git-svn-id: svn://svn.cccv.de/engel-system@20 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/makeuser.php | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100755 www-ssl/makeuser.php (limited to 'www-ssl/makeuser.php') diff --git a/www-ssl/makeuser.php b/www-ssl/makeuser.php new file mode 100755 index 00000000..eae1f855 --- /dev/null +++ b/www-ssl/makeuser.php @@ -0,0 +1,111 @@ +\n\n"; + +if( !isset($_POST["action"]) ) + $_POST["action"]="new"; + +if( $_POST["action"]=="newsave") +{ + $eNick = trim($_POST["eNick"]); + if( strlen($_POST["eNick"]) < 2 ) + { + $error= "

error: nick '".$_POST["eNick"]."' is to short (min. 2 characters)

"; + } + elseif( strlen($_POST["eemail"]) <= 7 || + strstr($_POST["eemail"], "@") == FALSE || + strstr($_POST["eemail"], ".") == FALSE ) + { + $error= "

error: e-mail address is not correct

"; + } + elseif( $_POST["ePasswort"] != $_POST["ePasswort2"] ) + { + $error= "error: passswords are not identical"; + } + elseif( strlen($_POST["ePasswort"]) < 6 ) + { + $error= "error: password is to short (min. 6 characters)"; + } + else + { + $_POST["ePasswort"] = PassCrypt($_POST["ePasswort"]); + $SQL = "INSERT INTO `User` (`Nick`, `Name`, `Vorname`, `Alter`, `Telefon`, `DECT`, `Handy`, ". + "`email`, `Size`, `Passwort`) ". + "VALUES ('". $_POST["eNick"]. "', '". $_POST["eName"]. "', '". $_POST["eVorname"]. + "', '". $_POST["eAlter"]. "', '". $_POST["eTelefon"]. "', '". $_POST["eDECT"]. + "', '". $_POST["eHandy"]. "', '". $_POST["eemail"]. "', '". $_POST["eSize"]. + "', '". $_POST["ePasswort"]. "');"; + $Erg = mysql_query($SQL, $con); + if ($Erg != 1) + echo "error: can't save personal informations...
(error: ".mysql_error($con).")
"; + else + { + echo "personal informations was saved...
"; + + $SQL2 = "SELECT UID FROM `User` WHERE Nick='". $_POST["eNick"]. "';"; + $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 "error: can't save userright...
(".mysql_error($con).")
"; + } + else + { + echo "userright was saved...
"; + echo "

Your acount was sucsessfull creat, hafe al lot of fun."; + } + } + } +} + +if( $_POST["action"] == "new" || isset($error)) +{ + if( !isset($error) ) + echo "If you wont to be an angel please insert your personal information into this form:
"; + else + echo $error; + echo "\n\n
\n"; + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
nick*
last name
first name
age
phone
DECT on congress
mobile
e-mail*
T-Shirt size*
password*
password Confirm*
\n"; + echo "\n"; + echo "\n"; + echo "
"; + echo "\n\n\n\t* entry required!\n"; +} + +include ("./inc/footer.php"); +?> + -- cgit v1.2.3-70-g09d2