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.

59 lines
1.6 KiB

  1. <% '==================================================
  2. ' Module: sa_nasabout.cpp
  3. '
  4. ' Synopsis: NAS About Box Content
  5. '
  6. ' Copyright (c) Microsoft Corporation. All rights reserved.
  7. '==================================================
  8. %>
  9. <%
  10. ' --------------------------------------------------------------
  11. '
  12. ' Function: GetHTML_AboutUs
  13. '
  14. ' Synopsis: Render the NAS Appliance About information
  15. '
  16. ' Arguments: Many but none that are convincing
  17. '
  18. ' --------------------------------------------------------------
  19. Private Function GetHTML_AboutNas(Element, Param)
  20. Dim objRegistry
  21. Dim aVersion(2)
  22. Dim strParam
  23. Dim L_NAS_CAPTION
  24. Dim L_NAS_VERSION
  25. Dim L_NAS_COPYRIGHT
  26. on error resume next
  27. Set objRegistry = RegConnection()
  28. If (NOT IsObject(objRegistry)) Then
  29. SA_TraceOut "SA_NASABOUT", "RegConnection() failed"
  30. GetHTML_AboutNas = FALSE
  31. Exit Function
  32. End If
  33. aVersion(0) = GetRegkeyValue( objRegistry, _
  34. "SOFTWARE\Microsoft\ServerAppliance",_
  35. "NasVersionNumber", CONST_STRING)
  36. aVersion(1) = GetRegkeyValue( objRegistry, _
  37. "SOFTWARE\Microsoft\ServerAppliance",_
  38. "NasBuildNumber", CONST_STRING)
  39. strParam = aVersion
  40. L_NAS_CAPTION = GetLocString("nasver.dll", "40420001", "")
  41. L_NAS_VERSION = GetLocString("nasver.dll", "40420003", strParam )
  42. L_NAS_COPYRIGHT = GetLocString("nasver.dll", "40420002", "")
  43. Response.Write(L_NAS_CAPTION + "<br>" + vbCrLf)
  44. Response.Write(L_NAS_VERSION + "<br>" + vbCrLf)
  45. Response.Write(L_NAS_COPYRIGHT + "<br>" + vbCrLf)
  46. GetHTML_AboutNas = TRUE
  47. Set objRegistry = nothing
  48. End Function
  49. %>