summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl')
-rwxr-xr-xwww-ssl/makeuser.php9
-rwxr-xr-xwww-ssl/nonpublic/einstellungen.php5
-rwxr-xr-xwww-ssl/nonpublic/index.php1
3 files changed, 12 insertions, 3 deletions
diff --git a/www-ssl/makeuser.php b/www-ssl/makeuser.php
index 80b4b12b..7b17836d 100755
--- a/www-ssl/makeuser.php
+++ b/www-ssl/makeuser.php
@@ -47,14 +47,16 @@ if( isset($_POST["send"]))
"`Telefon`, ". "`DECT`, ".
"`Handy`, ". "`email`, ".
"`Size`, ". "`Passwort`, ".
- "`Art` , ". "`kommentar` ) ".
+ "`Art` , ". "`kommentar`, ".
+ "`Hometown` ) ".
"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"]. "' );";
+ "'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "', ".
+ "'". $_POST["Hometown"]. "' );";
$Erg = mysql_query($SQL, $con);
if ($Erg != 1)
@@ -104,6 +106,7 @@ else
$_POST["Size"] = "";
$_POST["Art"] = "";
$_POST["kommentar"] = "";
+ $_POST["Hometown"] = "";
}
Print_Text("makeuser_text1");
@@ -163,6 +166,8 @@ 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_Hometown").
+ "</td><td><input type=\"text\" size=\"40\" name=\"Hometown\" value=\"". $_POST["Hometown"]. "\"></td></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").
diff --git a/www-ssl/nonpublic/einstellungen.php b/www-ssl/nonpublic/einstellungen.php
index 64b8d321..974ed7cd 100755
--- a/www-ssl/nonpublic/einstellungen.php
+++ b/www-ssl/nonpublic/einstellungen.php
@@ -30,6 +30,8 @@ if (!IsSet($_POST["action"]))
<td><input type="text" name="eDECT" size="4" value="<? echo $_SESSION['DECT']; ?>"></td></tr>
<tr> <td><? Print_Text("pub_einstellungen_email"); ?></td>
<td><input type="text" name="eemail" size="40" value="<? echo $_SESSION['email']; ?>"></td></tr>
+ <tr> <td><? Print_Text("pub_einstellungen_Hometown"); ?></td>
+ <td><input type="text" name="Hometown" size="40" value="<? echo $_SESSION['Hometown']; ?>"></td></tr>
</table>
<input type="submit" value="<?PHP Print_Text("save"); ?>">
</form>
@@ -215,7 +217,7 @@ case 'setUserData':
"`Nick`='". $_POST["eNick"]. "', `Name`='". $_POST["eName"]. "', ".
"`Vorname`='". $_POST["eVorname"]. "', `Alter`='". $_POST["eAlter"]. "', ".
"`Telefon`='". $_POST["eTelefon"]. "', `Handy`='". $_POST["eHandy"]. "', ".
- "`DECT`='". $_POST["eDECT"]. "', `email`='". $_POST["eemail"]. "' ".
+ "`DECT`='". $_POST["eDECT"]. "', `email`='". $_POST["eemail"]. "', `Hometown`='". $_POST["Hometown"]. "' ".
"WHERE UID='". $_SESSION['UID']. "' LIMIT 1;";
$Erg = mysql_query($chsql, $con);
@@ -229,6 +231,7 @@ case 'setUserData':
$_SESSION['Handy'] = $_POST["eHandy"];
$_SESSION['DECT'] = $_POST["eDECT"];
$_SESSION['email'] = $_POST["eemail"];
+ $_SESSION['Hometown'] = $_POST["Hometown"];
Print_Text("pub_einstellungen_UserDateSaved");
}
diff --git a/www-ssl/nonpublic/index.php b/www-ssl/nonpublic/index.php
index 5e5b081f..dc3e8ae2 100755
--- a/www-ssl/nonpublic/index.php
+++ b/www-ssl/nonpublic/index.php
@@ -48,6 +48,7 @@ else
$_SESSION['color'] = mysql_result($userstring, 0, "color");
$_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar");
$_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache");
+ $_SESSION['Hometown'] = mysql_result($userstring, 0, "Hometown");
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
// CVS import Data