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.

42 lines
965 B

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <%
  5. ' Get these values before we include our strings so that the
  6. ' error messages can be built.
  7. Dim domain, uname
  8. uname=Request.QueryString("uname")
  9. domain=Request.QueryString("domain")
  10. %>
  11. <!--#include file="iichkuser.str"-->
  12. <%
  13. Dim failed, NTDomain, NTUser, errmsg
  14. failed = false
  15. On Error Resume Next
  16. Response.write domain & "/" & uname
  17. Set NTDomain=GetObject("WinNT:" & L_SLASH_TEXT & L_SLASH_TEXT & domain)
  18. failed = (err <> 0)
  19. errmsg = L_DOMAIN_NOT_EXIST
  20. if not failed then
  21. Set NTUser=GetObject("WinNT:" & L_SLASH_TEXT & L_SLASH_TEXT & domain & L_SLASH_TEXT & uname)
  22. failed = (err <> 0)
  23. errmsg = L_USER_NOT_EXIST
  24. end if
  25. Response.write err
  26. %>
  27. <SCRIPT LANGUAGE="JavaScript">
  28. <% if failed then %>
  29. alert("<%= errmsg %>");
  30. <% else %>
  31. top.body.main.head.listFunc.addUser("<%= domain & L_BCKSLASH_TEXT & uname %>");
  32. <% end if %>
  33. </SCRIPT>
  34. <HTML>
  35. </HTML>