Settings > Modules) if (!moduleOn('bookkeeping')) { http_response_code(403); echo json_encode(['success' => 'False', 'message' => moduleOffText('bookkeeping')]); exit(); } $update_count = false; $account_id = intval($_POST['account_id'] ?? 0); if ($account_id && accountRow($account_id)) { require_once '../form_input.php'; $error = ''; $row = accountArchive($account_id, $error); if (!$row) { apiFormRefuse($error); } $update_count = 1; $name = escapeSql($row['account_name']); logAudit("Account", "Archive", "Archived account $name via API ($api_key_name)", 0, $account_id); logAudit("API", "Success", "Archived account $name via API ($api_key_name)", 0); } // Output require_once '../update_output.php';