} break; } } } else { $content .= SEC_loginRequiredForm(); $view = 'none'; } break; case 'savebillto': case 'saveshipto': $addr_type = substr($action, 4); // get 'billto' or 'shipto' USES_paypal_class_userinfo(); USES_paypal_class_workflow(); $status = ppUserInfo::isValidAddress($_POST); if ($status != '') { $content .= PAYPAL_errMsg($status, $LANG_PP['invalid_form']); $view = $addr_type; break; } $U = new ppUserInfo(); if ($U->uid > 1) { $addr_id = $U->SaveAddress($_POST, $addr_type); if ($addr_id[0] < 0) { if (!empty($addr_id[1])) { $content .= PAYPAL_errorMessage($addr_id[1], 'alert', $LANG_PP['missing_fields']); } $view = $addr_type; break; } else {