%Option Explicit%> <% ShopCheckAdmin "" '************************************************************* ' Version 6.50 ' view UPS Realtime license screen ' Sept 13 2005 '*************************************************************** Dim agreeaction, declineaction dim result, xmlerror, UPSLicense dim xmlString agreeaction=Request("agree") declineaction=Request("decline") AdminPageHeader ShopOpenDatabase myconn GenerateDisplayHeader "UPS Online® Tools Licensing and Registration Wizard - Step 3" GenerateDisplayBodyHeader If agreeaction="" and declineaction="" Then DisplayForm else ProcessUserAction end if GenerateDisplayBodyFooter ShopCloseDatabase myconn AdminPageTrailer SUB ProcessUserAction if agreeaction > "" then 'SendToUPS AddFormToSession AccessLicenseRequest if Statuscode = 1 then AddUPSAccessKeyToConfig setsess "upsaccountno", request("upsaccountno") RegistrationRequest if statuscode = 1 then AddUPSUserDataToConfig AddUPSToShipMethods AddMerchantInfoToConfig Shopclosedatabase myconn responseredirect "shopa_ups_license_4.asp" else Shopclosedatabase myconn LicenseError end if else Shopclosedatabase myconn LicenseError end if else Shopclosedatabase myconn responseredirect "shopa_editshipping.asp" end if end sub Sub DisplayForm %>
|