diff --git a/ag/char.php b/ag/char.php
index f896c50..e384940 100644
--- a/ag/char.php
+++ b/ag/char.php
@@ -28,10 +28,7 @@ $char_bild = validateURL($_GET['char_bild']);
$char_lvl = validateInteger($_GET['char_lvl'], NULL);
// Unkritisch
-if($_POST['charm'] === NULL) {
- $charm = $_GET['charm'];
-} else
- $charm = $_POST['charm'];
+$charm = $_REQUEST['charm'];
$char_type = $_GET['char_type'];
?>
@@ -345,7 +342,8 @@ if ($anzahl_charactere < $chars_max) {
} else if($charm == 3) {
handleThirdPhaseForTester($char_1_type, $char_name, $char_lvl);
} else if($charm == 4) {
- handleErstelleCharRequestOfTestUser($user_ida, $_POST['char_type'], $_POST['char_name'], $_POST['char_bild'], $_POST['lvl'], $_POST['lp'], $_POST['hp'], $_POST['mp'], $_POST['str'], $_POST['def'], $_POST['spd'], $_POST['end'], $_POST['lck']);
+ handleErstelleCharRequestOfTestUser($user_ida, $_REQUEST['char_type'], $_REQUEST['char_name'], $_REQUEST['char_bild'], $_REQUEST['lvl'], $_REQUEST['lp'],
+ $_REQUEST['hp'], $_REQUEST['mp'], $_REQUEST['str'], $_REQUEST['def'], $_REQUEST['spd'], $_REQUEST['end'], $_REQUEST['lck']);
}
} else {
echo 'Du hast bereits die maximal mögliche Menge an Characteren erstellt, die du erstellen kannst.
Nämlich '.$anzahl_charactere.' von '.$chars_max.' Charaktere.';
diff --git a/ag/gm/include/user.inc.php b/ag/gm/include/user.inc.php
index 9432de7..8e47917 100644
--- a/ag/gm/include/user.inc.php
+++ b/ag/gm/include/user.inc.php
@@ -35,26 +35,27 @@ function getOtherUserGroups($user) {
}
function displayUserGroups($action, $name, $ugname, $delete, $add) {
- if($action === 'search') {
+ if($action === 'search') {
$username = validateName($name);
- if ($delete !== NULL && $delete >= 0) {
- $qry = 'DELETE FROM user_gruppe_zuordnung WHERE user_id in (SELECT id FROM user WHERE nickname = \''.$username.
+ if($username !== NULL) {
+ if ($delete !== NULL && $delete >= 0) {
+ $qry = 'DELETE FROM user_gruppe_zuordnung WHERE user_id in (SELECT id FROM user WHERE nickname = \''.$username.
'\') AND gruppen_id = '.$delete.';';
- mysql_query($qry);
- } else if($add !== NULL && $add >= 0) {
- $qry = 'INSERT INTO user_gruppe_zuordnung(user_id, gruppen_id)
+ mysql_query($qry);
+ } else if($add !== NULL && $add >= 0) {
+ $qry = 'INSERT INTO user_gruppe_zuordnung(user_id, gruppen_id)
VALUES((SELECT id FROM user WHERE nickname = \''.$username.'\'), '.$add.');';
- mysql_query($qry);
- }
+ mysql_query($qry);
+ }
- $usergroups = getUserGroups($username);
- $notusergroups = getOtherUserGroups($username);
+ $usergroups = getUserGroups($username);
+ $notusergroups = getOtherUserGroups($username);
- ?>
+ ?>
- Technik System |
- |
- | mal im Kampf - eingesetzt. | -