From 38b3e249d27d34340cdc64a57472d55260aadbd2 Mon Sep 17 00:00:00 2001 From: cookie Date: Sat, 19 Nov 2005 19:46:41 +0000 Subject: [PATCH] sprache umgestellt git-svn-id: svn://svn.cccv.de/engel-system@67 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/sprache.php | 1 + www-ssl/makeuser.php | 177 ++++++++++++++++++++++++++++++++++++++ www-ssl/makeuser.php.de | 146 ------------------------------- www-ssl/makeuser.php.en | 146 ------------------------------- 4 files changed, 178 insertions(+), 292 deletions(-) create mode 100755 www-ssl/makeuser.php delete mode 100755 www-ssl/makeuser.php.de delete mode 100755 www-ssl/makeuser.php.en diff --git a/www-ssl/admin/sprache.php b/www-ssl/admin/sprache.php index af5db2ba..833164d1 100755 --- a/www-ssl/admin/sprache.php +++ b/www-ssl/admin/sprache.php @@ -28,6 +28,7 @@ if( !isset( $_GET["TextID"] ) ) echo "\t\t"; +/* // ausgabe eintraege $SQL = "SELECT * FROM `Sprache` ORDER BY `TextID`;"; $erg = mysql_query($SQL, $con); diff --git a/www-ssl/makeuser.php b/www-ssl/makeuser.php new file mode 100755 index 00000000..2102be11 --- /dev/null +++ b/www-ssl/makeuser.php @@ -0,0 +1,177 @@ + 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"); +?> + diff --git a/www-ssl/makeuser.php.de b/www-ssl/makeuser.php.de deleted file mode 100755 index dafc5d8f..00000000 --- a/www-ssl/makeuser.php.de +++ /dev/null @@ -1,146 +0,0 @@ - $value) - { - $value = strtr($value, get_html_translation_table(HTML_ENTITIES)); - $keys .= "´$key´, "; - $values .= "'".$value."', "; - } - $keys = substr($keys, 0, -2); - $values = substr($values, 0, -2); - $sql = "INSERT INTO $table (".$keys.") VALUES (".$values.")"; - mysql_query($sql, $con); - } - - mysqlinsert('User', $con, $_POST); - $Erg = mysql_affected_rows(); - - if ($Erg != 1) - { - echo "Fehler: Kann die eingegebenen Daten nicht sichern?!?
"; - echo "\n
(Fehler: ".mysql_error($con).")
"; - } - else - { - echo "

Die Anmeldung war erfolgreich."; - - $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 "

error: can't save userright...

(".mysql_error($con).")
"; - } - else - { - echo "userright was saved...
"; - echo "

Your acount was sucsessfull creat, hafe al lot of fun.

"; - } - echo "Vielen Dank für deine Anmeldung.

\n

"; - } - } - if( !isset($error) ){ - echo "Wenn du dich zum Chaos-Engel anmelden möchtest, fülle bitte folgendes Formular aus:
"; - } else { - echo "

\n$error\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"] = ""; -} -?> - -

Anmeldung zum Chaos-Engel

- -Mit dieser Maske meldet Ihr euch im Engelsystem an. Durch das Engelsystem findet auf dem Congress die Aufgabenverteilung der Engel statt. - - -
- - - - - - - - - - - - - - - - - - - - -
Nickname*"/>
Nachname"/>
Vorname"/>
Alter"/>
Telefon"/>
DECT"/>
Handy"/>
E-Mail*"/>
T-Shirt Grösse* - -
Engelart - -
Habt ihr schon einmal am
- Congress mitgeholfen?
- Wenn ja, in welchem/
- welchen Aufgabengebiet(en)?
Passwort*
Passwort Bestätigung*
 
-
- * Dieser Eintrag ist eine Pflichtangabe. - - diff --git a/www-ssl/makeuser.php.en b/www-ssl/makeuser.php.en deleted file mode 100755 index 73a6d1d6..00000000 --- a/www-ssl/makeuser.php.en +++ /dev/null @@ -1,146 +0,0 @@ - $value) - { - $value = strtr($value, get_html_translation_table(HTML_ENTITIES)); - $keys .= "`$key`, "; - $values .= "'".$value."', "; - } - $keys = substr($keys, 0, -2); - $values = substr($values, 0, -2); - $sql = "INSERT INTO $table (".$keys.") VALUES (".$values.")"; - mysql_query($sql, $con); - } - - mysqlinsert('User', $con, $_POST); - $Erg = mysql_affected_rows(); - - if ($Erg != 1) - { - echo "error: can't save your data...
"; - echo "
(error: ".mysql_error($con).")
"; - } - else - { - echo "

transmitted. "; - - $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 "

error: can't save userright...

(".mysql_error($con).")
"; - } - else - { - echo "userright was saved...
"; - echo "

Your acount was successfuly created, hafe al lot of fun.

"; - } - echo "Thank you for your participation..

\n

"; - } - } - if( !isset($error) ){ - echo "If you would like to be an chaos angel please insert following details into this form:
"; - } else { - echo "

\n$error\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"] = ""; -} -?> - -

Chaos-Angel registration

- -By completing this form you're registering as a Chaos-Angel. This script will create you an account in the congress angel task system. - -
- - - - - - - - - - - - - - - - - - -
nick*"/>
last name"/>
first name"/>
age"/>
phone"/>
DECT"/>
mobile"/>
e-mail*"/>
shirt size* - -
type of angel - -
- Did you help at former
- congresses and which tasks
- have you performed then?
-
-
password*
password confirm*
 
-
- * entry required! - - -