sprache umgestellt
git-svn-id: svn://svn.cccv.de/engel-system@67 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
805eaa629d
commit
38b3e249d2
|
@ -28,6 +28,7 @@ if( !isset( $_GET["TextID"] ) )
|
|||
echo "\t\t</tr>";
|
||||
|
||||
|
||||
/*
|
||||
// ausgabe eintraege
|
||||
$SQL = "SELECT * FROM `Sprache` ORDER BY `TextID`;";
|
||||
$erg = mysql_query($SQL, $con);
|
||||
|
|
|
@ -0,0 +1,177 @@
|
|||
<?PHP
|
||||
$title = "Anmeldung zum Chaos-Engel";
|
||||
$header = "";
|
||||
include ("./inc/header.php");
|
||||
include ("./inc/db.php");
|
||||
include ("./inc/crypt.php");
|
||||
|
||||
|
||||
if( isset($_POST["send"]))
|
||||
{
|
||||
$eNick = trim($_POST["Nick"]);
|
||||
//user vorhanden?
|
||||
$SQLans = "SELECT UID FROM `User` WHERE `Nick`='". $_POST["Nick"]. "'";
|
||||
$Ergans = mysql_query($SQLans, $con);
|
||||
|
||||
if( strlen($_POST["Nick"]) < 2 )
|
||||
{
|
||||
$error= Get_Text("makeuser_error_nick1"). $_POST["Nick"]. Get_Text("makeuser_error_nick2");
|
||||
}
|
||||
elseif( mysql_num_rows( $Ergans) > 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"). "<br>\n";
|
||||
$error = mysql_error($con);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p class=\"important\">". 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 "<h1>". Get_Text("makeuser_error_write2"). "<br>\n";
|
||||
$error = mysql_error($con);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Get_Text("makeuser_writeOK2"). "<br>\n";
|
||||
echo "<h1>". Get_Text("makeuser_writeOK3"). "</h1>\n";
|
||||
}
|
||||
echo Get_Text("makeuser_writeOK4"). "</p><p></p>\n<br><br>\n";
|
||||
}
|
||||
}
|
||||
if( !isset($error) )
|
||||
echo Get_Text("makeuser_text4"). "<br>\n";
|
||||
else
|
||||
echo "<p class=\"warning\">\n$error\n</p>\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<form action=\"\" method=\"post\">\n";
|
||||
echo "\t\t<table>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Nickname").
|
||||
"*</td><td><input type=\"text\" size=\"40\" name=\"Nick\" value=\"". $_POST["Nick"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Nachname").
|
||||
"</td><td><input type=\"text\" size=\"40\" name=\"Name\" value=\"". $_POST["Name"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Vorname").
|
||||
"</td><td><input type=\"text\" size=\"40\" name=\"Vorname\" value=\"". $_POST["Vorname"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Alter").
|
||||
"</td><td><input type=\"text\" size=\"40\" name=\"Alter\" value=\"". $_POST["Alter"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Telefon").
|
||||
"</td><td><input type=\"text\" size=\"40\" name=\"Telefon\" value=\"". $_POST["Telefon"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_DECT").
|
||||
"</td><td><input type=\"text\" size=\"40\" name=\"DECT\" value=\"". $_POST["DECT"]. "\"></td><td>\n";
|
||||
echo "\t\t\t<!--a href=\"https://21c3.ccc.de/wiki/index.php/POC\"><img src=\"./pic/external.png\" alt=\"external: \">DECT</a--></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Handy").
|
||||
"</td><td><input type=\"text\" size=\"40\" name=\"Handy\" value=\"". $_POST["Handy"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_E-Mail").
|
||||
"*</td><td><input type=\"text\" size=\"40\" name=\"email\" value=\"". $_POST["email"]. "\"></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_T-Shirt").
|
||||
" Grösse*</td><td align=\"left\">\n";
|
||||
echo "\t\t\t<select name=\"Size\">\n";
|
||||
echo "\t\t\t\t<option value=\"S\""; if ($_POST["Size"]=="S") echo " selected"; echo ">S</option>\n";
|
||||
echo "\t\t\t\t<option value=\"M\""; if ($_POST["Size"]=="M") echo " selected"; echo ">M</option>\n";
|
||||
echo "\t\t\t\t<option value=\"L\""; if ($_POST["Size"]=="L") echo " selected"; echo ">L</option>\n";
|
||||
echo "\t\t\t\t<option value=\"XL\""; if ($_POST["Size"]=="XL") echo " selected"; echo ">XL</option>\n";
|
||||
echo "\t\t\t\t<option value=\"XXL\""; if ($_POST["Size"]=="XXL") echo " selected"; echo ">XXL</option>\n";
|
||||
echo "\t\t\t</select>\n";
|
||||
echo "\t\t\t</td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Engelart").
|
||||
"</td><td align=\"left\">\n";
|
||||
echo "\t\t\t<select name=\"Art\">\n";
|
||||
echo "\t\t\t\t<option value=\"Konferenz\""; if ($_POST["Art"]=="Konferenz") echo " selected";
|
||||
echo ">Konferenz</option>\n";
|
||||
echo "\t\t\t\t<option value=\"Dokumentation\""; if ($_POST["Art"]=="Dokumentation") echo " selected";
|
||||
echo ">Dokumentation</option>\n";
|
||||
echo "\t\t\t\t<option value=\"Eingang\""; if ($_POST["Art"]=="Eingang") echo " selected";
|
||||
echo ">Eingang</option>\n";
|
||||
echo "\t\t\t\t<option value=\"Schutzengel\""; if ($_POST["Art"]=="Schutzengel") echo " selected";
|
||||
echo ">Schutzengel</option>\n";
|
||||
echo "\t\t\t\t<option value=\"Netzengel\""; if ($_POST["Art"]=="Netzengel") echo " selected";
|
||||
echo ">Netzengel</option>\n";
|
||||
echo "\t\t\t\t<option value=\"Rettung\""; if ($_POST["Art"]=="Rettung") echo " selected";
|
||||
echo ">Rettung</option>\n";
|
||||
echo "\t\t\t\t<option value=\"Verpflegung\""; if ($_POST["Art"]=="Verpflegung") echo " selected";
|
||||
echo ">Verpflegung</option>\n";
|
||||
echo "\t\t\t\t<option value=\"egal\""; if ($_POST["Art"]=="egal") echo " selected";
|
||||
echo ">Egal-Engel</option>\n";
|
||||
echo "\t\t\t</select>\n";
|
||||
echo "\t\t\t</td><td><!--a href=\"https://www.ccc.de/congress/2004/engel.de.html#d5e23\"><img src=\"./pic/external.png\" alt=\"external: \" /> Congress 21C3</a--></td>\n";
|
||||
echo "\t\t\t</tr>\n";
|
||||
echo "\t\t\t<tr>\n";
|
||||
echo "\t\t\t\t<td>". Get_Text("makeuser_text2"). "</td>\n";
|
||||
echo "\t\t\t<td><textarea rows=\"5\" cols=\"40\" name=\"kommentar\">". $_POST["kommentar"]. "</textarea></td>\n";
|
||||
echo "\t\t\t</tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Passwort").
|
||||
"*</td><td><input type=\"password\" size=\"40\" name=\"Passwort\"/></td></tr>\n";
|
||||
echo "\t\t\t<tr><td>". Get_Text("makeuser_Passwort2").
|
||||
"*</td><td><input type=\"password\" size=\"40\" name=\"Passwort2\"/></td></tr>\n";
|
||||
echo "\t\t\t<tr><td> </td><td><input type=\"submit\" name=\"send\" value=\"".
|
||||
Get_Text("makeuser_Anmelden"). "\"/></td></tr>\n";
|
||||
echo "\t\t</table>\n";
|
||||
echo "\t</form>\n";
|
||||
Print_Text("makeuser_text3");
|
||||
|
||||
include ("./inc/footer.php");
|
||||
?>
|
||||
|
|
@ -1,146 +0,0 @@
|
|||
<?PHP
|
||||
$title = "Anmeldung zum Chaos-Engel";
|
||||
$header = "Anmeldung zum Chaos-Engel";
|
||||
include ("./inc/header.php");
|
||||
include ("./inc/db.php");
|
||||
include ("./inc/crypt.php");
|
||||
|
||||
if( $_POST)
|
||||
{
|
||||
$eNick = trim($_POST["Nick"]);
|
||||
if( strlen($_POST["Nick"]) < 2 ) {
|
||||
$error= "Fehler: Nickname '".$_POST["eNick"]."' ist zu kurz gewählt (Mindestens 2 Zeichen).";
|
||||
} elseif( strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == FALSE ) {
|
||||
$error= "Fehler: E-Mail-Adresse ist nicht gültig.";
|
||||
} elseif( $_POST["Passwort"] != $_POST["Passwort2"] ) {
|
||||
$error= "Fehler: Passwörter sind nicht identisch.";
|
||||
} elseif( strlen($_POST["Passwort"]) < 6 ) {
|
||||
$error= "Fehler: Passwort ist zu kurz (Mindestens 6 Zeichen)";
|
||||
} else {
|
||||
$_POST["Passwort"] = PassCrypt($_POST["Passwort"]);
|
||||
unset($_POST["Passwort2"]);
|
||||
|
||||
function mysqlinsert($table, $con, $array)
|
||||
{
|
||||
$keys = "";
|
||||
$values = "";
|
||||
foreach($array as $key => $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?!?<br>";
|
||||
echo "\n<h6>(Fehler: ".mysql_error($con).")</h6>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p class=\"important\">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 "<h1>error: can't save userright... <br><h6>(".mysql_error($con).")</h6></h1>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "userright was saved...<br>";
|
||||
echo "<h1> Your acount was sucsessfull creat, hafe al lot of fun.</h1>";
|
||||
}
|
||||
echo "Vielen Dank für deine Anmeldung.</p><p></p>\n<br><br>";
|
||||
}
|
||||
}
|
||||
if( !isset($error) ){
|
||||
echo "Wenn du dich zum Chaos-Engel anmelden möchtest, fülle bitte folgendes Formular aus: <br>";
|
||||
} else {
|
||||
echo "<p class=\"warning\">\n$error\n</p>";
|
||||
}
|
||||
}
|
||||
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"] = "";
|
||||
}
|
||||
?>
|
||||
|
||||
<h1>Anmeldung zum Chaos-Engel</h1>
|
||||
|
||||
Mit dieser Maske meldet Ihr euch im Engelsystem an. Durch das Engelsystem findet auf dem Congress die Aufgabenverteilung der Engel statt.
|
||||
|
||||
|
||||
<form action="https://<?php echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>" method="post">
|
||||
<table>
|
||||
<tr><td>Nickname*</td><td><input type="text" size="40" name="Nick" value="<?php echo $_POST["Nick"]; ?>"/></td></tr>
|
||||
<tr><td>Nachname</td><td><input type="text" size="40" name="Name" value="<?php echo $_POST["Name"]; ?>"/></td></tr>
|
||||
<tr><td>Vorname</td><td><input type="text" size="40" name="Vorname" value="<?php echo $_POST["Vorname"]; ?>"/></td></tr>
|
||||
<tr><td>Alter</td><td><input type="text" size="40" name="Alter" value="<?php echo $_POST["Alter"]; ?>"/></td></tr>
|
||||
<tr><td>Telefon</td><td><input type="text" size="40" name="Telefon" value="<?php echo $_POST["Telefon"]; ?>"/></td></tr>
|
||||
<tr><td>DECT</td><td><input type="text" size="40" name="DECT" value="<?php echo $_POST["DECT"]; ?>"/></td><td><!--a href="https://21c3.ccc.de/wiki/index.php/POC"><img src="./pic/external.png" alt="external: " /> DECT</a--></td></tr>
|
||||
<tr><td>Handy</td><td><input type="text" size="40" name="Handy" value="<?php echo $_POST["Handy"]; ?>"/></td></tr>
|
||||
<tr><td>E-Mail*</td><td><input type="text" size="40" name="email" value="<?php echo $_POST["email"]; ?>"/></td></tr>
|
||||
<tr><td>T-Shirt Grösse*</td><td align="left">
|
||||
<select name="Size">
|
||||
<option value="S"<?php if ($_POST["Size"]=="S") {echo " selected";}; ?>>S</option>
|
||||
<option value="M"<?php if ($_POST["Size"]=="M") {echo " selected";}; ?>>M</option>
|
||||
<option value="L"<?php if ($_POST["Size"]=="L") {echo " selected";}; ?>>L</option>
|
||||
<option value="XL"<?php if ($_POST["Size"]=="XL") {echo " selected";}; ?>>XL</option>
|
||||
<option value="XXL"<?php if ($_POST["Size"]=="XXL") {echo " selected";}; ?>>XXL</option>
|
||||
</select>
|
||||
</td></tr>
|
||||
<tr><td>Engelart</td><td align="left">
|
||||
<select name="Art">
|
||||
<option value="Konferenz"<?php if ($_POST["Art"]=="Konferenz") {echo " selected";}; ?>>Konferenz</option>
|
||||
<option value="Dokumentation"<?php if ($_POST["Art"]=="Dokumentation") {echo " selected";}; ?>>Dokumentation</option>
|
||||
<option value="Eingang"<?php if ($_POST["Art"]=="Eingang") {echo " selected";}; ?>>Eingang</option>
|
||||
<option value="Schutzengel"<?php if ($_POST["Art"]=="Schutzengel") {echo " selected";}; ?>>Schutzengel</option>
|
||||
<option value="Netzengel"<?php if ($_POST["Art"]=="Netzengel") {echo " selected";}; ?>>Netzengel</option>
|
||||
<option value="Rettung"<?php if ($_POST["Art"]=="Rettung") {echo " selected";}; ?>>Rettung</option>
|
||||
<option value="Verpflegung"<?php if ($_POST["Art"]=="Verpflegung") {echo " selected";}; ?>>Verpflegung</option>
|
||||
<option value="egal"<?php if ($_POST["Art"]=="egal") {echo " selected";}; ?>>Egal-Engel</option>
|
||||
</select>
|
||||
</td><td><!--a href="https://www.ccc.de/congress/2004/engel.de.html#d5e23"><img src="./pic/external.png" alt="external: " /> Congress 21C3</a--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Habt ihr schon einmal am<br />
|
||||
Congress mitgeholfen? <br />
|
||||
Wenn ja, in welchem/<br />
|
||||
welchen Aufgabengebiet(en)?</td>
|
||||
<td><textarea rows="5" cols="40" name="kommentar"><?php echo $_POST["kommentar"]; ?></textarea></td>
|
||||
</tr>
|
||||
<tr><td>Passwort*</td><td><input type="password" size="40" name="Passwort"/></td></tr>
|
||||
<tr><td>Passwort Bestätigung*</td><td><input type="password" size="40" name="Passwort2"/></td></tr>
|
||||
<tr><td> </td><td><input type="submit" value="Anmelden..."/></td></tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
* Dieser Eintrag ist eine Pflichtangabe.
|
||||
<?php
|
||||
include ("./inc/footer.php");
|
||||
?>
|
||||
|
|
@ -1,146 +0,0 @@
|
|||
<?PHP
|
||||
$title = "Chaos-Angel Registration";
|
||||
$header = "Chaos-Angel Registration";
|
||||
include ("./inc/header.php");
|
||||
include ("./inc/db.php");
|
||||
include ("./inc/crypt.php");
|
||||
|
||||
if( $_POST)
|
||||
{
|
||||
$eNick = trim($_POST["Nick"]);
|
||||
if( strlen($_POST["Nick"]) < 2 ) {
|
||||
$error= "error: your nick '".$_POST["Nick"]."' is to short (min. 2 characters)";
|
||||
} elseif( strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == FALSE ) {
|
||||
$error= "error: e-mail address is not correct";
|
||||
} elseif( $_POST["Passwort"] != $_POST["Passwort2"] ) {
|
||||
$error= "error: your passswords are not identical";
|
||||
} elseif( strlen($_POST["Passwort"]) < 6 ) {
|
||||
$error= "error: your password is to short (min. 6 characters)";
|
||||
} else {
|
||||
$_POST["Passwort"] = PassCrypt($_POST["Passwort"]);
|
||||
unset($_POST["Passwort2"]);
|
||||
|
||||
function mysqlinsert($table, $con, $array)
|
||||
{
|
||||
$keys = "";
|
||||
$values = "";
|
||||
foreach($array as $key => $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...<br>";
|
||||
echo "<h6>(error: ".mysql_error($con).")</h6>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p class=\"important\">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 "<h1>error: can't save userright... <br><h6>(".mysql_error($con).")</h6></h1>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "userright was saved...<br>";
|
||||
echo "<h1>Your acount was successfuly created, hafe al lot of fun.</h1>";
|
||||
}
|
||||
echo "Thank you for your participation..</p><p></p>\n<br><br>";
|
||||
}
|
||||
}
|
||||
if( !isset($error) ){
|
||||
echo "If you would like to be an chaos angel please insert following details into this form: <br>";
|
||||
} else {
|
||||
echo "<p class=\"warning\">\n$error\n</p>";
|
||||
}
|
||||
}
|
||||
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"] = "";
|
||||
}
|
||||
?>
|
||||
|
||||
<h1>Chaos-Angel registration</h1>
|
||||
|
||||
By completing this form you're registering as a Chaos-Angel. This script will create you an account in the congress angel task system.
|
||||
|
||||
<form action="https://<?php echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>" method="post">
|
||||
<table>
|
||||
<tr><td>nick*</td><td><input type="text" size="40" name="Nick" value="<?php echo $_POST["Nick"]; ?>"/></td></tr>
|
||||
<tr><td>last name</td><td><input type="text" size="40" name="Name" value="<?php echo $_POST["Name"]; ?>"/></td></tr>
|
||||
<tr><td>first name</td><td><input type="text" size="40" name="Vorname" value="<?php echo $_POST["Vorname"]; ?>"/></td></tr>
|
||||
<tr><td>age</td><td><input type="text" size="40" name="Alter" value="<?php echo $_POST["Alter"]; ?>"/></td></tr>
|
||||
<tr><td>phone</td><td><input type="text" size="40" name="Telefon" value="<?php echo $_POST["Telefon"]; ?>"/></td></tr>
|
||||
<tr><td>DECT</td><td><input type="text" size="40" name="DECT" value="<?php echo $_POST["DECT"]; ?>"/></td><td><!--a href="https://21c3.ccc.de/wiki/index.php/POC"><img src="./pic/external.png" alt="external: " /> DECT</a--></td></tr>
|
||||
<tr><td>mobile</td><td><input type="text" size="40" name="Handy" value="<?php echo $_POST["Handy"]; ?>"/></td></tr>
|
||||
<tr><td>e-mail*</td><td><input type="text" size="40" name="email" value="<?php echo $_POST["email"]; ?>"/></td></tr>
|
||||
<tr><td>shirt size*</td><td align="left">
|
||||
<select name="Size">
|
||||
<option value="S"<?php if ($_POST["Size"]=="S") {echo " selected";}; ?>>S</option>
|
||||
<option value="M"<?php if ($_POST["Size"]=="M") {echo " selected";}; ?>>M</option>
|
||||
<option value="L"<?php if ($_POST["Size"]=="L") {echo " selected";}; ?>>L</option>
|
||||
<option value="XL"<?php if ($_POST["Size"]=="XL") {echo " selected";}; ?>>XL</option>
|
||||
<option value="XXL"<?php if ($_POST["Size"]=="XXL") {echo " selected";}; ?>>XXL</option>
|
||||
</select>
|
||||
</td></tr>
|
||||
<tr><td>type of angel</td><td align="left">
|
||||
<select name="Art">
|
||||
<option value="Konferenz"<?php if ($_POST["Art"]=="Konferenz") {echo " selected";}; ?>>Conference</option>
|
||||
<option value="Dokumentation"<?php if ($_POST["Art"]=="Dokumentation") {echo " selected";}; ?>>Documentation</option>
|
||||
<option value="Eingang"<?php if ($_POST["Art"]=="Eingang") {echo " selected";}; ?>>Entrance</option>
|
||||
<option value="Schutzengel"<?php if ($_POST["Art"]=="Schutzengel") {echo " selected";}; ?>>Guardian Angel</option>
|
||||
<option value="Netzengel"<?php if ($_POST["Art"]=="Netzengel") {echo " selected";}; ?>>Netangels</option>
|
||||
<option value="Rettung"<?php if ($_POST["Art"]=="Rettung") {echo " selected";}; ?>>Rescue</option>
|
||||
<option value="Verpflegung"<?php if ($_POST["Art"]=="Verpflegung") {echo " selected";}; ?>>Catering</option>
|
||||
<option value="egal"<?php if ($_POST["Art"]=="egal") {echo " selected";}; ?>>any kind</option>
|
||||
</select>
|
||||
</td><td><!--a href="https://www.ccc.de/congress/2005/engel.en.html#d5e75"><img src="./pic/external.png" alt="external: " /> Congress 21C3</a--></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
Did you help at former <br />
|
||||
congresses and which tasks <br />
|
||||
have you performed then? <br />
|
||||
</td>
|
||||
<td><textarea rows="5" cols="40" name="kommentar"><?php echo $_POST["kommentar"]; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>password*</td><td><input type="password" size="40" name="Passwort"/></td></tr>
|
||||
<tr><td>password confirm*</td><td><input type="password" size="40" name="Passwort2"/></td></tr>
|
||||
<tr><td> </td><td><input type="submit" value="register me..."/></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
* entry required!
|
||||
|
||||
<?php
|
||||
include ("./inc/footer.php");
|
||||
?>
|
||||
|
Loading…
Reference in New Issue