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.

399 lines
11 KiB

  1. <% '==================================================
  2. ' Microsoft Server Appliance
  3. '
  4. ' Default web page
  5. '
  6. ' Copyright (c) Microsoft Corporation. All rights reserved.
  7. '================================================== %>
  8. <% Option Explicit %>
  9. <!-- Copyright (c) Microsoft Corporation. All rights reserved.-->
  10. <%
  11. '
  12. ' Set the Language ID for this session based on the browser language
  13. '
  14. Call SetLCID ()
  15. '
  16. ' Set CodePage for the Server, this will always be UTF-8
  17. '
  18. Session.CodePage = 65001
  19. Response.CharSet = "utf-8"
  20. '
  21. ' get a handle to the Localization Manager
  22. '
  23. Dim objLocMgr
  24. Set objLocMgr = Server.CreateObject("ServerAppliance.LocalizationManager")
  25. if Err.number <> 0 then
  26. Response.Write "Error in localizing the web content "
  27. Response.End
  28. end if
  29. '
  30. ' set the main web site page name where we will get re-directed in case client-side scripting is enabled
  31. '
  32. Dim G_sURL
  33. G_sURL = "/admin/main.asp"
  34. Dim varReplacementStrings
  35. Dim strSourceName
  36. strSourceName = "sakitmsg.dll"
  37. '
  38. ' get the strings from the resource DLL
  39. '
  40. Dim L_CLIENTSIDESCRIPT_TEXT1
  41. L_CLIENTSIDESCRIPT_TEXT1 = objLocMgr.GetString(strSourceName, "&H4001003C",varReplacementStrings)
  42. Dim L_CLIENTSIDESCRIPT_TEXT2
  43. L_CLIENTSIDESCRIPT_TEXT2 = objLocMgr.GetString(strSourceName, "&H4001003D",varReplacementStrings)
  44. Dim L_CLIENTSIDESCRIPT_TEXT3
  45. L_CLIENTSIDESCRIPT_TEXT3 = objLocMgr.GetString(strSourceName, "&H4001003E",varReplacementStrings)
  46. Dim L_CLIENTSIDESCRIPT_TEXT4
  47. L_CLIENTSIDESCRIPT_TEXT4 = objLocMgr.GetString(strSourceName, "&H4001003F",varReplacementStrings)
  48. Dim L_CLIENTSIDESCRIPT_TEXT5
  49. L_CLIENTSIDESCRIPT_TEXT5 = objLocMgr.GetString(strSourceName, "&H40010040",varReplacementStrings)
  50. Dim L_CLIENTSIDESCRIPT_TEXT6
  51. L_CLIENTSIDESCRIPT_TEXT6 = objLocMgr.GetString(strSourceName, "&H40010041",varReplacementStrings)
  52. Dim L_CLIENTSIDESCRIPT_TEXT7
  53. L_CLIENTSIDESCRIPT_TEXT7 = objLocMgr.GetString(strSourceName, "&H40010042",varReplacementStrings)
  54. '----------------------------------------------------------------------------
  55. '
  56. ' Function : getBroswerLanguage
  57. '
  58. ' Synopsis : Serves in getting Browser Default Language ID
  59. '
  60. ' Arguments: None
  61. '
  62. ' Returns : ISO 693 name
  63. '
  64. '----------------------------------------------------------------------------
  65. Function getBrowserLanguage
  66. Err.Clear
  67. Dim strAcceptLanguage
  68. Dim iPos
  69. strAcceptLanguage = Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")
  70. iPos = InStr(1, strAcceptLanguage, ",")
  71. If iPos > 0 Then
  72. strAcceptLanguage = Left(strAcceptLanguage, iPos - 1)
  73. End If
  74. getBrowserLanguage = LCase(strAcceptLanguage)
  75. End Function
  76. '----------------------------------------------------------------------------
  77. '
  78. ' Subroutine: SetLCID
  79. '
  80. ' Synopsis : Sets the LCID for the current session based on the browser language
  81. ' this is needed to that we correctly encode what is passed back to the
  82. ' browser
  83. '
  84. ' Arguments: None
  85. '
  86. '
  87. '----------------------------------------------------------------------------
  88. Sub SetLCID()
  89. Dim strLCID
  90. Select Case getBrowserLanguage
  91. Case "af"
  92. strLCID = 1078 ' Afrikaans
  93. Case "sq"
  94. strLCID = 1052 ' Albanian
  95. Case "ar-sa"
  96. strLCID = 1025 ' Arabic(Saudi Arabia)
  97. Case "ar-iq"
  98. strLCID = 2049 ' Arabic(Iraq)
  99. Case "ar-eg"
  100. strLCID = 3073 ' Arabic(Egypt)
  101. Case "ar-ly"
  102. strLCID = 4097 ' Arabic(Libya)
  103. Case "ar-dz"
  104. strLCID = 5121 ' Arabic(Algeria)
  105. Case "ar-ma"
  106. strLCID = 6145 ' Arabic(Morocco)
  107. Case "ar-tn"
  108. strLCID = 7169 ' Arabic(Tunisia)
  109. Case "ar-om"
  110. strLCID = 8193 ' Arabic(Oman)
  111. Case "ar-ye"
  112. strLCID = 9217 ' Arabic(Yemen)
  113. Case "ar-sy"
  114. strLCID = 10241 ' Arabic(Syria)
  115. Case "ar-jo"
  116. strLCID = 11265 ' Arabic(Jordan)
  117. Case "ar-lb"
  118. strLCID = 12289 ' Arabic(Lebanon)
  119. Case "ar-kw"
  120. strLCID = 13313 ' Arabic(Kuwait)
  121. Case "ar-ae"
  122. strLCID = 14337 ' Arabic(U.A.E.)
  123. Case "ar-bh"
  124. strLCID = 15361 ' Arabic(Bahrain)
  125. Case "ar-qa"
  126. strLCID = 16385 ' Arabic(Qatar)
  127. Case "eu"
  128. strLCID = 1069 ' Basque
  129. Case "bg"
  130. strLCID = 1026 ' Bulgarian
  131. Case "be"
  132. strLCID = 1059 ' Belarusian
  133. Case "ca"
  134. strLCID = 1027 ' Catalan
  135. Case "zh-tw"
  136. strLCID = 1028 ' Chinese(Taiwan)
  137. Case "zh-cn"
  138. strLCID = 2052 ' Chinese(PRC)
  139. Case "zh-hk"
  140. strLCID = 3076 ' Chinese(Hong Kong)
  141. Case "zh-sg"
  142. strLCID = 4100 ' Chinese(Singapore)
  143. Case "hr"
  144. strLCID = 1050 ' Croatian
  145. Case "cs"
  146. strLCID = 1029 ' Czech
  147. Case "da"
  148. strLCID = 1030 ' Danish
  149. Case "n"
  150. strLCID = 1043 ' Dutch(Standard)
  151. Case "nl-be"
  152. strLCID = 2067 ' Dutch(Belgian)
  153. Case "en"
  154. strLCID = 1033 ' English
  155. Case "en-us"
  156. strLCID = 1033 ' English(United States)
  157. Case "en-gb"
  158. strLCID = 2057 ' English(British)
  159. Case "en-au"
  160. strLCID = 3081 ' English(Australian)
  161. Case "en-ca"
  162. strLCID = 4105 ' English(Canadian)
  163. Case "en-nz"
  164. strLCID = 5129 ' English(New Zealand)
  165. Case "en-ie"
  166. strLCID = 6153 ' English(Ireland)
  167. Case "en-za"
  168. strLCID = 7177 ' English(South Africa)
  169. Case "en-jm"
  170. strLCID = 8201 ' English(Jamaica)
  171. Case "en"
  172. strLCID = 9225 ' English(Caribbean)
  173. Case "en-bz"
  174. strLCID = 10249 ' English(Belize)
  175. Case "en-tt"
  176. strLCID = 11273 ' English(Trinidad)
  177. Case "et"
  178. strLCID = 1061 ' Estonian
  179. Case "fo"
  180. strLCID = 1080 ' Faeroese
  181. Case "fa"
  182. strLCID = 1065 ' Farsi
  183. Case "fi"
  184. strLCID = 1035 ' Finnish
  185. Case "fr"
  186. strLCID = 1036 ' French(Standard)
  187. Case "fr-be"
  188. strLCID = 2060 ' French(Belgian)
  189. Case "fr-ca"
  190. strLCID = 3084 ' French(Canadian)
  191. Case "fr-ch"
  192. strLCID = 4108 ' French(Swiss)
  193. Case "fr-lu"
  194. strLCID = 5132 ' French(Luxembourg)
  195. Case "gd"
  196. strLCID = 1084 ' Gaelic(Scots)
  197. Case "gd-ie"
  198. strLCID = 2108 ' Gaelic(Irish)
  199. Case "de"
  200. strLCID = 1031 ' German(Standard)
  201. Case "de-ch"
  202. strLCID = 2055 ' German(Swiss)
  203. Case "de-at"
  204. strLCID = 3079 ' German(Austrian)
  205. Case "de-lu"
  206. strLCID = 4103 ' German(Luxembourg)
  207. Case "de-li"
  208. strLCID = 5127 ' German(Liechtenstein)
  209. Case "e"
  210. strLCID = 1032 ' Greek
  211. Case "he"
  212. strLCID = 1037 ' Hebrew
  213. Case "hi"
  214. strLCID = 1081 ' Hindi
  215. Case "hu"
  216. strLCID = 1038 ' Hungarian
  217. Case "is"
  218. strLCID = 1039 ' Icelandic
  219. Case "in"
  220. strLCID = 1057 ' Indonesian
  221. Case "it"
  222. strLCID = 1040 ' Italian(Standard)
  223. Case "it-ch"
  224. strLCID = 2064 ' Italian(Swiss)
  225. Case "ja"
  226. strLCID = 1041 ' Japanese
  227. Case "ko"
  228. strLCID = 1042 ' Korean
  229. Case "ko"
  230. strLCID = 2066 ' Korean(Johab)
  231. Case "lv"
  232. strLCID = 1062 ' Latvian
  233. Case "lt"
  234. strLCID = 1063 ' Lithuanian
  235. Case "mk"
  236. strLCID = 1071 ' Macedonian
  237. Case "ms"
  238. strLCID = 1086 ' Malaysian
  239. Case "mt"
  240. strLCID = 1082 ' Maltese
  241. Case "no"
  242. strLCID = 1044 ' Norwegian(Bokmal)
  243. Case "no"
  244. strLCID = 2068 ' Norwegian(Nynorsk)
  245. Case "p"
  246. strLCID = 1045 ' Polish
  247. Case "pt-br"
  248. strLCID = 1046 ' Portuguese(Brazilian)
  249. Case "pt"
  250. strLCID = 2070 ' Portuguese(Standard)
  251. Case "rm"
  252. strLCID = 1047 ' Rhaeto-Romanic
  253. Case "ro"
  254. strLCID = 1048 ' Romanian
  255. Case "ro-mo"
  256. strLCID = 2072 ' Romanian(Moldavia)
  257. Case "ru"
  258. strLCID = 1049 ' Russian
  259. Case "ru-mo"
  260. strLCID = 2073 ' Russian(Moldavia)
  261. Case "sz"
  262. strLCID = 1083 ' Sami(Lappish)
  263. Case "sr"
  264. strLCID = 3098 ' Serbian(Cyrillic)
  265. Case "sr"
  266. strLCID = 2074 ' Serbian(Latin)
  267. Case "sk"
  268. strLCID = 1051 ' Slovak
  269. Case "s"
  270. strLCID = 1060 ' Slovenian
  271. Case "sb"
  272. strLCID = 1070 ' Sorbian
  273. Case "es"
  274. strLCID = 1034 ' Spanish(Spain - Traditional Sort)
  275. Case "es-mx"
  276. strLCID = 2058 ' Spanish(Mexican)
  277. Case "es"
  278. strLCID = 3082 ' Spanish(Spain - Modern Sort)
  279. Case "es-gt"
  280. strLCID = 4106 ' Spanish(Guatemala)
  281. Case "es-cr"
  282. strLCID = 5130 ' Spanish(Costa Rica)
  283. Case "es-pa"
  284. strLCID = 6154 ' Spanish(Panama)
  285. Case "es-do"
  286. strLCID = 7178 ' Spanish(Dominican Republic)
  287. Case "es-ve"
  288. strLCID = 8202 ' Spanish(Venezuela)
  289. Case "es-co"
  290. strLCID = 9226 ' Spanish(Colombia)
  291. Case "es-pe"
  292. strLCID = 10250 ' Spanish(Peru)
  293. Case "es-ar"
  294. strLCID = 11274 ' Spanish(Argentina)
  295. Case "es-ec"
  296. strLCID = 12298 ' Spanish(Ecuador)
  297. Case "es-c"
  298. strLCID = 13322 ' Spanish(Chile)
  299. Case "es-uy"
  300. strLCID = 14346 ' Spanish(Uruguay)
  301. Case "es-py"
  302. strLCID = 15370 ' Spanish(Paraguay)
  303. Case "es-bo"
  304. strLCID = 16394 ' Spanish(Bolivia)
  305. Case "es-sv"
  306. strLCID = 17418 ' Spanish(El Salvador)
  307. Case "es-hn"
  308. strLCID = 18442 ' Spanish(Honduras)
  309. Case "es-ni"
  310. strLCID = 19466 ' Spanish(Nicaragua)
  311. Case "es-pr"
  312. strLCID = 20490 ' Spanish(Puerto Rico)
  313. Case "sx"
  314. strLCID = 1072 ' Sutu
  315. Case "sv"
  316. strLCID = 1053 ' Swedish
  317. Case "sv-fi"
  318. strLCID = 2077 ' Swedish(Finland)
  319. Case "th"
  320. strLCID = 1054 ' Thai
  321. Case "ts"
  322. strLCID = 1073 ' Tsonga
  323. Case "tn"
  324. strLCID = 1074 ' Tswana
  325. Case "tr"
  326. strLCID = 1055 ' Turkish
  327. Case "uk"
  328. strLCID = 1058 ' Ukrainian
  329. Case "ur"
  330. strLCID = 1056 ' Urdu
  331. Case "ve"
  332. strLCID = 1075 ' Venda
  333. Case "vi"
  334. strLCID = 1066 ' Vietnamese
  335. Case "xh"
  336. strLCID = 1076 ' Xhosa
  337. Case "ji"
  338. strLCID = 1085 ' Yiddish
  339. Case "zu"
  340. strLCID = 1077 ' Zulu
  341. Case Else
  342. strLCID = 2048 ' default
  343. End Select
  344. Session.LCID = strLCID
  345. End Sub
  346. %>
  347. <SCRIPT FOR=window EVENT=onload language=JScript>
  348. HelpText.style.display = "none";
  349. window.navigate ("<%=G_sURL%>");
  350. </SCRIPT>
  351. <html id="HelpText">
  352. <head>
  353. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  354. </head>
  355. <body>
  356. <P> <B> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT1)%> </B> </P>
  357. <P> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT2)%> </P>
  358. <P> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT3)%> </P>
  359. <P> <B> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT4)%> </B></P>
  360. <OL Type="1">
  361. <LI> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT5)%> </LI>
  362. <LI> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT6)%> </LI>
  363. <LI> <%=Server.HTMLEncode(L_CLIENTSIDESCRIPT_TEXT7)%> </LI>
  364. </OL>
  365. </body>
  366. </html>