Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.58 KB | None | 0 0
  1. <html><head>
  2. <meta http-equiv=Content-Type content="text/html; charset=
  3. iso-8859-1">
  4. <meta http-equiv=Pragma content=no-cache><LINK href="stylemain.css" type=text/css rel=stylesheet>
  5. <SCRIPT language=javascript src="enc.js"></SCRIPT>
  6. <SCRIPT language=javascript src="blkstat.js"></SCRIPT>
  7. <SCRIPT language=JavaScript src="wlan.js"></SCRIPT>
  8. <SCRIPT language=javascript>
  9. var Wlan_cbAutoChanPrevFlag = 0;
  10. function frmLoad() {
  11. if(document.wlan_form.Wlan_cbEnableFlag.value == 0)
  12. {
  13. hideWlSecInfo(1);
  14. }
  15. else
  16. {
  17. hideWlSecInfo(0);
  18. }
  19. if(document.wlan_form.Wlan_slSecType!=null)
  20. authmodeIndex=document.wlan_form.Wlan_slSecType.selectedIndex;
  21. if(document.wlan_form.WlanWpa_slMode!=null)
  22. encryptionIndex=document.wlan_form.WlanWpa_slMode.selectedIndex;
  23. if(document.wlan_form.Wlan_slMode!=null)
  24. slmodeIndex=document.wlan_form.Wlan_slMode.selectedIndex;
  25. with (document.wlan_form)
  26. {
  27. if (Wlan_cbEnaAutoChan.checked == true)
  28. {
  29. Wlan_cbAutoChanPrevFlag=1;
  30. }
  31. else
  32. {
  33. Wlan_cbAutoChanPrevFlag=0;
  34. }
  35. }
  36. }
  37. function wlSecCbClick() {
  38. if (document.wlan_form.Wlan_cbEnable.checked == true )
  39. {
  40. hideWlSecInfo(0);
  41. document.wlan_form.Wlan_cbEnableFlag.value = 1;
  42. }
  43. else
  44. {
  45. hideWlSecInfo(1);
  46. document.wlan_form.Wlan_cbEnableFlag.value = 0;
  47. }
  48. }
  49. function hideWlSecInfo(hidden){
  50. with ( document.wlan_form )
  51. {
  52. if ( hidden == 1 ) {
  53. changeBlockState("wlan_options",DISABLED);
  54. changeBlockState("wlSecInfo",DISABLED);
  55. changeBlockState("wpaSecInfo",DISABLED);
  56. changeBlockState("sharedSecInfo",DISABLED);
  57. } else {
  58. changeBlockState("wlan_options",ENABLED);
  59. changeBlockState("wlSecInfo",ENABLED);
  60. changeBlockState("wpaSecInfo",ENABLED);
  61. changeBlockState("sharedSecInfo",ENABLED);
  62. if (Wlan_cbEnaAutoChan.checked == true)
  63. {
  64. Wlan_cbAutoChanFlag.value=1;
  65. changeBlockState("wlan_channels",DISABLED);
  66. }
  67. else
  68. {
  69. Wlan_cbAutoChanFlag.value=0;
  70. changeBlockState("wlan_channels",ENABLED);
  71. }
  72. }
  73. }
  74. }
  75. function disableChannel(){
  76. with (document.wlan_form)
  77. {
  78. if (Wlan_cbEnaAutoChan.checked == true)
  79. {
  80. Wlan_cbAutoChanFlag.value=1;
  81. changeBlockState("wlan_channels",DISABLED);
  82. }
  83. else
  84. {
  85. Wlan_cbAutoChanFlag.value=0;
  86. changeBlockState("wlan_channels",ENABLED);
  87. }
  88. }
  89. }
  90. var authmodeIndex=0;
  91. var encryptionIndex=0;
  92. var slmodeIndex=0;
  93. function doWPSCheck(fromSrc){
  94. if(fromSrc == 3) //broadcasting ssid enable/disable
  95. {
  96. if(document.forms[0].Wlan_cbHide.checked == true && wpsStatus == 1)
  97. {
  98. if(confirm("If disable broadcasting of the SSID, WPS will be disabled, are you sure to disable broadcasting SSID?") == true){
  99. return;
  100. }
  101. else
  102. {
  103. document.forms[0].Wlan_cbHide.checked = false;
  104. return;
  105. }
  106. }
  107. return;
  108. }
  109. else if(fromSrc == 2)// change auth mode
  110. {
  111. if(wpsStatus == 1)
  112. {
  113. if(document.forms[0].Wlan_slSecType.length == 3 && document.forms[0].Wlan_slSecType.selectedIndex == 1)
  114. {
  115. if(confirm("if enable WEP auth mode, WPS will be disabled, are you sure you want to continue?") == true){
  116. return 1;
  117. }
  118. }
  119. else if(document.forms[0].Wlan_slSecType.selectedIndex == 0)
  120. {
  121. if(confirm("Wireless security is not set, are you sure to continue?") == true){
  122. return 1;
  123. }
  124. }
  125. else
  126. {
  127. return 1;
  128. }
  129. }
  130. else
  131. {
  132. return 1;
  133. }
  134. }
  135. else if(fromSrc == 4) //encryption type switched
  136. {
  137. if(wpsStatus == 1)
  138. {
  139. if((document.forms[0].WlanWpa_slMode.selectedIndex == 2)
  140. && (document.forms[0].Wlan_slMode.selectedIndex != 2)
  141. )
  142. {
  143. if(confirm("11n mode will use AES,but this will enable TKIP encryption, WPS will be disabled, are you sure to continue?") == true){
  144. return 1;
  145. }
  146. }
  147. else
  148. {
  149. return 1;
  150. }
  151. }
  152. else
  153. {
  154. return 1;
  155. }
  156. }
  157. if(document.forms[0].Wlan_slSecType!=null)
  158. document.forms[0].Wlan_slSecType.selectedIndex = authmodeIndex;
  159. if(document.forms[0].WlanWpa_slMode!=null)
  160. document.forms[0].WlanWpa_slMode.selectedIndex = encryptionIndex;
  161. return 0;
  162. }
  163. function displayMode()
  164. {
  165. if(doWPSCheck(2))
  166. {
  167. document.wlan_form.Wlan_slSecTypeFlag.value=1;
  168. document.wlan_form.submit();
  169. }
  170. }
  171. function doEncrypChange()
  172. {
  173. if(doWPSCheck(4))
  174. encryptionIndex=document.forms[0].WlanWpa_slMode.selectedIndex;
  175. }
  176. function doWifiModeChange()
  177. {
  178. if((document.wlan_form.WlanWpa_slMode != null) && (document.wlan_form.WlanWpa_slMode.selectedIndex == 2)
  179. && (document.wlan_form.Wlan_slMode.selectedIndex != 2)
  180. ){
  181. if(confirm("11n mode will use AES,but this will enable TKIP encryption, WPS will be disabled, are you sure to continue?") == true){
  182. document.wlan_form.Wlan_slSecTypeFlag.value=1;
  183. document.wlan_form.submit();
  184. }else
  185. document.wlan_form.Wlan_slMode.selectedIndex = slmodeIndex;
  186. }else
  187. {
  188. document.wlan_form.Wlan_slSecTypeFlag.value=1;
  189. document.wlan_form.submit();
  190. }
  191. }
  192. function btnReset(){
  193. var code = 'location="wirelesssetting.html"';
  194. eval(code);
  195. }
  196. function btnApply() {
  197. with(document.wlan_form)
  198. {
  199. if(Wlan_cbEnable.checked==true)
  200. {
  201. var str = new String();
  202. str = Wlan_Ssid.value;
  203. if (str.charAt(0) == " ")
  204. {
  205. alert("SSID should not start with a space.");
  206. return;
  207. }
  208. if ( str == '' )
  209. {
  210. alert("SSID should not be empty.");
  211. return;
  212. }
  213. if ( str.length > 32 ) {
  214. alert("SSID length should be between 3 and 32 alphanumeric characters.");
  215. return;
  216. }
  217. if ( str.length < 3 ) {
  218. alert("SSID length should be between 3 and 32 alphanumeric characters.");
  219. return;
  220. }
  221. if(str.match("^[0-9A-Za-z-]+$")==null)
  222. {
  223. alert("Wireless Network Name can only contain 0-9,a-z,A-Z and -.");
  224. return;
  225. }
  226. if (encodeUrl(Wlan_Ssid.value,"SSID") == ERROR_ENCODE_URL) return;
  227. if ( isValidWPAPskKey(WlanWpa_SharedKey.value) == false )
  228. {
  229. alert("Pre-Shared Key should be between 8 and 63 ASCII characters.");
  230. return;
  231. }
  232. if(WlanWpa_SharedKey.value.match("^[0-9A-Za-z]+$")==null)
  233. {
  234. alert("Wireless Network password can only contain 0-9,a-z,A-Z .");
  235. return;
  236. }
  237. }
  238. if(Wlan_cbAutoChanPrevFlag == 0 && Wlan_cbAutoChanFlag.value ==1)
  239. {
  240. if(confirm("Changing to auto channel will require the router to reboot. Click OK to continue") != true )
  241. {
  242. return;
  243. }
  244. }
  245. submit();
  246. }
  247. }
  248. </SCRIPT>
  249. <SCRIPT language=JavaScript src="menu.html"></SCRIPT>
  250. <meta content="MSHTML 6.00.2900.2180" name=GENERATOR></head><body onLoad="frmLoad()">
  251. <SCRIPT language=JavaScript>
  252. TabHeader="Setup";
  253. SideItem="Wireless Setup";
  254. HelpItem="euwireless";
  255. </SCRIPT>
  256. <SCRIPT type=text/javascript>
  257. mainTableStart();
  258. logo();
  259. TopNav();
  260. ThirdRowStart();
  261. Write_Item_Images();
  262. mainBodyStart();
  263. </SCRIPT>
  264. <FORM METHOD="POST" ACTION="/Forms/wirelesssetting_1" name="wlan_form"><TABLE id=box_header width=690 cellspacing=0 border=0>
  265. <TBODY>
  266. <tr>
  267. <TD class=topheader>
  268. Wireless</td></tr><tr>
  269. <TD class=content>
  270. <p>Use this section to configure the wireless settings for your D-Link router. Please note that changes made on this section will also need to be duplicated to your wireless clients and PC.</p></td></tr></TBODY></table><TABLE id=body_header cellspacing=0 border=0>
  271. <TBODY>
  272. <tr>
  273. <TD class=topheader id=whiteTitle>
  274. Wireless Network Settings</td></tr><tr>
  275. <TD class=content>
  276. <TABLE class=formarea width="100%" cellspacing=0 cellpadding=0 summary="" border=0>
  277. <TBODY>
  278. <tr>
  279. <TD class=form_label_30><LABEL for=Wlan_cbEnable>
  280. Enable Wireless&nbsp;:</LABEL>
  281. </td><td><INPUT TYPE="CHECKBOX" NAME="Wlan_cbEnable" CHECKED onclick="wlSecCbClick();"><INPUT TYPE="HIDDEN" NAME="Wlan_cbEnableFlag" VALUE="1"></td></tr><TBODY id=wlan_options>
  282. <tr>
  283. <TD class=form_label_30><LABEL for=Wlan_Ssid>
  284. Wireless Network Name (SSID)&nbsp;:</LABEL> </td><td><INPUT TYPE="TEXT" NAME="Wlan_Ssid" SIZE="20" MAXLENGTH="32" VALUE="TALKTALK-A5ABA1"></td></tr><tr>
  285. <TD class=form_label_30><LABEL for=Wlan_cbEnaAutoChan>
  286. Enable Auto Channel Scan&nbsp;:</LABEL></td><td><INPUT TYPE="CHECKBOX" NAME="Wlan_cbEnaAutoChan" onclick="disableChannel();"><INPUT TYPE="HIDDEN" NAME="Wlan_cbAutoChanFlag" VALUE="0"></td></tr><tr>
  287. <td colspan=2>
  288. <div id=wlan_channels>
  289. <TABLE width="100%" border=0>
  290. <TBODY>
  291. <tr>
  292. <TD class=form_label_30>
  293. Wireless channel&nbsp;:</td><td><SELECT NAME="Wlan_slChannel" SIZE="1"><OPTION>1
  294. <OPTION>2
  295. <OPTION SELECTED>3
  296. <OPTION>4
  297. <OPTION>5
  298. <OPTION>6
  299. <OPTION>7
  300. <OPTION>8
  301. <OPTION>9
  302. <OPTION>10
  303. <OPTION>11
  304. <OPTION>12
  305. <OPTION>13
  306. </SELECT></td></tr></TBODY></table></div></td></tr><tr>
  307. <TD class=form_label_30>
  308. 802.11 Mode&nbsp;:</td><td><SELECT NAME="Wlan_slMode" SIZE="1" onChange="doWifiModeChange()"><OPTION>G
  309. <OPTION>B/G
  310. <OPTION>N
  311. <OPTION>G/N
  312. <OPTION SELECTED>B/G/N
  313. </SELECT><INPUT TYPE="HIDDEN" NAME="Wlan_slModeFlag" VALUE="0"></td></tr><tr>
  314. <TD class=form_label_30><LABEL for=Wlan_cbHide>
  315. Hide Wireless Network&nbsp;:</LABEL></td><td><INPUT TYPE="CHECKBOX" NAME="Wlan_cbHide" onclick="doWPSCheck(3);"></td></tr></TBODY></table></td></tr></TBODY></table><TABLE id=body_header cellspacing=0 border=0>
  316. <TBODY id=wlSecInfo>
  317. <tr>
  318. <TD class=topheader id=whiteTitle>
  319. Wireless Security Mode</td></tr><tr>
  320. <TD class=content>
  321. <p>To protect your privacy you can configure wireless security features. This device supports three wireless security modes including: WEP, WPA-Personal, and None. WEP is the original wireless encryption standard. WPA provides a higher level of security. WPA-Personal does not require an authentication server.</p><table class=formarea width="100%"cellspacing=0 cellpadding=0 summary="" border=0>
  322. <tbody>
  323. <tr>
  324. <td class=form_label_30>
  325. Security Mode :</td><td><SELECT NAME="Wlan_slSecType" SIZE="1" onchange="displayMode();"><OPTION>None
  326. <OPTION>WEP
  327. <OPTION SELECTED>WPA-Personal
  328. </SELECT><INPUT TYPE="HIDDEN" NAME="Wlan_slSecTypeFlag" VALUE="0"></td></tr></tbody>
  329. </table></td></tr></TBODY></table><div id=wpaSecInfo>
  330. <TABLE id=body_header cellspacing=0 border=0>
  331. <TBODY>
  332. <tr>
  333. <TD class=topheader id=whiteTitle>
  334. WPA</td></tr><tr>
  335. <TD class=content>
  336. <p>Use <STRONG>WPA or WPA2</STRONG> mode to achieve a balance of strong security and best compatibility. This mode uses WPA for legacy clients while maintaining higher security with stations that are WPA2 capable. Also the strongest cipher that the client supports will be used. For best security, use <STRONG>WPA2 Only</STRONG> mode. This mode uses AES(CCMP) cipher and legacy stations are not allowed access with WPA security. For maximum compatibility, use <STRONG>WPA Only</STRONG>. This mode uses TKIP cipher. Some gaming and legacy devices work only in this mode.</p><p>To achieve better wireless performance use <STRONG>WPA2 Only</STRONG> security mode (or in other words AES cipher).</p><TABLE class=formarea width="100%" cellspacing=0 cellpadding=0 summary="" border=0>
  337. <TBODY>
  338. <tr>
  339. <TD class=form_label_30>
  340. WPA Mode&nbsp;:</td><td><SELECT NAME="WlanWpa_slMode" SIZE="1" onchange="doEncrypChange()"><OPTION SELECTED>WPA/WPA2 mixed mode
  341. <OPTION>WPA2 Only
  342. <OPTION>WPA Only
  343. </SELECT></td></tr><tr>
  344. <TD class=form_label_30><LABEL for=WlanWpa_UpdateInter>
  345. Group Key Update Interval&nbsp;:</LABEL></td><td><INPUT TYPE="TEXT" NAME="WlanWpa_UpdateInter" SIZE="20" MAXLENGTH="32" VALUE="3600">(seconds)
  346. </td></tr></TBODY></table></td></tr></TBODY></table></div><div id=sharedSecInfo>
  347. <TABLE id=body_header cellspacing=0 border=0>
  348. <TBODY>
  349. <tr>
  350. <TD class=topheader id=whiteTitle>
  351. Pre-Shared Key</td></tr><tr>
  352. <TD class=content>
  353. <TABLE class=formarea width="100%" cellspacing=0 cellpadding=0 summary="" border=0>
  354. <TBODY>
  355. <tr>
  356. <TD class=form_label_30><LABEL for=wpa_psk>
  357. Pre-Shared Key&nbsp;:</LABEL></td><td><INPUT TYPE="TEXT" NAME="WlanWpa_SharedKey" SIZE="48" MAXLENGTH="63" VALUE="6HC6EWJJ"></td></tr></TBODY></table></td></tr></TBODY></table></div><p><FONT color=red>
  358. Please take note of your SSID and security Key as you will need to duplicate the same settings to your wireless devices and PC.</font></p><div align=center>
  359. <INPUT TYPE="BUTTON" NAME="Wlan_Submit" VALUE="Apply Settings" onClick="btnApply();"><INPUT TYPE="BUTTON" NAME="Wlan_Cancle" VALUE="Cancel" onClick="btnReset();"></div></form><SCRIPT type=text/javascript>
  360. mainBodyEnd();
  361. ThirdRowEnd();
  362. Footer()
  363. mainTableEnd()
  364. </SCRIPT>
  365.  
  366. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement