header('Location: module.php?action=get&nodeId=' . $node->data['id'] . '&slotId=' . $_GET['slotId']); } else { $message = $ui[$status]; } } else { header('Location: module.php?action=get&nodeId=' . $node->data['id'] . '&slotId=' . $_GET['slotId']); } } } else { $message = $ui['featureDisabled']; } break; case 'removeComponent': if ($flags['craft']) { if (isset($_GET['componentId'], $_POST['quantity'])) { $status = $node->removeComponent($_GET['componentId'], $_POST['quantity'], $node->modules[$_GET['slotId']]['module']); if ($status == 'done') { header('Location: module.php?action=get&nodeId=' . $node->data['id'] . '&slotId=' . $_GET['slotId']); } else { $message = $ui[$status]; } } } else { $message = $ui['featureDisabled']; } break; case 'cancelComponent': if (isset($_GET['craftId'])) { $status = $node->cancelComponent($_GET['craftId'], $node->modules[$_GET['slotId']]['module']); if ($status == 'done') { header('Location: module.php?action=get&nodeId=' . $node->data['id'] . '&slotId=' . $_GET['slotId']);