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.

164 lines
4.9 KiB

  1. <!--#INCLUDE file="..\include\asp\top.asp"-->
  2. <!--#INCLUDE file="..\include\inc\browserTest.inc"-->
  3. <!--#include file="..\include\asp\head.asp"-->
  4. <!--#INCLUDE file="..\include\inc\viewstrings.inc"-->
  5. <%
  6. Dim sFileName
  7. Dim iPos
  8. Dim strPreviousPage
  9. if Trim(Request.Cookies("Misc")("PreviousPage")) <> "locate.asp" and Trim(Request.Cookies("Misc")("PreviousPage")) <> "submit.asp" and Trim(Request.Cookies("Misc")("PreviousPage")) <> "view.asp"then
  10. Response.Redirect("http://" & Request.ServerVariables("SERVER_NAME") & "/welcome.asp")
  11. Response.End
  12. end if
  13. strPreviousPage = Request.ServerVariables("SCRIPT_NAME")
  14. strPreviousPage = Right(strPreviousPage, len(strPreviousPage) - Instrrev(strPreviousPage, "/"))
  15. Response.Cookies("Misc")("PreviousPage") = strPreviousPage
  16. If oPassMgrObj.IsAuthenticated(TimeWindow, ForceLogin) = false then
  17. Response.Redirect("http://" & Request.ServerVariables("SERVER_NAME") & "/welcome.asp")
  18. Response.End
  19. end if
  20. sFileName = Request.Cookies("ocaFileName")
  21. iPos = Instr(1, sFileName, ",")
  22. sFileName = Left(sFileName, iPos - 1)
  23. %>
  24. <div class="clsViewDiv">
  25. <p class="clsPTitle">
  26. <% = L_VIEW_VIEW_CONTENTS_TEXT %>
  27. </P>
  28. <p class="clsPBody">
  29. <% = L_VIEW_VIEWCONTENTS_BODY_TEXT %>
  30. </p>
  31. <p class="clsPBody" style='word-wrap:break;word-break:break-all'>
  32. <% = L_VIEW_CONTENTS_OF_TEXT %>:&nbsp;<pre class="clsPreBody"><%Response.Write sFileName%></pre>
  33. <br>
  34. <br>
  35. </p>
  36. </div>
  37. <TextArea cols=75 rows=15 class=clsTextarea name="txtContents" id="txtContents" style="font-family:courier"></TextArea>
  38. <br>
  39. <div class="clsViewDiv">
  40. <Table class="clstblLinks">
  41. <thead>
  42. <tr>
  43. <td>
  44. </td>
  45. <td>
  46. </td>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr>
  51. <td nowrap class="clsTDLinks">
  52. <A class="clsALink" href="https://<% =Request.ServerVariables("SERVER_NAME") %>/secure/locate.asp"><% = L_LOCATE_PREVIOUS_LINK_TEXT %></a>
  53. </td>
  54. <td nowrap class="clsTDLinks">
  55. <A id="submitlink" name="submitlink" class="clsALink" href="JAVASCRIPT:submitlink_onclick();"><% = L_CUSTOMER_NEXT_LINK_TEXT %></a>
  56. </td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. </div>
  61. <br>
  62. <OBJECT id="win2kdmp" name="win2kdmp" viewastext UNSELECTABLE="on" style="display:none"
  63. CLASSID="clsid:D68DAEED-C2A6-4C6F-9365-4676B173D8EF"
  64. codebase="https://<%=Request.ServerVariables("SERVER_NAME")%>/secure/OCARPT.CAB#version=<%= strGlobalVersion %>" height=0 width=0>
  65. <br>
  66. <br>
  67. <div class="clsDiv">
  68. <P class="clsPWarning">
  69. <% = L_LOCATE_WARN_ING_ERRORMESSAGE %>
  70. </P>
  71. <p class="clsPBody">
  72. <% = L_LOCATE_WARNING_MESSAGE_ERRORMESSAGE %>
  73. </P>
  74. <P class="clsPBody">
  75. <A class="clsALink" href="http://<% =Request.ServerVariables("SERVER_NAME") %>/view.asp"><% = L_LOCATE_REFRESH_LINK_TEXT %></a>
  76. </p>
  77. </div>
  78. </OBJECT>
  79. <Input name="txtFile" id="txtFile" type="hidden" value="<%Response.Write sFileName%>">
  80. <script language="javascript">
  81. <!--
  82. document.body.onload = BodyLoad;
  83. var iPer = 0;
  84. var iResults;
  85. var iInterval;
  86. function submitlink_onclick()
  87. {
  88. window.navigate("submit.asp");
  89. return;
  90. }
  91. function BodyLoad()
  92. {
  93. var iHeight = window.screen.availHeight;
  94. var iWidth = window.screen.availWidth;
  95. iWidth = iWidth / 2;
  96. iHeight = iHeight / 3.8;
  97. var iTop = (window.screen.width / 2) - (iWidth / 2);
  98. var iLeft = (window.screen.height / 2) - (iHeight / 2);
  99. iResults = window.open("wait.asp?msg=1", "", "top=" + iTop + ",left=" + iLeft + ",height=" + iHeight + ",width=" + iWidth + ",status=yes,toolbar=no,menubar=no");
  100. do
  101. {
  102. iResults.focus();
  103. }while (iResults.document.readyState != "complete" && window.document.readyState != "complete")
  104. iInterval = window.setInterval("fnRecycle()",500);
  105. }
  106. function fnRecycle()
  107. {
  108. window.clearInterval(iInterval);
  109. var strFile = txtFile.value;
  110. var bolIsEncrypted;
  111. bolIsEncrypted = GetCookie("intCustomerPremierID");
  112. if(bolIsEncrypted==0 || bolIsEncrypted=="" || bolIsEncrypted==null)
  113. {
  114. bolIsEncrypted = 0;
  115. }
  116. else
  117. {
  118. bolIsEncrypted = 1;
  119. }
  120. strTempName = strFile;
  121. var bolValidate = win2kdmp.validatedump(bolIsEncrypted, strFile);
  122. if(bolValidate != 0 && bolValidate != 4)
  123. {
  124. alert("<% = L_LOCATE_HASH_INFO_MESSAGE %>");
  125. iResults.close();
  126. return;
  127. }
  128. else
  129. {
  130. try
  131. {
  132. var strContents = win2kdmp.retrievefilecontents(strFile);
  133. }
  134. catch(e)
  135. {
  136. alert("<% = L_VIEW_CONTENTS_INVALID_TEXT %>");
  137. iResults.close();
  138. }
  139. }
  140. txtContents.value = strContents;
  141. iResults.close();
  142. }
  143. function GetCookie(sName)
  144. {
  145. var aCookie = document.cookie.split("; ");
  146. for (var i=0; i < aCookie.length; i++)
  147. {
  148. var aCrumb = aCookie[i].split("=");
  149. if (sName == aCrumb[0])
  150. return unescape(aCrumb[1]);
  151. }
  152. return null;
  153. }
  154. //-->
  155. </script>
  156. <!--#include file="..\include\asp\foot.asp"-->