From 8b5f8b256c9a54e6e6feb225e46d72a94ecb5495 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 22 Nov 2005 20:05:44 +0000 Subject: [PATCH] feld hometown eingefuegt git-svn-id: svn://svn.cccv.de/engel-system@85 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/makeuser.php | 9 +++++++-- www-ssl/nonpublic/einstellungen.php | 5 ++++- www-ssl/nonpublic/index.php | 1 + 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\n"; echo "\t\t\t\t". Get_Text("makeuser_text2"). "\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; +echo "\t\t\t". Get_Text("makeuser_Hometown"). + "\n"; echo "\t\t\t". Get_Text("makeuser_Passwort"). "*\n"; echo "\t\t\t". 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"])) + + "> @@ -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