Leaked source code of windows server 2003
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.

169 lines
5.0 KiB

  1. <%@ Page Language='C#' Inherits='UDDI.Web.UddiPage' %>
  2. <%@ Import Namespace='UDDI.Web' %>
  3. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  4. <%@ Register Tagprefix='uddi' Tagname='Header' Src='./controls/header.ascx' %>
  5. <%@ Register Tagprefix='uddi' Tagname='Footer' Src='./controls/footer.ascx' %>
  6. <%@ Register Tagprefix='uddi' Tagname='SideMenu' Src='./controls/sidemenu.ascx' %>
  7. <script Language='C#' Runat='server'>
  8. void Page_Load( object sender, EventArgs e )
  9. {
  10. try
  11. {
  12. Publisher pub = new Publisher();
  13. string key = Request[ "key" ];
  14. try
  15. {
  16. pub.GetPublisherFromSecurityToken( key );
  17. }
  18. catch( Exception )
  19. {
  20. pub.Puid = null;
  21. }
  22. if( null == pub.Puid )
  23. {
  24. message.Text = "<p class='normal'><b>Bad security token.</b></p><p class='normal'>Please make sure that you paste the complete link into your browser's address box.</p>";
  25. return;
  26. }
  27. //
  28. // Get the publisher data.
  29. //
  30. pub.Get();
  31. if( pub.Validated )
  32. {
  33. message.Text = "<p class='normal'>Your email address has already been validated. No further validation is needed unless you later change your email address on the registration page.</p><p class='normal'>You may now begin registering your business information in the UDDI registry by visiting the <a href='/edit/default.aspx'>publisher</a> page.</p>";
  34. return;
  35. }
  36. //
  37. // Make sure the user is not using Passport tracking.
  38. //
  39. if( pub.TrackPassport )
  40. {
  41. message.Text = "<p class='normal'>Your email address is managed through your Passport profile. No further validation is need unless you later choose to not share your Passport email address with member sites.</p><p class='normal'>You may now begin registering your business information in the UDDI registry by visiting the <a href='/edit/default.aspx'>publisher</a> page.</p>";
  42. return;
  43. }
  44. //
  45. // Mark the publisher's email as validated
  46. //
  47. pub.Validated = true;
  48. pub.Save();
  49. message.Text = "<p class='normal'><b>Congratulations!</b></p><p class='normal'>You have successfully validated your email address with the Microsoft UDDI business registry. You may now begin registering your business information in the UDDI registry by visiting the <a href='/edit/default.aspx'>publisher</a> page.</p>";
  50. }
  51. catch( Exception )
  52. {
  53. message.Text = "<p class='normal'><bUnknown failure.</b></p><p class='normal'>Please make sure that you paste the complete link into your browser's address box.</p>";
  54. }
  55. }
  56. </script>
  57. <uddi:StyleSheetControl
  58. Runat='server'
  59. Default='./stylesheets/uddi.css'
  60. Downlevel='./stylesheets/uddidl.css'
  61. />
  62. <uddi:PageStyleControl
  63. Runat='server'
  64. OnClientContextMenu='Document_OnContextMenu()'
  65. ShowHeader='true'
  66. Title="TITLE"
  67. AltTitle="TITLE_ALT"
  68. />
  69. <uddi:ClientScriptRegister
  70. Runat='server'
  71. Source='./client.js'
  72. Language='javascript'
  73. />
  74. <uddi:SecurityControl
  75. Runat='server'
  76. />
  77. <form enctype='multipart/form-data' Runat='server'>
  78. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0' >
  79. <asp:PlaceHolder
  80. Id='HeaderBag'
  81. Runat='server'
  82. >
  83. <tr height='95'>
  84. <td>
  85. <!-- Header Control Here -->
  86. <uddi:Header
  87. Runat='server'
  88. />
  89. </td>
  90. </tr>
  91. </asp:PlaceHolder>
  92. <tr>
  93. <td valign='top'>
  94. <TABLE width='100%' height='100%' cellpadding='0' cellspacing='0' border='0'>
  95. <tr>
  96. <td valign='top' bgcolor='#F1F1F1' width='200'>
  97. <uddi:SideMenu
  98. Runat='server'
  99. SelectedIndex='5'
  100. />
  101. </td>
  102. <td valign='top'>
  103. <TABLE width='100%' height='100%' cellpadding='0' cellspacing='0' border='0'>
  104. <tr>
  105. <td valign='top'>
  106. <table cellpadding='0' cellspacing='0' border='0' width='100%'>
  107. <tr height='10'>
  108. <td colspan='3'>
  109. <img src='/images/trans_pixel.gif' width='1' height='10'>
  110. </td>
  111. </tr>
  112. <tr valign='top' >
  113. <td>
  114. <img src='/images/trans_pixel.gif' width='10' height='1'>
  115. </td>
  116. <td>
  117. <h2>Email Address Verification</h2>
  118. <asp:Label id='message' Runat='server' />
  119. </td>
  120. <td>
  121. <img src='/images/trans_pixel.gif' width='10' height='1'>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td colspan='3' height='10'>
  126. <img src='/images/trans_pixel.gif' width='1' height='10'>
  127. </td>
  128. </tr>
  129. </table>
  130. <br>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td>
  135. <asp:PlaceHolder
  136. Id='FooterBag'
  137. Runat='server'
  138. >
  139. <tr height='95'>
  140. <td>
  141. <!-- Footer Control Here -->
  142. <uddi:Footer
  143. Runat='server'
  144. />
  145. </td>
  146. </tr>
  147. </asp:PlaceHolder>
  148. </td>
  149. </tr>
  150. </table>
  151. </td>
  152. </tr>
  153. </table>
  154. </td>
  155. </tr>
  156. </table>
  157. </form>