} elseif ($step == 6) {
    $regionID = $eve->VarCleanFromInput('regionID');
    $solarSystemID = $eve->VarCleanFromInput('solarSystemID');
    $constellationID = $eve->VarCleanFromInput('constellationID');
    $pos_size = $eve->VarCleanFromInput('pos_size');
    $pos_race = $eve->VarCleanFromInput('pos_race');
    //$system           = $eve->VarCleanFromInput('solarSystemID');
    $sovereignity = $eve->VarCleanFromInput('sovereignity');
    $fuelblock = $eve->VarCleanFromInput('fuelblock');
    $charters = $eve->VarCleanFromInput('charters');
    $strontium = $eve->VarCleanFromInput('strontium');
    $struct_amount = $eve->VarCleanFromInput('struct_amount');
    $status = $eve->VarCleanFromInput('status');
    $towerName = $eve->VarCleanFromInput('towerName');
    $moonID = $eve->VarCleanFromInput('moonID');
    $statictower = $posmgmt->GetTowerTypeID(array('pos_size' => $pos_size, 'pos_race' => $pos_race));
    $typeID = $statictower['typeID'];
    $evetowerID = null;
    $corp = $userinfo['corp'];
    $allianceid = $userinfo['allianceID'];
    $systemID = $solarSystemID;
    $charters_needed = 0;
    $pos_status = $status;
    $args = array('pos_size' => $pos_size, 'typeID' => $typeID, 'corp' => $userinfo['corp'], 'allianceid' => $allianceid, 'pos_race' => $pos_race, 'system' => $system, 'sovereignity' => !$sovereignity ? 0 : 1, 'fuelblock' => $fuelblock, 'charters' => $charters, 'strontium' => $strontium, 'owner_id' => $userinfo['id'], 'status' => $status, 'towerName' => $towerName, 'systemID' => $systemID, 'moonID' => $moonID, 'pos_status' => $pos_status, 'systemID' => $solarSystemID);
    if (!($pos_id = $posmgmt->AddNewPOS($args))) {
        $eve->RedirectUrl('addpos.php');
    }
    $eve->SessionSetVar('statusmsg', 'POS Added!');
    $eve->RedirectUrl('addstructure.php?i=' . $pos_id);
}
$regions = $posmgmt->GetInstalledRegions();