From 276b32c98b1792dd35ba154cc4e6954be266c280 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 29 Aug 2006 10:21:50 +0000 Subject: [PATCH] ICQ und jabber zu den user daten hinzugefuegt git-svn-id: svn://svn.cccv.de/engel-system@142 29ba0400-6e00-0410-a75a-ca02368028f8 --- DB/change_db_to_v142.sql | 2 ++ www-ssl/admin/user.php | 14 +++++++++++++- www-ssl/admin/user2.php | 2 ++ www-ssl/makeuser.php | 6 ++++++ www-ssl/nonpublic/einstellungen.php | 16 ++++++++++++---- www-ssl/nonpublic/index.php | 2 ++ 6 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 DB/change_db_to_v142.sql diff --git a/DB/change_db_to_v142.sql b/DB/change_db_to_v142.sql new file mode 100644 index 00000000..5e95be9e --- /dev/null +++ b/DB/change_db_to_v142.sql @@ -0,0 +1,2 @@ +ALTER TABLE `User` ADD `ICQ` VARCHAR( 30 ) NULL AFTER `email` , ADD `jabber` VARCHAR( 200 ) NULL AFTER `ICQ` ; + diff --git a/www-ssl/admin/user.php b/www-ssl/admin/user.php index 403c10ee..78701538 100755 --- a/www-ssl/admin/user.php +++ b/www-ssl/admin/user.php @@ -35,7 +35,9 @@ if (!IsSet($_GET["enterUID"])) ?OrderBy=DECT">DECT | ?OrderBy=Hometown">Hometown | ?OrderBy=lastLogIn">lastLogIn | - ?OrderBy=Art">Type + ?OrderBy=Art">Type | + ?OrderBy=ICQ">ICQ | + ?OrderBy=jabber">jabber ?OrderBy=Size">Größe ?OrderBy=Gekommen">G @@ -74,6 +76,10 @@ if (!IsSet($_GET["enterUID"])) echo "\n\t\tlastLogIn: ". mysql_result($Erg, $n, "lastLogIn"). "
"; if( strlen( mysql_result($Erg, $n, "Art"))>0) echo "\n\t\tType: ". mysql_result($Erg, $n, "Art"). "
"; + if( strlen( mysql_result($Erg, $n, "ICQ"))>0) + echo "\n\t\tICQ: ". mysql_result($Erg, $n, "ICQ"). "
"; + if( strlen( mysql_result($Erg, $n, "jabber"))>0) + echo "\n\t\tjabber: ". mysql_result($Erg, $n, "jabber"). "
"; echo "\n"; echo "\t".mysql_result($Erg, $n, "Size")."\n"; $Gekommen += mysql_result($Erg, $n, "Gekommen"); @@ -161,6 +167,12 @@ else echo " email". "\n"; + echo " ICQ". + "\n"; + echo " jabber". + "\n"; echo " Size". "\n"; diff --git a/www-ssl/admin/user2.php b/www-ssl/admin/user2.php index 8631ade2..131f544c 100755 --- a/www-ssl/admin/user2.php +++ b/www-ssl/admin/user2.php @@ -26,6 +26,8 @@ if (IsSet($_GET["action"])) "`Handy` = '". $_POST["eHandy"]. "', ". "`DECT` = '". $_POST["eDECT"]. "', ". "`email` = '". $_POST["eemail"]. "', ". + "`ICQ` = '". $_POST["eICQ"]. "', ". + "`jabber` = '". $_POST["ejabber"]. "', ". "`Size` = '". $_POST["eSize"]. "', ". "`Gekommen`= '". $_POST["eGekommen"]. "', ". "`Aktiv`= '". $_POST["eAktiv"]. "', ". diff --git a/www-ssl/makeuser.php b/www-ssl/makeuser.php index 9997b787..43f71dd1 100755 --- a/www-ssl/makeuser.php +++ b/www-ssl/makeuser.php @@ -50,6 +50,7 @@ if( isset($_POST["send"])) "`Vorname`, ". "`Alter` , ". "`Telefon`, ". "`DECT`, ". "`Handy`, ". "`email`, ". + "`ICQ`, ". "`jabber`, ". "`Size`, ". "`Passwort`, ". "`Art` , ". "`kommentar`, ". "`Hometown` ) ". @@ -58,6 +59,7 @@ if( isset($_POST["send"])) "'". $_POST["Vorname"]. "', ". $_POST["Alter"]. ", ". "'". $_POST["Telefon"]. "', ". "'". $_POST["DECT"]. "', ". "'". $_POST["Handy"]. "', ". "'". $_POST["email"]. "', ". + "'". $_POST["ICQ"]. "', ". "'". $_POST["jabber"]. "', ". "'". $_POST["Size"]. "', ". "'". $_POST["Passwort"]. "', ". "'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "', ". "'". $_POST["Hometown"]. "' );"; @@ -107,6 +109,8 @@ else $_POST["DECT"] = ""; $_POST["Handy"] = ""; $_POST["email"] = ""; + $_POST["ICQ"] = ""; + $_POST["jabber"] = ""; $_POST["Size"] = ""; $_POST["Art"] = ""; $_POST["kommentar"] = ""; @@ -133,6 +137,8 @@ echo "\t\t\t". Get_Text("makeuser_Handy"). "\n"; echo "\t\t\t". Get_Text("makeuser_E-Mail"). "*\n"; +echo "\t\t\tICQ\n"; +echo "\t\t\tjabber\n"; echo "\t\t\t". Get_Text("makeuser_T-Shirt"). " Grösse*\n"; echo "\t\t\t + ICQ + + jabber + @@ -199,10 +203,12 @@ case 'avatar': case 'setUserData': $chsql= "UPDATE User SET ". - "`Nick`='". $_POST["eNick"]. "', `Name`='". $_POST["eName"]. "', ". - "`Vorname`='". $_POST["eVorname"]. "', `Alter`='". $_POST["eAlter"]. "', ". - "`Telefon`='". $_POST["eTelefon"]. "', `Handy`='". $_POST["eHandy"]. "', ". - "`DECT`='". $_POST["eDECT"]. "', `email`='". $_POST["eemail"]. "', `Hometown`='". $_POST["Hometown"]. "' ". + "`Nick`='". $_POST["eNick"]. "', `Name`='". $_POST["eName"]. "', ". + "`Vorname`='". $_POST["eVorname"]. "', `Alter`='". $_POST["eAlter"]. "', ". + "`Telefon`='". $_POST["eTelefon"]. "', `Handy`='". $_POST["eHandy"]. "', ". + "`DECT`='". $_POST["eDECT"]. "', `email`='". $_POST["eemail"]. "', ". + "`ICQ`='". $_POST["eICQ"]. "', `jabber`='". $_POST["ejabber"]."', ". + "`Hometown`='". $_POST["Hometown"]. "' ". "WHERE UID='". $_SESSION['UID']. "' LIMIT 1;"; $Erg = mysql_query($chsql, $con); @@ -216,6 +222,8 @@ case 'setUserData': $_SESSION['Handy'] = $_POST["eHandy"]; $_SESSION['DECT'] = $_POST["eDECT"]; $_SESSION['email'] = $_POST["eemail"]; + $_SESSION['ICQ'] = $_POST["eICQ"]; + $_SESSION['jabber'] = $_POST["ejabber"]; $_SESSION['Hometown'] = $_POST["Hometown"]; Print_Text("pub_einstellungen_UserDateSaved"); diff --git a/www-ssl/nonpublic/index.php b/www-ssl/nonpublic/index.php index b1767118..2c8b18a1 100755 --- a/www-ssl/nonpublic/index.php +++ b/www-ssl/nonpublic/index.php @@ -40,6 +40,8 @@ else $_SESSION['Handy'] = mysql_result($userstring, 0, "Handy"); $_SESSION['DECT'] = mysql_result($userstring, 0, "DECT"); $_SESSION['email'] = mysql_result($userstring, 0, "email"); + $_SESSION['ICQ'] = mysql_result($userstring, 0, "ICQ"); + $_SESSION['jabber'] = mysql_result($userstring, 0, "jabber"); $_SESSION['Size'] = mysql_result($userstring, 0, "Size"); $_SESSION['Gekommen'] = mysql_result($userstring, 0, "Gekommen"); $_SESSION['Aktiv'] = mysql_result($userstring, 0, "Aktiv");