summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwww-ssl/admin/user.php12
-rwxr-xr-xwww-ssl/admin/user2.php5
-rwxr-xr-xwww-ssl/nonpublic/einstellungen.php15
-rwxr-xr-xwww-ssl/nonpublic/index.php1
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 "</td></tr>\n";
+
+ // Menu links/rechts
+ echo " <tr><td>Menu</td><td>\n";
+ echo " <input type=\"radio\" name=\"eMenu\" value=\"L\"";
+ if (mysql_result($Erg, 0, "Menu")=='L')
+ echo " checked";
+ echo ">L \n";
+ echo " <input type=\"radio\" name=\"eMenu\" value=\"R\"";
+ if (mysql_result($Erg, 0, "Menu")=='R')
+ echo " checked";
+ echo ">R \n";
+ echo "</td></tr>\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 "&Auml;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"]))
<option <?php if($_SESSION['color'] == 9) { echo "selected"; } ?> value="9">Test Style 21c3 </option>
</select>
</td></tr>
+ <tr><td>Menu</td>
+ <td><input type="radio" name="eMenu" value="L"<?
+ if ($_SESSION['Menu']=='L') echo " checked"; ?>>L
+ <input type="radio" name="eMenu" value="R"<?
+ if ($_SESSION['Menu']=='R') echo " checked"; ?>>R
+ </td></tr>
</table>
<input type="submit" value="<?PHP Print_Text("save"); ?>">
</form>
@@ -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");