Changeset 14230
- Timestamp:
- 04/12/10 23:09:39 (3 years ago)
- Location:
- src/router/kromo/dd-wrt
- Files:
-
- 1 added
- 7 edited
-
AOSS.asp (modified) (6 diffs)
-
Makefile (modified) (2 diffs)
-
SetupAssistant.asp (added)
-
Wireless_Basic.asp (modified) (1 diff)
-
changepass.asp (modified) (1 diff)
-
index.asp (modified) (2 diffs)
-
lang_pack/english.js (modified) (2 diffs)
-
lang_pack/german.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/kromo/dd-wrt/AOSS.asp
r14013 r14230 3 3 //<![CDATA[ 4 4 5 function SelMode(varname,num,F) { 6 F.change_action.value="gozila_cgi"; 7 F.submit_type.value = "security"; 8 F.security_varname.value = varname; 5 function startAOSS(F) { 6 F.submit_type.value = "start"; 9 7 F.submit(); 10 8 } 11 9 12 function keyMode(F) { 13 F.change_action.value="gozila_cgi"; 14 F.submit_type.value = "keysize"; 15 F.submit(); 16 } 17 18 function generateKey(F,PREFIX) { 19 F.change_action.value="gozila_cgi"; 20 F.security_varname.value = PREFIX; 21 F.submit_type.value = "wep_key_generate"; 22 F.submit(); 10 function toggleAOSS(button, show) { 11 show_layer_ext(button, 'aoss_button', show); 12 show_layer_ext(button, 'aoss_options', show); 23 13 } 24 14 … … 36 26 } 37 27 38 function valid_radius(F) {39 if(F.security_mode.value == "radius" || F.security_mode.value == "wpa" || F.security_mode.value == "wpa2" || F.security_mode.value == "wpa wpa2"){40 if(F.wl_radius_key.value == "") {41 alert(errmsg.err38);42 F.wl_radius_key.focus();43 return false;44 }45 }46 47 return true;48 }49 50 function valid_wpa_psk(F) {51 if(F.security_mode.value == "psk" || F.security_mode.value == "psk2" || F.security_mode.value == "psk psk2"){52 if(F.wl_wpa_psk.value.length == 64){53 if(!isxdigit(F.wl_wpa_psk, F.wl_wpa_psk.value)) {54 return false;55 }56 } else if(F.wl_wpa_psk.value.length >=8 && F.wl_wpa_psk.value.length <= 63 ){57 if(!isascii(F.wl_wpa_psk,F.wl_wpa_psk.value)) {58 return false;59 }60 } else{61 alert(errmsg.err39);62 return false;63 }64 }65 66 return true;67 }68 69 function valid_wep(F) {70 if(F.security_mode.value == "psk" || F.security_mode.value == "wpa" || F.security_mode.value == "psk2" || F.security_mode.value == "wpa2" || F.security_mode.value == "psk psk2" || F.security_mode.value == "wpa wpa2")71 return true;72 73 if (ValidateKey(F.wl_key1, F.wl_wep_bit.options[F.wl_wep_bit.selectedIndex].value,1) == false)74 return false;75 76 if (ValidateKey(F.wl_key2, F.wl_wep_bit.options[F.wl_wep_bit.selectedIndex].value,2) == false)77 return false;78 79 if (ValidateKey(F.wl_key3, F.wl_wep_bit.options[F.wl_wep_bit.selectedIndex].value,3) == false)80 return false;81 82 if (ValidateKey(F.wl_key4, F.wl_wep_bit.options[F.wl_wep_bit.selectedIndex].value,4) == false)83 return false;84 85 for (var i=1; i <= 4; i++) {86 if(F.wl_key[i-1].checked) {87 aaa = eval("F.wl_key"+i).value;88 if(aaa == "") {89 alert(errmsg.err40 + i);90 return false;91 }92 break;93 }94 }95 96 return true;97 }98 99 function ValidateKey(key, bit, index) {100 if(bit == 64) {101 switch(key.value.length) {102 case 0:103 break;104 case 10:105 if(!isxdigit(key,key.value)) {106 return false;107 }108 break;109 default:110 alert(errmsg.err41 + key.value);111 return false;112 }113 } else {114 switch(key.value.length) {115 case 0:116 break;117 case 26:118 if(!isxdigit(key,key.value)) {119 return false;120 }121 break;122 default:123 alert(errmsg.err41 + key.value);124 return false;125 }126 }127 128 return true;129 }130 function enable_idttls(ifname) {131 show_layer_ext(this, 'idttls' + ifname, true)132 show_layer_ext(this, 'idtls' + ifname, false)133 show_layer_ext(this, 'idpeap' + ifname, false)134 show_layer_ext(this, 'idleap' + ifname, false)135 }136 137 function enable_idpeap(ifname) {138 show_layer_ext(this, 'idttls' + ifname, false)139 show_layer_ext(this, 'idtls' + ifname, false)140 show_layer_ext(this, 'idpeap' + ifname, true)141 show_layer_ext(this, 'idleap' + ifname, false)142 }143 function enable_idleap(ifname) {144 show_layer_ext(this, 'idttls' + ifname, false)145 show_layer_ext(this, 'idtls' + ifname, false)146 show_layer_ext(this, 'idpeap' + ifname, false)147 show_layer_ext(this, 'idleap' + ifname, true)148 }149 150 function enable_idtls(ifname) {151 show_layer_ext(this, 'idttls' + ifname, false)152 show_layer_ext(this, 'idtls' + ifname, true)153 show_layer_ext(this, 'idpeap' + ifname, false)154 show_layer_ext(this, 'idleap' + ifname, false)155 }156 157 28 var update; 158 29 159 30 addEvent(window, "load", function() { 160 31 161 162 var F = document.forms[0];163 if(F.security_mode && F.wl_wep_bit)164 if(F.security_mode.value == "wep" || F.security_mode.value == "radius") {165 keyMode(F.wl_wep_bit.value, F);166 }167 168 32 update = new StatusbarUpdate(); 169 33 update.start(); … … 190 54 <div id="main"> 191 55 <div id="contents"> 192 <form name=" wpa" action="apply.cgi" method="post">193 <input type="hidden" name="submit_button" value=" WL_AOSS" />56 <form name="aoss" action="apply.cgi" method="post"> 57 <input type="hidden" name="submit_button" value="AOSS" /> 194 58 <input type="hidden" name="action" value="Apply" /> 195 59 <input type="hidden" name="change_action" value="gozila_cgi" /> … … 208 72 <div class="setting"> 209 73 <div class="label"><% tran("aoss.enable"); %></div> 210 <input class="spaceradio" type="radio" value="1" name="aoss_enable" <% nvram_checked("aoss_enable", "1"); %> /><% tran("share.enable"); %> 211 <input class="spaceradio" type="radio" value="0" name="aoss_enable" <% nvram_checked("aoss_enable", "0"); %> /><% tran("share.disable"); %>74 <input class="spaceradio" type="radio" value="1" name="aoss_enable" <% nvram_checked("aoss_enable", "1"); %> onClick="toggleAOSS(this, true);" /><% tran("share.enable"); %> 75 <input class="spaceradio" type="radio" value="0" name="aoss_enable" <% nvram_checked("aoss_enable", "0"); %> onClick="toggleAOSS(this, false);" /><% tran("share.disable"); %> 212 76 </div> 213 <div class="setting">77 <div id="aoss_button" class="setting" style="<% visible_css("aoss_enable", "1"); %>"> 214 78 <div class="label"><% tran("aoss.start"); %></div> 215 <input type="button" class="aoss_enable" value="" onclick=" <!-- to be defined -->">79 <input type="button" class="aoss_enable" value="" onclick="startAOSS(this.form)"> 216 80 </div> 217 81 </fieldset> 218 82 219 83 <br /> 220 84 <div id="aoss_options" style="<% visible_css("aoss_enable", "1"); %>"> 221 85 <fieldset> 222 86 <legend><% tran("aoss.securitymodes"); %></legend> 223 87 <div class="setting"> 224 88 <div class="label"><% tran("aoss.wpaaes"); %></div> 225 <input type="checkbox" name="aoss_aes" value=" 0" checked></input>89 <input type="checkbox" name="aoss_aes" value="1"<% isChecked("aoss_aes", "1"); %></input> 226 90 </div> 227 91 <div class="setting"> 228 92 <div class="label"><% tran("aoss.wpatkip"); %></div> 229 <input type="checkbox" name="aoss_tkip" value=" 0"></input>93 <input type="checkbox" name="aoss_tkip" value="1"<% isChecked("aoss_tkip", "1"); %>></input> 230 94 </div> 231 95 <div class="setting"> 232 96 <div class="label"><% tran("aoss.wep"); %></div> 233 <input type="checkbox" name="aoss_wep" value=" 0"></input>97 <input type="checkbox" name="aoss_wep" value="1"<% isChecked("aoss_wep", "1"); %>></input> 234 98 </div> 235 99 </fieldset> 236 100 237 101 <br /> 102 </div> 238 103 239 < fieldset>104 <!--fieldset> 240 105 <legend><% tran("aoss.clients"); %></legend> 241 106 <table class="center table" cellspacing="5"> … … 277 142 </table> 278 143 </fieldset> 144 <br /--> 279 145 <!-- AOSS end --> 280 <br />281 146 282 147 <div class="submitFooter"> … … 294 159 <div><h2><% tran("share.help"); %></h2></div> 295 160 <dl> 296 <dt class="term"> <% tran("wpa.secmode"); %>:</dt>297 <dd class="definition"><% tran("h wpa.right2"); %></dd>161 <dt class="term">AOSS:</dt> 162 <dd class="definition"><% tran("haoss.basic"); %></dd> 298 163 </dl><br /> 299 < a href="javascript:openHelpWindow<% ifdef("EXTHELP","Ext"); %>('HWPA.asp')"><% tran("share.more"); %></a>164 <!--a href="javascript:openHelpWindow<% ifdef("EXTHELP","Ext"); %>('HWPA.asp')"><% tran("share.more"); %></a--> 300 165 </div> 301 166 </div> -
src/router/kromo/dd-wrt/Makefile
r14174 r14230 551 551 rm -f $(INSTALLDIR)/www/index_l2tp.asp 552 552 endif 553 ifneq ($(CONFIG_AOSS),y) 554 rm -f $(INSTALLDIR)/www/AOSS.asp 555 endif 556 ifneq ($(CONFIG_BUFFALO),y) 557 rm -f $(INSTALLDIR)/www/SetupAssistant.asp 558 endif 553 559 ifneq ($(CONFIG_3G),y) 554 560 rm -f $(INSTALLDIR)/www/index_3g.asp … … 640 646 ../../../../tools/strip $(INSTALLDIR)/www/*.htm 641 647 ../../../../tools/strip $(INSTALLDIR)/www/help/*.asp 642 ../../../../tools/process_langfile $(INSTALLDIR)/www/lang_pack/english.js $(INSTALLDIR)/www/lang_pack/*.js648 # ../../../../tools/process_langfile $(INSTALLDIR)/www/lang_pack/english.js $(INSTALLDIR)/www/lang_pack/*.js 643 649 644 650 ifeq ($(CONFIG_SER),y) -
src/router/kromo/dd-wrt/Wireless_Basic.asp
r11649 r14230 165 165 F.submit_type.value = "remove_vifs"; 166 166 F.submit(); 167 } 168 169 function toggle_layer(checkbox, label) { 170 if(checkbox.checked) { 171 show_layer_ext(this,label,true); 172 } else { 173 show_layer_ext(this,label,false); 174 } 167 175 } 168 176 -
src/router/kromo/dd-wrt/changepass.asp
r13996 r14230 65 65 <input type="hidden" name="submit_button" value="index" /> 66 66 <input type="hidden" name="submit_type" /> 67 <input type="hidden" name="next_page" />67 <input type="hidden" name="next_page" value="SetupAssistan.asp" /> 68 68 <input type="hidden" name="change_action" /> 69 69 <input type="hidden" name="action" value="Apply" /> -
src/router/kromo/dd-wrt/index.asp
r13850 r14230 295 295 <input type="hidden" name="ppp_mlppp" value="0" /> 296 296 <input type="hidden" name="lan_ipaddr" value="4" /> 297 297 298 <% ifndef("HAVE_BUFFALO", "<!--"); %> 299 <h2><script type="text/javascript">Capture(sas.title);</script></h2> 300 <fieldset> 301 <legend><script type="text/javascript">Capture(sas.title);</script></legend> 302 <input type="button" name="start_sas" value="Start" class="button" onclick="document.location='SetupAssistant.asp'"> 303 </fieldset> 304 <br /> 305 <% ifndef("HAVE_BUFFALO", "-->"); %> 298 306 <% ifdef("WET", "<!--"); %> 299 307 <% ifdef("STA", "<!--"); %> … … 448 456 <div><h2><% tran("share.help"); %></h2></div> 449 457 <dl> 458 <% ifndef("HAVE_BUFFALO", "<!--"); %> 459 <dt class="term"><% tran("sas.title"); %>:</dt> 460 <dd class="definition"><% tran("hidx.sas"); %></dd> 461 <% ifndef("HAVE_BUFFALO", "-->"); %> 450 462 <dt class="term"><% tran("idx.dhcp"); %>:</dt> 451 463 <dd class="definition"><% tran("hidx.right2"); %></dd> -
src/router/kromo/dd-wrt/lang_pack/english.js
r14198 r14230 367 367 errmsg.err102="Upgrading firmware...<br/>Please, wait"; 368 368 369 var sas = new Object(); 370 sas.internet_connection="Internet Connection"; 371 sas.network_settings="Network Settings"; 372 sas.wireless_settings="Wireless Settings"; 373 sas.other_settings="Other Settings"; 374 369 375 // ** COMMON MENU ENTRIES **// 370 376 var bmenu= new Object(); … … 2056 2062 logout.message="You have successfully logged out.<br />Thank you for using DD-WRT !"; 2057 2063 2064 // ** Setup Assistant **// 2065 var sas = new Object(); 2066 var hsas = new Object(); 2067 sbutton.next = "Next »"; 2068 sbutton.prev = "« Previous"; 2069 sas.title = "Setup Assistant"; 2070 hidx.sas = "The Setup Assistant guides you through the basic setup steps to configure your router."; 2071 hsas.wan = 'The WAN interface connects your router to the Internet or other networks. If your network is connected to the internet and you only need an access point then set the WAN mode to "disabled".'; 2072 2073 // ** AOSS **// 2074 var haoss = new Object(); 2075 haoss.basic = 'The "AirStation One-Touch Secure System" AOSS allows you to connect AOSS capable clients to your access point without requiring manual configuration.'; 2058 2076 2059 2077 // ************ OLD PAGES *******************************// -
src/router/kromo/dd-wrt/lang_pack/german.js
r14201 r14230 317 317 errmsg.err61="Ungültiges Dateiformat."; 318 318 319 sas.internet_connection="Internet Verbindung"; 320 sas.network_settings="Netzwerk Einstellungen"; 321 sas.wireless_settings="Drahtlos Einstellungen"; 322 sas.other_settings="Andere Einstellungen"; 319 323 320 324 // ************************************************************** COMMON MENU ENTRIES **********************************************************//
Note: See TracChangeset
for help on using the changeset viewer.
