From 375d4143d1f5f8ad2c39597160fa1d0282e322ae Mon Sep 17 00:00:00 2001 From: cookie Date: Mon, 21 Nov 2005 18:34:30 +0000 Subject: [PATCH] auswahl ob menu links oder rechst hinzugefuegt git-svn-id: svn://svn.cccv.de/engel-system@75 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/user.php | 12 ++++++++++++ www-ssl/admin/user2.php | 5 +++-- www-ssl/nonpublic/einstellungen.php | 15 ++++++++++++--- www-ssl/nonpublic/index.php | 1 + 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/www-ssl/admin/user.php b/www-ssl/admin/user.php index 2a886e23..7b7b2949 100755 --- a/www-ssl/admin/user.php +++ b/www-ssl/admin/user.php @@ -195,6 +195,18 @@ else echo " checked"; echo ">Yes \n"; echo "\n"; + + // Menu links/rechts + echo " Menu\n"; + echo " L \n"; + echo " R \n"; + echo "\n"; } //IF TYPE } if( $_GET["Type"] == "Secure" ) diff --git a/www-ssl/admin/user2.php b/www-ssl/admin/user2.php index d4daaf23..36588457 100755 --- a/www-ssl/admin/user2.php +++ b/www-ssl/admin/user2.php @@ -17,7 +17,7 @@ if (IsSet($_GET["action"])) if ($Erg == 1) { echo "Änderung wurde gesichert...\n"; } else { - echo "Fehler beim speichern...\n"; + echo "Fehler beim speichern...\n(". mysql_error($con). ")"; } } @@ -42,7 +42,8 @@ if (IsSet($_GET["action"])) "`Size` = '". $_POST["eSize"]. "', ". "`Gekommen`= '". $_POST["eGekommen"]. "', ". "`Aktiv`= '". $_POST["eAktiv"]. "', ". - "`Tshirt` = '". $_POST["eTshirt"]. "' ". + "`Tshirt` = '". $_POST["eTshirt"]. "', ". + "`Menu` = '". $_POST["eMenu"]. "' ". "WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;"; echo "User-"; diff --git a/www-ssl/nonpublic/einstellungen.php b/www-ssl/nonpublic/einstellungen.php index 4c9bd721..64b8d321 100755 --- a/www-ssl/nonpublic/einstellungen.php +++ b/www-ssl/nonpublic/einstellungen.php @@ -70,6 +70,12 @@ if (!IsSet($_POST["action"])) + Menu + >L + >R + "> @@ -166,15 +172,19 @@ case 'set': case 'colour': - $chsql="Update User set color= \"". $_POST["colourid"]. "\" where UID = \"".$_SESSION['UID']."\" limit 1"; + $chsql="Update User set ". + "`color` = \"". $_POST["colourid"]. "\", ". + "`Menu`= \"". $_POST["eMenu"]. "\" ". + "where UID = \"".$_SESSION['UID']."\" limit 1"; $Erg = mysql_query($chsql, $con); + echo mysql_error($con); $_SESSION['color']=$_POST["colourid"]; + $_SESSION['Menu']=$_POST["eMenu"]; if ($Erg==1) { Print_Text(32); } else { Print_Text(29); } - break; case 'sprache': @@ -187,7 +197,6 @@ case 'sprache': } else { Print_Text(29); } - break; case 'avatar': diff --git a/www-ssl/nonpublic/index.php b/www-ssl/nonpublic/index.php index d50ba044..5e5b081f 100755 --- a/www-ssl/nonpublic/index.php +++ b/www-ssl/nonpublic/index.php @@ -44,6 +44,7 @@ else $_SESSION['Gekommen'] = mysql_result($userstring, 0, "Gekommen"); $_SESSION['Aktiv'] = mysql_result($userstring, 0, "Aktiv"); $_SESSION['Tshirt'] = mysql_result($userstring, 0, "Tshirt"); + $_SESSION['Menu'] = mysql_result($userstring, 0, "Menu"); $_SESSION['color'] = mysql_result($userstring, 0, "color"); $_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar"); $_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache");