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.

40 lines
1.3 KiB

  1. <%@ Language=VBScript %>
  2. <% '==================================================
  3. ' Microsoft Server Appliance
  4. '
  5. ' Default web page
  6. '
  7. ' Copyright (c) Microsoft Corporation. All rights reserved.
  8. '================================================== %>
  9. <% Option Explicit %>
  10. <!-- Copyright (c) Microsoft Corporation. All rights reserved.-->
  11. <!-- #include virtual="/admin/inc_framework.asp"-->
  12. <%
  13. '-------------------------------------------------------------------------
  14. ' Global Variables
  15. '-------------------------------------------------------------------------
  16. Dim rc 'Page variable
  17. Dim G_objRegistry 'Registry object . Value is assigned by calling function regConnection
  18. Dim G_sURL 'Default URL
  19. Const CONST_HOMEPAGEURLPATH = "SOFTWARE\Microsoft\ServerAppliance\WebFramework"
  20. 'Getting registry conection
  21. Set G_objRegistry = RegConnection()
  22. G_sURL = GetRegKeyValue(G_objRegistry, CONST_HOMEPAGEURLPATH, "DefaultURL", CONST_STRING)
  23. If (Len(G_sURL) <= 0) Then
  24. G_sURL = "/admin/Tasks.asp?tab1=TabsWelcome"
  25. End If
  26. Call SA_MungeURL(G_sURL, SAI_FLD_PAGEKEY, SAI_GetPageKey())
  27. Response.Redirect(G_sURL)
  28. %>