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.

46 lines
1.5 KiB

  1. <%@ Language=VBScript %>
  2. <% Option Explicit %>
  3. <%
  4. '-------------------------------------------------------------------------
  5. ' POP3 Mail Add-in - Mailboxes OTS Redirector
  6. ' Copyright (C) Microsoft Corporation. All rights reserved.
  7. '
  8. ' Description: Places the domain name from the OTS selection into a
  9. ' querystring parameter to avoid conflicts with the
  10. ' mailboxes OTS selection.
  11. '-------------------------------------------------------------------------
  12. %>
  13. <!-- #include virtual="/admin/inc_framework.asp" -->
  14. <!-- #include virtual="/admin/ots_main.asp" -->
  15. <!-- #include file="p3cminc.asp" -->
  16. <%
  17. On Error Resume Next
  18. '
  19. ' Calculate the base URL for the mailboxes OTS.
  20. '
  21. Dim strURL
  22. strURL = m_VirtualRoot & "mail/p3mb.asp"
  23. Call SA_MungeURL(strURL, SAI_FLD_PAGEKEY, SAI_GetPageKey())
  24. Call SA_MungeURL(strURL, "tab1", GetTab1())
  25. Call SA_MungeURL(strURL, "tab2", GetTab2())
  26. Call SA_MungeURL(strURL, "ReturnURL", mstrReturnURL)
  27. '
  28. ' Attempt to get the domain name and add it to the URL.
  29. '
  30. ' The OTS selection isn't usually get stored until after the page
  31. ' is created for area pages, but we need the data now.
  32. Call SA_StoreTableParameters()
  33. Dim strDomainName
  34. If (OTS_GetTableSelection("", 1, strDomainName)) Then
  35. Call SA_MungeURL(strURL, PARAM_DOMAINNAME, strDomainName)
  36. End If
  37. %>
  38. <SCRIPT LANGUAGE="javascript" FOR="window" EVENT="onload">
  39. top.location = '<%=SA_EscapeQuotes(strURL)%>';
  40. </SCRIPT>