case 'fromPlayerRemove': $array = $_POST['deleteUserPerm']; if (!$array) { header("location: index.php?player=" . $_POST['user'] . "&error=101"); die; } $pexinator->connect(); foreach ($array as $key => $value) { $value = mysql_real_escape_string($value); $delete_query = mysql_query("DELETE FROM permissions WHERE id={$value}"); } $pexinator->disconnect(); if ($delete_query) { header("location: index.php?player=" . $_POST['user'] . "&success"); if ($pexinator->getSetting('wsEnabled') == 'true') { $server->pexReload(); } } else { header("location: index.php?player=" . $_POST['user'] . "&error=102"); } break; /////////////////////////////////////////////// /////////////////////////////////////////////// case 'fromPlayerAdd': $pexinator->connect(); $player = mysql_real_escape_string(trim($_POST['user'])); $node = mysql_real_escape_string(trim($_POST['node'])); $world = mysql_real_escape_string(trim($_POST['world'])); if (!$player || !$node) { header("location: index.php?player=" . $_POST['user'] . "&error=201"); die;