Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
5.5 KiB

  1. <%@ CODEPAGE=65001 'UTF-8%>
  2. <%' certlynx.asp - (CERT)srv web - (LYNX) adapter page
  3. ' Copyright (C) Microsoft Corporation, 1998 - 1999 %>
  4. <!-- #include FILE=certsbrt.inc -->
  5. <!-- #include FILE=certdat.inc -->
  6. <%bIncludeTemplateCode=True%>
  7. <!-- #include FILE=certsgcl.inc -->
  8. <%
  9. ' This page redirects queries that come from Text-only browsers
  10. '-----------------------------------------------------------------
  11. ' Strings to be localized
  12. Const L_CertOK_Message="The certificate request passes basic validity tests. Please continue."
  13. Const L_BlankRequest_ErrorMessage="The request field may not be left blank. Please paste a request in the field and try again."
  14. Const L_SavedReqCert_Text="Saved-Request Certificate" ' Note: should match string in certrqxt.asp
  15. '-----------------------------------------------------------------
  16. ' This function produces the standard header that all the pages
  17. ' in this file use. We put it here to keep the localization parser happy
  18. Sub PrintHtmlHeader
  19. %>
  20. <HTML>
  21. <Head>
  22. <Meta HTTP-Equiv="Content-Type" Content="text/html; charset=UTF-8">
  23. <Title>Microsoft Certificate Services</Title>
  24. </Head>
  25. <Body BgColor=#FFFFFF Link=#0000FF VLink=#0000FF ALink=#0000FF><Font ID=locPageFont Face="Arial">
  26. <Table Border=0 CellSpacing=0 CellPadding=4 Width=100% BgColor=#008080>
  27. <TR>
  28. <TD><Font Color=#FFFFFF><LocID ID=locMSCertSrv><Font Face="Arial" Size=-1><B><I>Microsoft</I></B> Certificate Services &nbsp;--&nbsp; <%=sServerDisplayName%> &nbsp;</Font></LocID></Font></TD>
  29. <TD ID=locHomeAlign Align=Right><A Href="/certsrv"><Font Color=#FFFFFF><LocID ID=locHomeLink><Font Face="Arial" Size=-1><B>Home</B></Font></LocID></Font></A></TD>
  30. </TR>
  31. </Table>
  32. <%
  33. End Sub
  34. '-----------------------------------------------------------------
  35. ' BEGIN PROCESSING
  36. '-----------------------------------------------------------------
  37. ' Non-text-only browsers with javascript off:
  38. If "Text"<>sBrowser Then
  39. PrintHtmlHeader
  40. %>
  41. <P ID=locPageTitle1><Font Color=#FF0000><B>Scripting Must Be Enabled</B></Font>
  42. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  43. <P ID=locNeedScripting> This web site requires that scripting be enabled in your browser.
  44. Please enable scripting and try your last action again.
  45. </Body>
  46. </HTML>
  47. <%
  48. '-------------------------------------------------------------
  49. ' External request page
  50. ElseIf "certrqxt"=Request.Form("SourcePage") Then
  51. 'validate the data
  52. ' if it's good, send it to submit
  53. ' else send it back to external request
  54. Dim sRequest, bAllowContiune, sMessage, bError, sAttrib
  55. sRequest=Request.Form("taRequest")
  56. sMessage=L_CertOK_Message
  57. bAllowContinue=True
  58. bError=False
  59. If ""=sRequest Then
  60. sMessage=L_BlankRequest_ErrorMessage
  61. bAllowContinue=False
  62. bError=True
  63. End If
  64. sAttrib=Request.Form("taAttrib")
  65. If "Enterprise"=sServerType Then
  66. ' add an attribute for the cert type
  67. Dim sTemplate
  68. ' get the selected template
  69. sTemplate=Request.Form("lbCertTemplate")
  70. ' get template real name
  71. sTemplate=getTemplateStringInfo(CTINFO_INDEX_REALNAME, null);
  72. ' set the cert template
  73. sAttrib=sAttrib & "CertificateTemplate:" & sTemplate & vbNewLine
  74. End If
  75. ' for interop debug purposes
  76. sAttrib=sAttrib & "UserAgent:" & Request.ServerVariables("HTTP_USER_AGENT") & vbNewLine
  77. PrintHtmlHeader
  78. %>
  79. <Form Name=SubmittedData Action="certfnsh.asp" Method=Post>
  80. <%If True=bError Then%>
  81. <P ID=locPageTitle2><Font Color=#FF0000><B>Error</B></Font>
  82. <%Else%>
  83. <P ID=locPageTitle3><B>Checkpoint</B>
  84. <%End If%>
  85. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  86. <P><%=sMessage%>
  87. </P>
  88. <%If True=bAllowContinue Then%>
  89. <Input Type=Hidden Name=Mode Value="newreq"> <!-- used in request ('newreq'|'chkpnd') -->
  90. <Input Type=Hidden Name=CertRequest Value="<%=sRequest%>"> <!-- used in request -->
  91. <Input Type=Hidden Name=CertAttrib Value="<%=sAttrib%>"> <!-- used in request -->
  92. <Input Type=Hidden Name=FriendlyType Value="<%=L_SavedReqCert_Text%> (<%=Now%>)"><!-- used on Pending -->
  93. <Input Type=Hidden Name=TargetStoreFlags Value="0"> <!-- used on install ('0'|CSSLM)-->
  94. <Input Type=Hidden Name=SaveCert Value="yes"> <!-- used on install ('no'|'yes')-->
  95. <%End If%>
  96. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  97. <!-- White HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#FFFFFF><Img Src="certspc.gif" Alt="" Height=5 Width=1></TD></TR></Table>
  98. <%If True=bAllowContinue Then%>
  99. <Table Width=100% Border=0 CellPadding=0 CellSpacing=0><TR><TD ID=locResubmitAlign Align=Right>
  100. <Input ID=locBtnResubmit Type=Submit Value="Resubmit &gt;">
  101. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  102. </TD></TR></Table>
  103. <%End If%>
  104. </Form>
  105. </Font>
  106. </Body>
  107. </HTML>
  108. <%
  109. '-------------------------------------------------------------
  110. ' Unexpected form -- should never happen
  111. Else
  112. PrintHtmlHeader
  113. %>
  114. <P ID=locPageTitle5><Font Color=#FF0000><B>Error</B></Font>
  115. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  116. <P ID=locErrorMsg> An unexpected error has occurred.
  117. The form you submitted ("<%=Request.Form("SourcePage")%>") is unknown.
  118. <P ID=locSubmittedData> Submitted data:
  119. <Pre>
  120. <%=Request.Form%>
  121. </Pre>
  122. </Body>
  123. </HTML>
  124. <%
  125. End If
  126. %>