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.

125 lines
4.7 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <html>
  3. <head>
  4. <style>
  5. a:link {font:8pt/11pt verdana; color:red}
  6. a:visited {font:8pt/11pt verdana; color:#4e4e4e}
  7. </style>
  8. <meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
  9. <title>HTTP 500 Internal server error</title>
  10. </head>
  11. <script>
  12. function Related(){
  13. userURL=document.location.href;
  14. //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
  15. //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
  16. BeginURL=userURL.indexOf("#",1) + 1;
  17. CurrentURL=userURL.substring(BeginURL,DocURL.length);
  18. //Build the query
  19. RelatedServiceURL="http://related.msn.com/related.asp?url=";
  20. //Perform simple check for Intranet URLs
  21. //this is where the http or https will be, as found by searching for :// but skip res:
  22. protocolIndex=userURL.indexOf("://",4);
  23. serverIndex=userURL.indexOf("/",protocolIndex + 3);
  24. urlresult=userURL.substring(0,serverIndex);
  25. if (protocolIndex - BeginURL > 7)
  26. urlresult=""
  27. //Check if Intranet URL - then open search bar
  28. if (urlresult.indexOf(".",0) < 1) userURL="Intranet URL";
  29. finalURL = RelatedServiceURL + encodeURIComponent(userURL);
  30. window.open(finalURL, "_search");
  31. }
  32. function Homepage(){
  33. // in real bits, urls get returned to our script like this:
  34. // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
  35. //For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
  36. DocURL=document.location.href;
  37. //this is where the http or https will be, as found by searching for :// but skipping the res://
  38. protocolIndex=DocURL.indexOf("://",4);
  39. //this finds the ending slash for the domain server
  40. serverIndex=DocURL.indexOf("/",protocolIndex + 3);
  41. //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
  42. //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
  43. //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
  44. BeginURL=DocURL.indexOf("#",1) + 1;
  45. urlresult=DocURL.substring(BeginURL,serverIndex);
  46. //for display, we need to skip after http://, and go to the next slash
  47. displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
  48. // Security precaution: must filter out "urlResult" and "displayresult"
  49. forbiddenChars = new RegExp("[<>\'\"]", "g"); // Global search/replace
  50. urlresult = urlresult.replace(forbiddenChars, "");
  51. displayresult = displayresult.replace(forbiddenChars, "");
  52. document.write('<A target=_top HREF="' + urlresult + '">' + displayresult + "</a>");
  53. }
  54. function doSearch()
  55. {
  56. saOC.NavigateToDefaultSearch();
  57. }
  58. function initPage()
  59. {
  60. document.body.insertAdjacentHTML("afterBegin","<object id=saOC CLASSID='clsid:B45FF030-4447-11D2-85DE-00C04FA35C89' HEIGHT=0 width=0></object>");
  61. }
  62. </script>
  63. <body bgcolor="white" onload="initPage()">
  64. <table width="400" cellpadding="3" cellspacing="5">
  65. <tr>
  66. <td id="tableProps" valign="top" align="left"><img id="pagerrorImg" SRC="pagerror.gif"
  67. width="25" height="33"></td>
  68. <td id="tableProps2" align="left" valign="middle" width="360"><h1 id="errortype"
  69. style="COLOR: black; FONT: 13pt/15pt verdana"><span id="errorText">The page cannot be displayed</span></h1>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td id="tablePropsWidth" width="400" colspan="2"><font
  74. style="COLOR: black; FONT: 8pt/11pt verdana">There is a problem with the page you are
  75. trying to reach and it cannot be displayed.</font></td>
  76. </tr>
  77. <tr>
  78. <td id="tablePropsWidth" width="400" colspan="2"><font id="LID1"
  79. style="COLOR: black; FONT: 8pt/11pt verdana"><hr color="#C0C0C0" noshade>
  80. <p id="LID2">Please try the following:</p><ul>
  81. <li id="instructionsText1">Open the <script> Homepage();</script> home page, and then look for links to
  82. the information you want. </li>
  83. <li id="instructionsText2">Click the
  84. <a xhref="javascript:location.reload()" target="_self">
  85. <img border=0 src="refresh.gif" width="13" height="16"
  86. alt="refresh.gif (82 bytes)" align="middle"></a> <a xhref="javascript:location.reload()" target="_self">Refresh</a> button, or try again later.<br>
  87. </li>
  88. <li ID="instructionsText3">Click <a href="javascript:doSearch()"><img border=0 src="search.gif" width="16" height="16" alt="search.gif (114 bytes)" align="center"> Search</a> to look for information on the Internet. </li>
  89. <li id="instructionsText4">You can also see <a onclick="Related();event.returnValue=false" href="">a list of related sites.</a>
  90. </ul>
  91. </p>
  92. <p><br>
  93. </p>
  94. <h2 id="ietext" style="font:8pt/11pt verdana; color:black">HTTP 500 - Internal server
  95. error <br>
  96. Internet Explorer </h2>
  97. </font></td>
  98. </tr>
  99. </table>
  100. </body>
  101. </html>