@@ 12-18 (lines=7) @@ | ||
9 | if (isset($_POST['editType'])) { |
|
10 | if (formtoken::validateToken($_POST)) { |
|
11 | switch ($_POST['editType']) { |
|
12 | case 'civ_inv': |
|
13 | $civ_gear_value = $_POST['civ_inv_value']; |
|
14 | $update = "UPDATE `players` SET civ_gear = '$civ_gear_value' WHERE `uid` = '$uID';"; |
|
15 | $result_of_query = $db_link->query($update); |
|
16 | logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['civ'].' '.$lang['inventory'], 1); |
|
17 | message($lang['edited'].' '.$lang['civ'].' '.$lang['inventory']); |
|
18 | break; |
|
19 | ||
20 | case 'cop_inv': |
|
21 | $cop_gear_value = $_POST['cop_inv_value']; |
|
@@ 20-26 (lines=7) @@ | ||
17 | message($lang['edited'].' '.$lang['civ'].' '.$lang['inventory']); |
|
18 | break; |
|
19 | ||
20 | case 'cop_inv': |
|
21 | $cop_gear_value = $_POST['cop_inv_value']; |
|
22 | $update = "UPDATE `players` SET cop_gear = '$cop_gear_value' WHERE `uid` = '$uID';"; |
|
23 | $result_of_query = $db_link->query($update); |
|
24 | logAction($_SESSION['user_name'], $lang['edited'].' '.nameID($player->playerid, $db_link).'('.$player->playerid.') '.$lang['cop'].' '.$lang['inventory'], 1); |
|
25 | message($lang['edited'].' '.$lang['cop'].' '.$lang['inventory']); |
|
26 | break; |
|
27 | ||
28 | case 'med_inv': |
|
29 | $med_gear_value = $_POST['med_inv_value']; |