mirror of https://github.com/captn3m0/RT-AX53U.git
2280 lines
86 KiB
Plaintext
2280 lines
86 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<html xmlns:v>
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
<meta HTTP-EQUIV="Expires" CONTENT="-1">
|
|
<link rel="shortcut icon" href="images/favicon.png">
|
|
<link rel="icon" href="images/favicon.png">
|
|
<title><#860#> - <#427#></title>
|
|
<link rel="stylesheet" type="text/css" href="index_style.css">
|
|
<link rel="stylesheet" type="text/css" href="form_style.css">
|
|
<link rel="stylesheet" type="text/css" href="pwdmeter.css">
|
|
<link rel="stylesheet" type="text/css" href="device-map/device-map.css">
|
|
<link rel="stylesheet" type="text/css" href="css/icon.css">
|
|
<script language="JavaScript" type="text/javascript" src="/state.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/general.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/popup.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/help.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/client_function.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/validator.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/js/jquery.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="/md5.js"></script>
|
|
<script type="text/javascript" src="/js/httpApi.js"></script>
|
|
<style>
|
|
.cancel{
|
|
border: 2px solid #898989;
|
|
border-radius:50%;
|
|
background-color: #898989;
|
|
}
|
|
.check{
|
|
border: 2px solid #093;
|
|
border-radius:50%;
|
|
background-color: #093;
|
|
}
|
|
.cancel, .check{
|
|
width: 22px;
|
|
height: 22px;
|
|
margin:0 auto;
|
|
transition: .35s;
|
|
}
|
|
.cancel:active, .check:active{
|
|
transform: scale(1.5,1.5);
|
|
opacity: 0.5;
|
|
transition: 0;
|
|
}
|
|
.all_enable{
|
|
border: 1px solid #393;
|
|
color: #393;
|
|
}
|
|
.all_disable{
|
|
border: 1px solid #999;
|
|
color: #999;
|
|
}
|
|
.highlight{
|
|
background: #78535b;
|
|
border: 1px solid #f06767;
|
|
}
|
|
#NTPList_Block_PC{
|
|
border:1px outset #999;
|
|
background-color:#576D73;
|
|
position:absolute;
|
|
*margin-top:26px;
|
|
margin-left:2px;
|
|
*margin-left:-353px;
|
|
width:346px;
|
|
text-align:left;
|
|
height:auto;
|
|
overflow-y:auto;
|
|
z-index:200;
|
|
padding: 1px;
|
|
display:none;
|
|
}
|
|
#NTPList_Block_PC div{
|
|
background-color:#576D73;
|
|
height:auto;
|
|
*height:20px;
|
|
line-height:20px;
|
|
text-decoration:none;
|
|
font-family: Lucida Console;
|
|
padding-left:2px;
|
|
}
|
|
#NTPList_Block_PC a{
|
|
background-color:#EFEFEF;
|
|
color:#FFF;
|
|
font-size:12px;
|
|
font-family:Arial, Helvetica, sans-serif;
|
|
text-decoration:none;
|
|
}
|
|
#NTPList_Block_PC div:hover{
|
|
background-color:#3366FF;
|
|
color:#FFFFFF;
|
|
cursor:default;
|
|
}
|
|
#ntp_pull_arrow{
|
|
float:left;
|
|
cursor:pointer;
|
|
border:2px outset #EFEFEF;
|
|
background-color:#CCC;
|
|
padding:3px 2px 4px 0px;
|
|
}
|
|
.content_chpass{
|
|
position:absolute;
|
|
-webkit-border-radius: 5px;
|
|
-moz-border-radius: 5px;
|
|
border-radius: 5px;
|
|
z-index:500;
|
|
background-color:#2B373B;
|
|
margin-left: 45%;
|
|
margin-top: 10px;
|
|
width:380px;
|
|
box-shadow: 3px 3px 10px #000;
|
|
display: none;
|
|
}
|
|
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
|
|
color: #323d40;
|
|
opacity: 1; /* Firefox */
|
|
}
|
|
.icon_eye_open{
|
|
width: 40px;
|
|
height: 27px;
|
|
background-size: 50%;
|
|
}
|
|
.icon_eye_close{
|
|
width: 40px;
|
|
height: 27px;
|
|
background-size: 50%;
|
|
}
|
|
</style>
|
|
<script>
|
|
time_day = uptimeStr.substring(5,7);//Mon, 01 Aug 2011 16:25:44 +0800(1467 secs since boot....
|
|
time_mon = uptimeStr.substring(9,12);
|
|
time_time = uptimeStr.substring(18,20);
|
|
dstoffset = '<% nvram_get("time_zone_dstoff"); %>';
|
|
cfg_master = '<% nvram_get("cfg_master"); %>';
|
|
ncb_enable = '<% nvram_get("ncb_enable"); %>';
|
|
wifison = '<% nvram_get("wifison_ready"); %>';
|
|
var orig_shell_timeout_x = Math.floor(parseInt("<% nvram_get("shell_timeout"); %>")/60);
|
|
var orig_enable_acc_restriction = '<% nvram_get("enable_acc_restriction"); %>';
|
|
var orig_restrict_rulelist_array = [];
|
|
var restrict_rulelist_array = [];
|
|
var accounts = [<% get_all_accounts(); %>][0];
|
|
for(var i=0; i<accounts.length; i++){
|
|
accounts[i] = decodeURIComponent(accounts[i]);
|
|
}
|
|
if(accounts.length == 0)
|
|
accounts = ['<% nvram_get("http_username"); %>'];
|
|
var header_info = [<% get_header_info(); %>];
|
|
var host_name = header_info[0].host;
|
|
if(tmo_support)
|
|
var theUrl = "cellspot.router";
|
|
else
|
|
var theUrl = host_name;
|
|
if(sw_mode == 3 || (sw_mode == 4))
|
|
theUrl = location.hostname;
|
|
var ddns_enable_x = '<% nvram_get("ddns_enable_x"); %>';
|
|
var ddns_hostname_x_t = '<% nvram_get("ddns_hostname_x"); %>';
|
|
var wan_unit = '<% get_wan_unit(); %>';
|
|
if(wan_unit == "0")
|
|
var wan_ipaddr = '<% nvram_get("wan0_ipaddr"); %>';
|
|
else
|
|
var wan_ipaddr = '<% nvram_get("wan1_ipaddr"); %>';
|
|
var le_enable = '<% nvram_get("le_enable"); %>';
|
|
var orig_http_enable = '<% nvram_get("http_enable"); %>';
|
|
var captcha_support = isSupport("captcha");
|
|
var tz_table = {}
|
|
$.getJSON("https://nw-dlcdnet.asus.com/plugin/js/tz_db.json", function(data){tz_table = data;})
|
|
var max_name_length = isSupport("MaxLen_http_name");
|
|
var max_pwd_length = isSupport("MaxLen_http_passwd");
|
|
var faq_href1 = "https://nw-dlcdnet.asus.com/support/forward.html?model=&type=Faq&lang="+ui_lang+"&kw=&num=105";
|
|
var faq_href2 = "https://nw-dlcdnet.asus.com/support/forward.html?model=&type=Faq&lang="+ui_lang+"&kw=&num=111";
|
|
function initial(){
|
|
var parseNvramToArray = function(oriNvram) {
|
|
var parseArray = [];
|
|
var oriNvramRow = decodeURIComponent(oriNvram).split('<');
|
|
for(var i = 0; i < oriNvramRow.length; i += 1) {
|
|
if(oriNvramRow[i] != "") {
|
|
var oriNvramCol = oriNvramRow[i].split('>');
|
|
var eachRuleArray = new Array();
|
|
for(var j = 0; j < oriNvramCol.length; j += 1) {
|
|
eachRuleArray.push(oriNvramCol[j]);
|
|
}
|
|
parseArray.push(eachRuleArray);
|
|
}
|
|
}
|
|
return parseArray;
|
|
};
|
|
orig_restrict_rulelist_array = parseNvramToArray('<% nvram_char_to_ascii("","restrict_rulelist"); %>');
|
|
restrict_rulelist_array = JSON.parse(JSON.stringify(orig_restrict_rulelist_array));
|
|
show_menu();
|
|
document.getElementById("creat_cert_link").href=faq_href1;
|
|
document.getElementById("faq").href=faq_href1;
|
|
document.getElementById("ntp_faq").href=faq_href2;
|
|
show_http_clientlist();
|
|
showNTPList();
|
|
display_spec_IP(document.form.http_client.value);
|
|
if(reboot_schedule_support){
|
|
document.form.reboot_date_x_Sun.checked = getDateCheck(document.form.reboot_schedule.value, 0);
|
|
document.form.reboot_date_x_Mon.checked = getDateCheck(document.form.reboot_schedule.value, 1);
|
|
document.form.reboot_date_x_Tue.checked = getDateCheck(document.form.reboot_schedule.value, 2);
|
|
document.form.reboot_date_x_Wed.checked = getDateCheck(document.form.reboot_schedule.value, 3);
|
|
document.form.reboot_date_x_Thu.checked = getDateCheck(document.form.reboot_schedule.value, 4);
|
|
document.form.reboot_date_x_Fri.checked = getDateCheck(document.form.reboot_schedule.value, 5);
|
|
document.form.reboot_date_x_Sat.checked = getDateCheck(document.form.reboot_schedule.value, 6);
|
|
document.form.reboot_time_x_hour.value = getrebootTimeRange(document.form.reboot_schedule.value, 0);
|
|
document.form.reboot_time_x_min.value = getrebootTimeRange(document.form.reboot_schedule.value, 1);
|
|
document.getElementById('reboot_schedule_enable_tr').style.display = "";
|
|
hide_reboot_option('<% nvram_get("reboot_schedule_enable"); %>');
|
|
if("<% get_parameter("af"); %>" == "reboot_schedule_enable_x"){
|
|
autoFocus("reboot_schedule_enable_x");
|
|
}
|
|
}
|
|
else{
|
|
document.getElementById('reboot_schedule_enable_tr').style.display = "none";
|
|
document.getElementById('reboot_schedule_date_tr').style.display = "none";
|
|
document.getElementById('reboot_schedule_time_tr').style.display = "none";
|
|
}
|
|
setInterval("corrected_timezone();", 5000);
|
|
load_timezones();
|
|
parse_dstoffset(dstoffset);
|
|
if(svc_ready == "0")
|
|
document.getElementById('svc_hint_div').style.display = "";
|
|
if(!dualWAN_support) {
|
|
$("#network_monitor_tr").hide();
|
|
document.form.dns_probe_chk.checked = false;
|
|
document.form.wandog_enable_chk.checked = false;
|
|
}
|
|
show_network_monitoring();
|
|
if(!HTTPS_support){
|
|
document.getElementById("http_auth_table").style.display = "none";
|
|
}
|
|
else{
|
|
hide_https_lanport(document.form.http_enable.value);
|
|
}
|
|
var WPSArray = ['WPS'];
|
|
var ez_mode = httpApi.nvramGet (['btn_ez_mode']).btn_ez_mode;
|
|
var ez_radiotoggle = httpApi.nvramGet (['btn_ez_radiotoggle']).btn_ez_radiotoggle;
|
|
if(!wifi_tog_btn_support && !wifi_hw_sw_support && sw_mode != 2 && sw_mode != 4){
|
|
WPSArray.push('WiFi');
|
|
}
|
|
if(cfg_wps_btn_support){
|
|
WPSArray.push('LED');
|
|
}
|
|
if(WPSArray.length > 1){
|
|
$('#btn_ez_radiotoggle_tr').show();
|
|
for(i=0;i<WPSArray.length;i++){
|
|
$('#btn_ez_' + WPSArray[i]).show();
|
|
}
|
|
if(ez_radiotoggle == '1' && ez_mode == '0'){ // WiFi
|
|
document.form.btn_ez_radiotoggle[1].checked = true;
|
|
}
|
|
else if(ez_radiotoggle == '0' && ez_mode == '1'){ // LED
|
|
document.form.btn_ez_radiotoggle[2].checked = true;
|
|
}
|
|
else{ // WPS
|
|
document.form.btn_ez_radiotoggle[0].checked = true;
|
|
}
|
|
}
|
|
/* MODELDEP */
|
|
if(wifison == 1){
|
|
if(sw_mode == 1 || (sw_mode == 3 && cfg_master == 1))
|
|
document.getElementById("sw_mode_radio_tr").style.display = "";
|
|
if(based_modelid == "MAP-AC2200")
|
|
document.getElementById("ncb_enable_option_tr").style.display = "";
|
|
}
|
|
if(sw_mode != 1){
|
|
$("#accessfromwan_settings").hide();
|
|
hideport(0);
|
|
document.form.misc_http_x.disabled = true;
|
|
document.form.misc_httpsport_x.disabled = true;
|
|
document.form.misc_httpport_x.disabled = true;
|
|
document.getElementById("nat_redirect_enable_tr").style.display = "none";
|
|
}
|
|
else{
|
|
if((wan_proto == "v6plus" || wan_proto == "ocnvc") && s46_ports_check_flag && array_ipv6_s46_ports.length > 1){
|
|
$(".setup_info_icon.https").show();
|
|
$(".setup_info_icon.https").click(
|
|
function() {
|
|
if($("#s46_ports_content").is(':visible'))
|
|
$("#s46_ports_content").fadeOut();
|
|
else{
|
|
var position = $(".setup_info_icon.https").position();
|
|
pop_s46_ports(position);
|
|
}
|
|
}
|
|
);
|
|
$("#misc_httpsport_x").focus(
|
|
function() {
|
|
var position_text = $("#misc_httpsport_x").position();
|
|
pop_s46_ports(position_text);
|
|
}
|
|
);
|
|
}
|
|
hideport(document.form.misc_http_x[0].checked);
|
|
}
|
|
if(ssh_support){
|
|
check_sshd_enable('<% nvram_get("sshd_enable"); %>');
|
|
if((wan_proto == "v6plus" || wan_proto == "ocnvc") && s46_ports_check_flag && array_ipv6_s46_ports.length > 1){
|
|
$(".setup_info_icon.ssh").show();
|
|
$(".setup_info_icon.ssh").click(
|
|
function() {
|
|
if($("#s46_ports_content").is(':visible'))
|
|
$("#s46_ports_content").fadeOut();
|
|
else{
|
|
var position = $(".setup_info_icon.ssh").position();
|
|
pop_s46_ports(position);
|
|
}
|
|
}
|
|
);
|
|
$("#sshd_port").focus(
|
|
function() {
|
|
var position_text = $("#sshd_port").position();
|
|
pop_s46_ports(position_text);
|
|
}
|
|
);
|
|
}
|
|
}
|
|
else{
|
|
document.getElementById('sshd_enable_tr').style.display = "none";
|
|
document.getElementById('sshd_port_tr').style.display = "none";
|
|
document.getElementById('sshd_password_tr').style.display = "none";
|
|
document.getElementById('auth_keys_tr').style.display = "none";
|
|
}
|
|
/* MODELDEP */
|
|
if(isSupport("is_ax5400_i1")){
|
|
document.getElementById("ntp_pull_arrow").style.display = "";
|
|
}
|
|
if(isSupport("is_ax5400_i1n") || tmo_support){
|
|
document.getElementById("telnetd_sshd_table").style.display = "none";
|
|
document.form.telnetd_enable[0].disabled = true;
|
|
document.form.telnetd_enable[1].disabled = true;
|
|
document.form.sshd_enable.disabled = true;
|
|
}
|
|
else{
|
|
document.getElementById("telnetd_sshd_table").style.display = "";
|
|
document.form.telnetd_enable[0].disabled = false;
|
|
document.form.telnetd_enable[1].disabled = false;
|
|
telnet_enable(httpApi.nvramGet(["telnetd_enable"]).telnetd_enable);
|
|
}
|
|
if(powerline_support)
|
|
document.getElementById("plc_sleep_tr").style.display = "";
|
|
document.form.shell_timeout_x.value = orig_shell_timeout_x;
|
|
if(pwrsave_support){
|
|
document.getElementById("pwrsave_tr").style.display = "";
|
|
document.form.pwrsave_mode[0].disabled = false;
|
|
document.form.pwrsave_mode[1].disabled = false;
|
|
}
|
|
else{
|
|
document.getElementById("pwrsave_tr").style.display = "none";
|
|
document.form.pwrsave_mode[0].disabled = true;
|
|
document.form.pwrsave_mode[1].disabled = true;
|
|
}
|
|
if (pagecache_ratio_support) {
|
|
document.getElementById("pagecache_ratio_tr").style.display = "";
|
|
document.form.pagecache_ratio.disabled = false;
|
|
} else {
|
|
document.getElementById("pagecache_ratio_tr").style.display = "none";
|
|
document.form.pagecache_ratio.disabled = true;
|
|
}
|
|
if(hdspindown_support) {
|
|
$("#hdd_spindown_table").css("display", "");
|
|
change_hddSpinDown($('select[name="usb_idle_enable"]').val());
|
|
$('select[name="usb_idle_enable"]').prop("disabled", false);
|
|
$('input[name="usb_idle_timeout"]').prop("disabled", false);
|
|
}
|
|
$("#https_download_cert").css("display", (le_enable != "1" && orig_http_enable != "0")? "": "none");
|
|
$("#login_captcha_tr").css("display", captcha_support? "": "none");
|
|
document.getElementById("http_username_new").maxLength = max_name_length;
|
|
document.getElementById("http_passwd_cur").maxLength = max_pwd_length + 1;
|
|
document.getElementById("http_passwd_new").maxLength = max_pwd_length + 1;
|
|
document.getElementById("http_passwd_re").maxLength = max_pwd_length + 1;
|
|
}
|
|
var time_zone_tmp="";
|
|
var time_zone_s_tmp="";
|
|
var time_zone_e_tmp="";
|
|
var time_zone_withdst="";
|
|
function applyRule(){
|
|
if(validForm()){
|
|
var isFromHTTPS = (function(){
|
|
if(location.protocol.toLowerCase() == "https:") return true;
|
|
else return false;
|
|
})();
|
|
var isFromWAN = (function(){
|
|
var lanIpAddr = '<% nvram_get("lan_ipaddr"); %>';
|
|
if(location.hostname == lanIpAddr) return false;
|
|
else if(location.hostname == "<#862#>") return false;
|
|
else if(location.hostname == "repeater.asus.com") return false;
|
|
else if(location.hostname == "cellspot.asus.com") return false;
|
|
else return true;
|
|
})();
|
|
var restart_firewall_flag = false;
|
|
var restart_httpd_flag = false;
|
|
var ncb_enable_option_flag = false;
|
|
var sw_mode_radio_flag = false;
|
|
var old_fw_tmp_value = ""; //for old version fw
|
|
var tmp_value = "";
|
|
for(var i = 0; i < restrict_rulelist_array.length; i += 1) {
|
|
if(restrict_rulelist_array[i].length != 0) {
|
|
old_fw_tmp_value += "<";
|
|
tmp_value += "<";
|
|
for(var j = 0; j < restrict_rulelist_array[i].length; j += 1) {
|
|
tmp_value += restrict_rulelist_array[i][j];
|
|
if( (j + 1) != restrict_rulelist_array[i].length)
|
|
tmp_value += ">";
|
|
if(j == 1) //IP, for old version fw
|
|
old_fw_tmp_value += restrict_rulelist_array[i][j];
|
|
}
|
|
}
|
|
}
|
|
var getRadioItemCheck = function(obj) {
|
|
var checkValue = "";
|
|
var radioLength = obj.length;
|
|
for(var i = 0; i < radioLength; i += 1) {
|
|
if(obj[i].checked) {
|
|
checkValue = obj[i].value;
|
|
break;
|
|
}
|
|
}
|
|
return checkValue;
|
|
};
|
|
document.form.http_client.value = getRadioItemCheck(document.form.http_client_radio); //for old version fw
|
|
document.form.http_clientlist.value = old_fw_tmp_value; //for old version fw
|
|
document.form.enable_acc_restriction.value = getRadioItemCheck(document.form.http_client_radio);
|
|
document.form.restrict_rulelist.value = tmp_value;
|
|
if(document.form.restrict_rulelist.value == "" && document.form.http_client_radio[0].checked == 1){
|
|
alert("<#332#>");
|
|
document.form.http_client_ip_x_0.focus();
|
|
return false;
|
|
}
|
|
if((document.form.enable_acc_restriction.value != orig_enable_acc_restriction) || (restrict_rulelist_array.toString() != orig_restrict_rulelist_array.toString()))
|
|
restart_firewall_flag = true;
|
|
if(document.form.time_zone_select.value.search("DST") >= 0 || document.form.time_zone_select.value.search("TDT") >= 0){ // DST area
|
|
time_zone_tmp = document.form.time_zone_select.value.split("_"); //0:time_zone 1:serial number
|
|
time_zone_s_tmp = "M"+document.form.dst_start_m.value+"."+document.form.dst_start_w.value+"."+document.form.dst_start_d.value+"/"+document.form.dst_start_h.value;
|
|
time_zone_e_tmp = "M"+document.form.dst_end_m.value+"."+document.form.dst_end_w.value+"."+document.form.dst_end_d.value+"/"+document.form.dst_end_h.value;
|
|
document.form.time_zone_dstoff.value=time_zone_s_tmp+","+time_zone_e_tmp;
|
|
document.form.time_zone.value = document.form.time_zone_select.value;
|
|
}else{
|
|
document.form.time_zone.value = document.form.time_zone_select.value;
|
|
}
|
|
document.form.shell_timeout.value = parseInt(document.form.shell_timeout_x.value)*60;
|
|
if(document.form.misc_http_x[1].checked == true){
|
|
document.form.misc_httpport_x.disabled = true;
|
|
document.form.misc_httpsport_x.disabled = true;
|
|
}
|
|
if(document.form.misc_http_x[0].checked == true
|
|
&& document.form.http_enable[0].selected == true){
|
|
document.form.misc_httpsport_x.disabled = true;
|
|
}
|
|
if(document.form.misc_http_x[0].checked == true
|
|
&& document.form.http_enable[1].selected == true){
|
|
document.form.misc_httpport_x.disabled = true;
|
|
}
|
|
if(document.form.http_lanport.value != '<% nvram_get("http_lanport"); %>'
|
|
|| document.form.https_lanport.value != '<% nvram_get("https_lanport"); %>'
|
|
|| document.form.http_enable.value != '<% nvram_get("http_enable"); %>'
|
|
|| document.form.misc_httpport_x.value != '<% nvram_get("misc_httpport_x"); %>'
|
|
|| document.form.misc_httpsport_x.value != '<% nvram_get("misc_httpsport_x"); %>'
|
|
){
|
|
restart_httpd_flag = true;
|
|
if(document.form.http_enable.value == "0"){ //HTTP
|
|
if(isFromWAN)
|
|
document.form.flag.value = "http://" + location.hostname + ":" + document.form.misc_httpport_x.value;
|
|
else if (document.form.http_lanport.value)
|
|
document.form.flag.value = "http://" + location.hostname + ":" + document.form.http_lanport.value;
|
|
else
|
|
document.form.flag.value = "http://" + location.hostname;
|
|
}
|
|
else if(document.form.http_enable.value == "1"){ //HTTPS
|
|
if(isFromWAN)
|
|
document.form.flag.value = "https://" + location.hostname + ":" + document.form.misc_httpsport_x.value;
|
|
else
|
|
document.form.flag.value = "https://" + location.hostname + ":" + document.form.https_lanport.value;
|
|
}
|
|
else{ //BOTH
|
|
if(isFromHTTPS){
|
|
if(isFromWAN)
|
|
document.form.flag.value = "https://" + location.hostname + ":" + document.form.misc_httpsport_x.value;
|
|
else
|
|
document.form.flag.value = "https://" + location.hostname + ":" + document.form.https_lanport.value;
|
|
}else{
|
|
if(isFromWAN)
|
|
document.form.flag.value = "http://" + location.hostname + ":" + document.form.misc_httpport_x.value;
|
|
else if (document.form.http_lanport.value)
|
|
document.form.flag.value = "http://" + location.hostname + ":" + document.form.http_lanport.value;
|
|
else
|
|
document.form.flag.value = "http://" + location.hostname;
|
|
}
|
|
}
|
|
}
|
|
if(ncb_enable != "" && document.form.ncb_enable_option.value != ncb_enable){
|
|
document.form.ncb_enable.value = document.form.ncb_enable_option.value;
|
|
ncb_enable_option_flag = true;
|
|
}
|
|
if((document.form.sw_mode_radio.value==1 && sw_mode!=3) ||
|
|
(document.form.sw_mode_radio.value==0 && sw_mode==3) ){
|
|
if (sw_mode == 1) document.form.sw_mode.value = 3;
|
|
else if (sw_mode == 3) document.form.sw_mode.value = 1;
|
|
sw_mode_radio_flag = true;
|
|
}
|
|
if(document.form.btn_ez_radiotoggle[1].checked){ // WiFi
|
|
document.form.btn_ez_radiotoggle.value = 1;
|
|
document.form.btn_ez_mode.value = 0;
|
|
}
|
|
else if(document.form.btn_ez_radiotoggle[2].checked){ // LED
|
|
document.form.btn_ez_radiotoggle.value = 0;
|
|
document.form.btn_ez_mode.value = 1;
|
|
}
|
|
else{ // WPS
|
|
document.form.btn_ez_radiotoggle.value = 0;
|
|
document.form.btn_ez_mode.value = 0;
|
|
}
|
|
if(reboot_schedule_support){
|
|
updateDateTime();
|
|
}
|
|
if(document.form.wandog_enable_chk.checked)
|
|
document.form.wandog_enable.value = "1";
|
|
else
|
|
document.form.wandog_enable.value = "0";
|
|
if(document.form.dns_probe_chk.checked)
|
|
document.form.dns_probe.value = "1";
|
|
else
|
|
document.form.dns_probe.value = "0";
|
|
if(document.form.https_lanport.value != '<% nvram_get("https_lanport"); %>')
|
|
alert('<#188#>');
|
|
showLoading();
|
|
var action_script_tmp = "restart_time;restart_upnp;";
|
|
if(hdspindown_support)
|
|
action_script_tmp += "restart_usb_idle;";
|
|
if(restart_httpd_flag) {
|
|
action_script_tmp += "restart_httpd;";
|
|
if (('<% nvram_get("enable_ftp"); %>' == "1")
|
|
&& ('<% nvram_get("ftp_tls"); %>' == "1")) {
|
|
action_script_tmp += "restart_ftpd;";
|
|
}
|
|
}
|
|
if(restart_firewall_flag)
|
|
action_script_tmp += "restart_firewall;";
|
|
if(ncb_enable_option_flag)
|
|
action_script_tmp += "restart_bhblock;";
|
|
if(sw_mode_radio_flag) {
|
|
action_script_tmp += "restart_chg_swmode;";
|
|
document.form.action_wait.value = 210;
|
|
}
|
|
if(pwrsave_support)
|
|
action_script_tmp += "pwrsave;";
|
|
if(pagecache_ratio_support)
|
|
action_script_tmp += "pagecache_ratio;";
|
|
if(needReboot){
|
|
action_script_tmp = "reboot";
|
|
document.form.action_wait.value = httpApi.hookGet("get_default_reboot_time");
|
|
if(confirm("<#65#>")){
|
|
document.form.action_script.value = action_script_tmp;
|
|
document.form.submit();
|
|
}
|
|
}
|
|
else{
|
|
document.form.action_script.value = action_script_tmp;
|
|
document.form.submit();
|
|
}
|
|
}
|
|
}
|
|
function validForm(){
|
|
if(hdspindown_support) {
|
|
if($('select[name="usb_idle_enable"]').val() == 1) {
|
|
$('input[name="usb_idle_timeout"]').prop("disabled", false);
|
|
if (!validator.range($('input[name="usb_idle_timeout"]')[0], 60, 3600))
|
|
return false;
|
|
}
|
|
else {
|
|
$('input[name="usb_idle_timeout"]').prop("disabled", true);
|
|
}
|
|
}
|
|
if((document.form.time_zone_select.value.search("DST") >= 0 || document.form.time_zone_select.value.search("TDT") >= 0) // DST area
|
|
&& document.form.dst_start_m.value == document.form.dst_end_m.value
|
|
&& document.form.dst_start_w.value == document.form.dst_end_w.value
|
|
&& document.form.dst_start_d.value == document.form.dst_end_d.value){
|
|
alert("<#2105#>"); //At same day
|
|
document.form.dst_start_m.focus();
|
|
return false;
|
|
}
|
|
if(document.form.sshd_enable.value != "0" && document.form.sshd_pass[1].checked && document.form.sshd_authkeys.value == ""){
|
|
alert("<#332#>");
|
|
document.form.sshd_authkeys.focus();
|
|
return false;
|
|
}
|
|
if(document.form.sshd_enable.value != 0){
|
|
if (!validator.range(document.form.sshd_port, 1, 65535))
|
|
return false;
|
|
else if(isPortConflict(document.form.sshd_port.value, "ssh")){
|
|
alert(isPortConflict(document.form.sshd_port.value, "ssh"));
|
|
document.form.sshd_port.focus();
|
|
return false;
|
|
}
|
|
if((wan_proto == "v6plus" || wan_proto == "ocnvc") && s46_ports_check_flag && array_ipv6_s46_ports.length > 1 && document.form.sshd_enable.value == 1){
|
|
if (!validator.range_s46_ports(document.form.sshd_port, "none")){
|
|
if(!confirm(port_confirm)){
|
|
document.form.sshd_port.focus();
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else{
|
|
document.form.sshd_port.disabled = true;
|
|
}
|
|
if (!validator.range(document.form.http_lanport, 1, 65535))
|
|
/*return false;*/ document.form.http_lanport = 80;
|
|
if (HTTPS_support && !document.form.https_lanport.disabled && !validator.range(document.form.https_lanport, 1024, 65535) && !tmo_support)
|
|
return false;
|
|
if (document.form.misc_http_x[0].checked) {
|
|
if (!document.form.misc_httpport_x.disabled && !validator.range(document.form.misc_httpport_x, 1024, 65535))
|
|
return false;
|
|
if (HTTPS_support && !document.form.misc_httpsport_x.disabled && !validator.range(document.form.misc_httpsport_x, 1024, 65535))
|
|
return false;
|
|
if (HTTPS_support && !document.form.misc_httpsport_x.disabled){
|
|
if (!validator.range(document.form.misc_httpsport_x, 1024, 65535))
|
|
return false;
|
|
if ((wan_proto == "v6plus" || wan_proto == "ocnvc") && s46_ports_check_flag && array_ipv6_s46_ports.length > 1){
|
|
if (!validator.range_s46_ports(document.form.misc_httpsport_x, "none")){
|
|
if(!confirm(port_confirm)){
|
|
document.form.misc_httpsport_x.focus();
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else{
|
|
document.form.misc_httpport_x.value = '<% nvram_get("misc_httpport_x"); %>';
|
|
document.form.misc_httpsport_x.value = '<% nvram_get("misc_httpsport_x"); %>';
|
|
}
|
|
if(document.form.sshd_port.value == document.form.https_lanport.value){
|
|
alert("<#3273#>");
|
|
$("#sshd_port").addClass("highlight");
|
|
$("#port_conflict_sshdport").show();
|
|
$("#https_lanport_input").addClass("highlight");
|
|
$("#port_conflict_httpslanport").show();
|
|
document.form.sshd_port.focus();
|
|
return false;
|
|
}
|
|
if(!validator.rangeAllowZero(document.form.shell_timeout_x, 10, 999, orig_shell_timeout_x))
|
|
return false;
|
|
if(!document.form.misc_httpport_x.disabled &&
|
|
isPortConflict(document.form.misc_httpport_x.value)){
|
|
alert(isPortConflict(document.form.misc_httpport_x.value));
|
|
document.form.misc_httpport_x.focus();
|
|
document.form.misc_httpport_x.select();
|
|
return false;
|
|
}
|
|
else if(!document.form.misc_httpsport_x.disabled &&
|
|
isPortConflict(document.form.misc_httpsport_x.value) && HTTPS_support){
|
|
alert(isPortConflict(document.form.misc_httpsport_x.value));
|
|
document.form.misc_httpsport_x.focus();
|
|
document.form.misc_httpsport_x.select();
|
|
return false;
|
|
}
|
|
else if(!document.form.https_lanport.disabled && isPortConflict(document.form.https_lanport.value) && HTTPS_support && !tmo_support){
|
|
alert(isPortConflict(document.form.https_lanport.value));
|
|
document.form.https_lanport.focus();
|
|
document.form.https_lanport.select();
|
|
return false;
|
|
}
|
|
else if(document.form.misc_httpsport_x.value == document.form.misc_httpport_x.value && HTTPS_support){
|
|
alert("<#2346#>");
|
|
document.form.misc_httpsport_x.focus();
|
|
document.form.misc_httpsport_x.select();
|
|
return false;
|
|
}
|
|
else if(!validator.rangeAllowZero(document.form.http_autologout, 10, 999, '<% nvram_get("http_autologout"); %>'))
|
|
return false;
|
|
if (pagecache_ratio_support) {
|
|
if (parseInt(document.form.pagecache_ratio.value) < 5)
|
|
document.form.pagecache_ratio.value = "5";
|
|
else if (parseInt(document.form.pagecache_ratio.value) > 90)
|
|
document.form.pagecache_ratio.value = "90";
|
|
}
|
|
if(reboot_schedule_support){
|
|
if(!document.form.reboot_date_x_Sun.checked && !document.form.reboot_date_x_Mon.checked &&
|
|
!document.form.reboot_date_x_Tue.checked && !document.form.reboot_date_x_Wed.checked &&
|
|
!document.form.reboot_date_x_Thu.checked && !document.form.reboot_date_x_Fri.checked &&
|
|
!document.form.reboot_date_x_Sat.checked && document.form.reboot_schedule_enable_x[0].checked)
|
|
{
|
|
alert("<#2087#>");
|
|
document.form.reboot_date_x_Sun.focus();
|
|
return false;
|
|
}
|
|
}
|
|
var WebUI_selected=0
|
|
if(document.form.http_client_radio[0].checked && restrict_rulelist_array.length >0){ //Allow only specified IP address
|
|
for(var x=0;x<restrict_rulelist_array.length;x++){
|
|
if(restrict_rulelist_array[x][0] == 1 && //enabled rule && Web UI included
|
|
(restrict_rulelist_array[x][2] == 1 || restrict_rulelist_array[x][2] == 3 || restrict_rulelist_array[x][2] == 5 || restrict_rulelist_array[x][2] == 7)){
|
|
WebUI_selected++;
|
|
}
|
|
}
|
|
if(WebUI_selected <= 0){
|
|
alert("<#2507#> <#768#>");
|
|
document.form.http_client_ip_x_0.focus();
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
function done_validating(action){
|
|
refreshpage();
|
|
}
|
|
function corrected_timezone(){
|
|
var today = new Date();
|
|
var StrIndex;
|
|
var timezone = uptimeStr_update.substring(26,31);
|
|
if(today.toString().indexOf("-") > 0)
|
|
StrIndex = today.toString().indexOf("-");
|
|
else if(today.toString().indexOf("+") > 0)
|
|
StrIndex = today.toString().indexOf("+");
|
|
if(StrIndex > 0){
|
|
if(timezone != today.toString().substring(StrIndex, StrIndex+5)){
|
|
document.getElementById("timezone_hint").style.display = "block";
|
|
document.getElementById("timezone_hint").innerHTML = "* <#2629#>";
|
|
}
|
|
else
|
|
return;
|
|
}
|
|
else
|
|
return;
|
|
}
|
|
var timezones = [
|
|
["UTC12", "(GMT-12:00) <#3418#>"],
|
|
["UTC11", "(GMT-11:00) <#3419#>"],
|
|
["UTC10", "(GMT-10:00) <#3420#>"],
|
|
["NAST9DST", "(GMT-09:00) <#3421#>"],
|
|
["PST8DST", "(GMT-08:00) <#3422#>"],
|
|
["MST7DST_1", "(GMT-07:00) <#3423#>"],
|
|
["MST7_2", "(GMT-07:00) <#3424#>"],
|
|
["MST7_3", "(GMT-07:00) <#3425#>"], //MST7DST_3
|
|
["CST6_2", "(GMT-06:00) <#3426#>"],
|
|
["CST6_3", "(GMT-06:00) <#3427#>"], //CST6DST_3
|
|
["CST6_3_1", "(GMT-06:00) <#3428#>"], //CST6DST_3_1
|
|
["UTC6DST", "(GMT-06:00) <#3429#>"],
|
|
["EST5DST", "(GMT-05:00) <#3430#>"],
|
|
["UTC5_1", "(GMT-05:00) <#3431#>"],
|
|
["UTC5_2", "(GMT-05:00) <#3432#>"],
|
|
["AST4DST", "(GMT-04:00) <#3433#>"],
|
|
["UTC4_1", "(GMT-04:00) <#3434#>"],
|
|
["UTC4_2", "(GMT-04:00) <#3435#>"],
|
|
["UTC4DST_2", "(GMT-04:00) <#3436#>"],
|
|
["UTC4DST_3", "(GMT-04:00) <#3437#>"],
|
|
["NST3.30DST", "(GMT-03:30) <#3438#>"],
|
|
["EBST3", "(GMT-03:00) <#3439#>"], //EBST3DST_1
|
|
["UTC3", "(GMT-03:00) <#3440#>"],
|
|
["UTC3DST", "(GMT-03:00) <#3518#>"], //UTC2DST
|
|
["UTC2_1", "(GMT-02:00) <#3441#>"], //EBST3DST_2
|
|
["UTC2", "(GMT-02:00) <#3442#>"],
|
|
["EUT1DST", "(GMT-01:00) <#3443#>"],
|
|
["UTC1", "(GMT-01:00) <#3444#>"],
|
|
["GMT0", "(GMT) <#3445#>"],
|
|
["GMT0DST_1", "(GMT) <#3446#>"],
|
|
["GMT0DST_2", "(GMT) <#3447#>"],
|
|
["GMT0_2", "(GMT) <#3448#>"],
|
|
["UTC-1DST_1", "(GMT+01:00) <#3449#>"],
|
|
["UTC-1DST_1_1","(GMT+01:00) <#3450#>"],
|
|
["UTC-1DST_1_2", "(GMT+01:00) <#3451#>"],
|
|
["UTC-1DST_2", "(GMT+01:00) <#3452#>"],
|
|
["MET-1DST", "(GMT+01:00) <#3453#>"],
|
|
["MET-1DST_1", "(GMT+01:00) <#3455#>"],
|
|
["MEZ-1DST", "(GMT+01:00) <#3456#>"],
|
|
["MEZ-1DST_1", "(GMT+01:00) <#3457#>"],
|
|
["UTC-1_3", "(GMT+01:00) <#3458#>"],
|
|
["UTC-2DST", "(GMT+02:00) <#3459#>"],
|
|
["UTC-2DST_3", "(GMT+02:00) <#3454#>"],
|
|
["EST-2", "(GMT+02:00) <#3460#>"],
|
|
["UTC-2DST_4", "(GMT+02:00) <#3461#>"],
|
|
["UTC-2DST_2", "(GMT+02:00) <#3464#>"],
|
|
["IST-2DST", "(GMT+02:00) <#3465#>"],
|
|
["EET-2DST", "(GMT+02:00) <#3467#>"],
|
|
["UTC-2_1", "(GMT+02:00) <#3463#>"],
|
|
["SAST-2", "(GMT+02:00) <#3466#>"],
|
|
["UTC-3_1", "(GMT+03:00) <#3470#>"],
|
|
["UTC-3_2", "(GMT+03:00) <#3471#>"],
|
|
["UTC-3_3", "(GMT+03:00) <#3462#>"],
|
|
["UTC-3_4", "(GMT+03:00) <#3468#>"],
|
|
["UTC-3_5", "(GMT+03:00) <#3469#>"], //UTC-4_7
|
|
["IST-3", "(GMT+03:00) <#3472#>"],
|
|
["UTC-3_6", "(GMT+03:00) <#3473#>"],
|
|
["UTC-3.30", "(GMT+03:30) <#3474#>"], //UTC-3.30DST
|
|
["UTC-4_1", "(GMT+04:00) <#3475#>"],
|
|
["UTC-4_5", "(GMT+04:00) <#3477#>"],
|
|
["UTC-4_4", "(GMT+04:00) <#3476#>"],
|
|
["UTC-4_6", "(GMT+04:00) <#3478#>"],
|
|
["UTC-4.30", "(GMT+04:30) <#3479#>"],
|
|
["UTC-5", "(GMT+05:00) <#3481#>"],
|
|
["UTC-5_1", "(GMT+05:00) <#3480#>"],
|
|
["UTC-5.30_2", "(GMT+05:30) <#3482#>"],
|
|
["UTC-5.30_1", "(GMT+05:30) <#3483#>"],
|
|
["UTC-5.30", "(GMT+05:30) <#3486#>"],
|
|
["UTC-5.45", "(GMT+05:45) <#3484#>"],
|
|
["RFT-6", "(GMT+06:00) <#3487#>"],
|
|
["UTC-6", "(GMT+06:00) <#3485#>"],
|
|
["UTC-6.30", "(GMT+06:30) <#3488#>"],
|
|
["UTC-7", "(GMT+07:00) <#3489#>"],
|
|
["UTC-7_2", "(GMT+07:00) <#3491#>"],
|
|
["UTC-7_3", "(GMT+07:00) <#3490#>"], //UTC-6_2
|
|
["CST-8", "(GMT+08:00) <#3492#>"],
|
|
["CST-8_1", "(GMT+08:00) <#3493#>"],
|
|
["SST-8", "(GMT+08:00) <#3494#>"],
|
|
["CCT-8", "(GMT+08:00) <#3495#>"],
|
|
["WAS-8", "(GMT+08:00) <#3496#>"],
|
|
["UTC-8", "(GMT+08:00) <#3497#>"],
|
|
["UTC-8_1", "(GMT+08:00) <#3498#>"],
|
|
["UTC-9_1", "(GMT+09:00) <#3499#>"],
|
|
["UTC-9_3", "(GMT+09:00) <#3501#>"],
|
|
["JST", "(GMT+09:00) <#3500#>"],
|
|
["CST-9.30", "(GMT+09:30) <#3502#>"],
|
|
["UTC-9.30DST", "(GMT+09:30) <#3503#>"],
|
|
["UTC-10DST_1", "(GMT+10:00) <#3504#>"],
|
|
["UTC-10_2", "(GMT+10:00) <#3505#>"],
|
|
["UTC-10_4", "(GMT+10:00) <#3507#>"],
|
|
["TST-10TDT", "(GMT+10:00) <#3506#>"],
|
|
["UTC-10_6", "(GMT+10:00) <#3508#>"],
|
|
["UTC-11", "(GMT+11:00) <#3509#>"],
|
|
["UTC-11_1", "(GMT+11:00) <#3510#>"],
|
|
["UTC-11_3", "(GMT+11:00) <#3517#>"],
|
|
["UTC-11_4", "(GMT+11:00) <#3512#>"],
|
|
["UTC-12", "(GMT+12:00) <#3511#>"],
|
|
["UTC-12_3", "(GMT+12:00) <#3513#>"], //UTC-12DST
|
|
["UTC-12_2", "(GMT+12:00) <#3516#>"],
|
|
["NZST-12DST", "(GMT+12:00) <#3514#>"],
|
|
["UTC-13", "(GMT+13:00) <#3515#>"]];
|
|
function load_timezones(){
|
|
free_options(document.form.time_zone_select);
|
|
for(var i = 0; i < timezones.length; i++){
|
|
add_option(document.form.time_zone_select,
|
|
timezones[i][1], timezones[i][0],
|
|
(document.form.time_zone.value == timezones[i][0]));
|
|
}
|
|
select_time_zone();
|
|
}
|
|
var dst_month = new Array("", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
|
|
var dst_week = new Array("", "1st", "2nd", "3rd", "4th", "5th");
|
|
var dst_day = new Array("<#1708#>", "<#1706#>", "<#1710#>", "<#1711#>", "<#1709#>", "<#1705#>", "<#1707#>");
|
|
var dst_hour = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
|
|
"13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23");
|
|
var dstoff_start_m,dstoff_start_w,dstoff_start_d,dstoff_start_h;
|
|
var dstoff_end_m,dstoff_end_w,dstoff_end_d,dstoff_end_h;
|
|
function parse_dstoffset(_dstoffset){ //Mm.w.d/h,Mm.w.d/h
|
|
if(_dstoffset){
|
|
var dstoffset_startend = _dstoffset.split(",");
|
|
if(dstoffset_startend[0] != "" && dstoffset_startend[0] != undefined){
|
|
var dstoffset_start = trim(dstoffset_startend[0]);
|
|
var dstoff_start = dstoffset_start.split(".");
|
|
dstoff_start_m = parseInt(dstoff_start[0].substring(1));
|
|
if(check_range(dstoff_start_m,1,12)){
|
|
document.form.dst_start_m.value = dstoff_start_m;
|
|
}
|
|
if(dstoff_start[1] != "" && dstoff_start[1] != undefined){
|
|
dstoff_start_w = parseInt(dstoff_start[1]);
|
|
if(check_range(dstoff_start_w,1,5)){
|
|
document.form.dst_start_w.value = dstoff_start_w;
|
|
}
|
|
}
|
|
if(dstoff_start[2] != "" && dstoff_start[2] != undefined){
|
|
dstoff_start_d = parseInt(dstoff_start[2].split("/")[0]);
|
|
if(check_range(dstoff_start_d,0,6)){
|
|
document.form.dst_start_d.value = dstoff_start_d;
|
|
}
|
|
dstoff_start_h = parseInt(dstoff_start[2].split("/")[1]);
|
|
if(check_range(dstoff_start_h,0,23)){
|
|
document.form.dst_start_h.value = dstoff_start_h;
|
|
}
|
|
}
|
|
}
|
|
if(dstoffset_startend[1] != "" && dstoffset_startend[1] != undefined){
|
|
var dstoffset_end = trim(dstoffset_startend[1]);
|
|
var dstoff_end = dstoffset_end.split(".");
|
|
dstoff_end_m = parseInt(dstoff_end[0].substring(1));
|
|
if(check_range(dstoff_end_m,1,12)){
|
|
document.form.dst_end_m.value = dstoff_end_m;
|
|
}
|
|
if(dstoff_end[1] != "" && dstoff_end[1] != undefined){
|
|
dstoff_end_w = parseInt(dstoff_end[1]);
|
|
if(check_range(dstoff_end_w,1,5)){
|
|
document.form.dst_end_w.value = dstoff_end_w;
|
|
}
|
|
}
|
|
if(dstoff_end[2] != "" && dstoff_end[2] != undefined){
|
|
dstoff_end_d = parseInt(dstoff_end[2].split("/")[0]);
|
|
if(check_range(dstoff_end_d,0,6)){
|
|
document.form.dst_end_d.value = dstoff_end_d;
|
|
}
|
|
dstoff_end_h = parseInt(dstoff_end[2].split("/")[1]);
|
|
if(check_range(dstoff_end_h,0,23)){
|
|
document.form.dst_end_h.value = dstoff_end_h;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function check_range(obj, first, last){
|
|
if(obj != "NaN" && first <= obj && obj <= last)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
function hide_https_lanport(_value){
|
|
if(tmo_support){
|
|
document.getElementById("https_lanport").style.display = "none";
|
|
return false;
|
|
}
|
|
if(sw_mode == '1' || sw_mode == '2'){
|
|
var https_lanport_num = "<% nvram_get("https_lanport"); %>";
|
|
document.getElementById("https_lanport").style.display = (_value == "0") ? "none" : "";
|
|
document.form.https_lanport.disabled = (_value == "0") ? true : false;
|
|
document.form.https_lanport.value = "<% nvram_get("https_lanport"); %>";
|
|
document.getElementById("https_access_page").innerHTML = "<#2345#> ";
|
|
document.getElementById("https_access_page").innerHTML += "<a href=\"https://"+theUrl+":"+https_lanport_num+"\" target=\"_blank\" style=\"color:#FC0;text-decoration: underline; font-family:Lucida Console;\">http<span>s</span>://"+theUrl+"<span>:"+https_lanport_num+"</span></a>";
|
|
document.getElementById("https_access_page").style.display = (_value == "0") ? "none" : "";
|
|
}
|
|
else{
|
|
document.getElementById("https_access_page").style.display = 'none';
|
|
}
|
|
if(le_enable != "1" && _value != "0"){
|
|
$("#https_download_cert").css("display", "");
|
|
if(orig_http_enable == "0"){
|
|
$("#download_cert_btn").css("display", "none");
|
|
$("#clear_cert_btn").css("display", "none");
|
|
$("#download_cert_desc").css("display", "");
|
|
}
|
|
else{
|
|
$("#download_cert_btn").css("display", "");
|
|
$("#clear_cert_btn").css("display", "");
|
|
$("#download_cert_desc").css("display", "none");
|
|
}
|
|
}
|
|
else{
|
|
$("#https_download_cert").css("display", "none");
|
|
}
|
|
}
|
|
function show_http_clientlist(){
|
|
var code = "";
|
|
code +='<table width="100%" border="1" cellspacing="0" cellpadding="4" align="center" class="list_table" id="http_clientlist_table">';
|
|
if(restrict_rulelist_array.length == 0) {
|
|
code +='<tr><td style="color:#FFCC00;"><#2448#></td></tr>';
|
|
}
|
|
else {
|
|
var transformNumToText = function(restrict_type) {
|
|
var bit_text_array = ["", "<#771#>", "<#772#>", "<#773#>"];
|
|
var type_text = "";
|
|
for(var i = 1; restrict_type != 0 && i <= 4; i += 1) {
|
|
if(restrict_type & 1) {
|
|
if(type_text == "")
|
|
type_text += bit_text_array[i];
|
|
else
|
|
type_text += ", " + bit_text_array[i];
|
|
}
|
|
restrict_type = restrict_type >> 1;
|
|
}
|
|
return type_text;
|
|
};
|
|
for(var i = 0; i < restrict_rulelist_array.length; i += 1) {
|
|
if(restrict_rulelist_array[i][0] == "1")
|
|
code += '<tr style="color:#FFFFFF;">';
|
|
else
|
|
code += '<tr style="color:#A0A0A0;">';
|
|
code += '<td width="10%">';
|
|
if(restrict_rulelist_array[i][0] == "1")
|
|
code += '<div class="check" onclick="control_rule_status(this);"><div style="width:16px;height:16px;margin: 3px auto" class="icon_check"></div></div>';
|
|
else
|
|
code += '<div class="cancel" style="" onclick="control_rule_status(this);"><div style="width:16px;height:16px;margin: 3px auto" class="icon_cancel"></div></div>';
|
|
code += '</td>';
|
|
code += '<td width="40%">';
|
|
code += restrict_rulelist_array[i][1];
|
|
code += "</td>";
|
|
code += '<td width="40%">';
|
|
code += transformNumToText(restrict_rulelist_array[i][2]);
|
|
code += "</td>";
|
|
code += '<td width="10%">';
|
|
code += '<div class="remove" style="margin:0 auto" onclick="deleteRow(this);">';
|
|
code += "</td>";
|
|
code += '</tr>';
|
|
}
|
|
}
|
|
code +='</table>';
|
|
document.getElementById("http_clientlist_Block").innerHTML = code;
|
|
}
|
|
function check_Timefield_checkbox(){ // To check Date checkbox checked or not and control Time field disabled or not
|
|
if( document.form.reboot_date_x_Sun.checked == true
|
|
|| document.form.reboot_date_x_Mon.checked == true
|
|
|| document.form.reboot_date_x_Tue.checked == true
|
|
|| document.form.reboot_date_x_Wed.checked == true
|
|
|| document.form.reboot_date_x_Thu.checked == true
|
|
|| document.form.reboot_date_x_Fri.checked == true
|
|
|| document.form.reboot_date_x_Sat.checked == true ){
|
|
inputCtrl(document.form.reboot_time_x_hour,1);
|
|
inputCtrl(document.form.reboot_time_x_min,1);
|
|
document.form.reboot_schedule.disabled = false;
|
|
}
|
|
else{
|
|
inputCtrl(document.form.reboot_time_x_hour,0);
|
|
inputCtrl(document.form.reboot_time_x_min,0);
|
|
document.form.reboot_schedule.disabled = true;
|
|
document.getElementById('reboot_schedule_time_tr').style.display ="";
|
|
}
|
|
}
|
|
function deleteRow(r){
|
|
var i=r.parentNode.parentNode.rowIndex;
|
|
document.getElementById('http_clientlist_table').deleteRow(i);
|
|
restrict_rulelist_array.splice(i,1);
|
|
if(restrict_rulelist_array.length == 0)
|
|
show_http_clientlist();
|
|
}
|
|
function addRow(obj, upper){
|
|
if('<% nvram_get("http_client"); %>' != "1")
|
|
document.form.http_client_radio[0].checked = true;
|
|
var rule_num = restrict_rulelist_array.length;
|
|
if(rule_num >= upper){
|
|
alert("<#2524#> " + upper + " <#2525#>");
|
|
return false;
|
|
}
|
|
if(obj.value == ""){
|
|
alert("<#332#>");
|
|
obj.focus();
|
|
obj.select();
|
|
return false;
|
|
}
|
|
else if(validator.validIPForm(obj, 2) != true){
|
|
return false;
|
|
}
|
|
var access_type_value = 0;
|
|
$(".access_type").each(function() {
|
|
if(this.checked)
|
|
access_type_value += parseInt($(this).val());
|
|
});
|
|
if(access_type_value == 0) {
|
|
alert("<#2507#>");
|
|
return false;
|
|
}
|
|
else{
|
|
var newRuleArray = new Array();
|
|
newRuleArray.push("1");
|
|
newRuleArray.push(obj.value.trim());
|
|
newRuleArray.push(access_type_value.toString());
|
|
var newRuleArray_tmp = new Array();
|
|
newRuleArray_tmp = newRuleArray.slice();
|
|
newRuleArray_tmp.splice(0, 1);
|
|
newRuleArray_tmp.splice(1, 1);
|
|
if(restrict_rulelist_array.length > 0) {
|
|
for(var i = 0; i < restrict_rulelist_array.length; i += 1) {
|
|
var restrict_rulelist_array_tmp = restrict_rulelist_array[i].slice();
|
|
restrict_rulelist_array_tmp.splice(0, 1);
|
|
restrict_rulelist_array_tmp.splice(1, 1);
|
|
if(newRuleArray_tmp.toString() == restrict_rulelist_array_tmp.toString()) { //compare IP
|
|
alert("<#2517#>");
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
restrict_rulelist_array.push(newRuleArray);
|
|
obj.value = "";
|
|
$(".access_type").each(function() {
|
|
if(this.checked)
|
|
$(this).prop('checked', false);
|
|
});
|
|
show_http_clientlist();
|
|
if($("#selAll").hasClass("all_enable"))
|
|
$("#selAll").removeClass("all_enable").addClass("all_disable");
|
|
}
|
|
}
|
|
function keyBoardListener(evt){
|
|
var nbr = (window.evt)?event.keyCode:event.which;
|
|
if(nbr == 13)
|
|
addRow(document.form.http_client_ip_x_0, 4);
|
|
}
|
|
function setClientIP(ipaddr){
|
|
document.form.http_client_ip_x_0.value = ipaddr;
|
|
hideClients_Block();
|
|
}
|
|
function hideClients_Block(){
|
|
document.getElementById("pull_arrow").src = "/images/arrow-down.gif";
|
|
document.getElementById('ClientList_Block_PC').style.display='none';
|
|
}
|
|
function pullLANIPList(obj){
|
|
var element = document.getElementById('ClientList_Block_PC');
|
|
var isMenuopen = element.offsetWidth > 0 || element.offsetHeight > 0;
|
|
if(isMenuopen == 0){
|
|
obj.src = "/images/arrow-top.gif"
|
|
element.style.display = 'block';
|
|
document.form.http_client_ip_x_0.focus();
|
|
}
|
|
else
|
|
hideClients_Block();
|
|
}
|
|
function hideport(flag){
|
|
document.getElementById("accessfromwan_port").style.display = (flag == 1) ? "" : "none";
|
|
if(!HTTPS_support){
|
|
document.getElementById("NSlookup_help_for_WAN_access").style.display = (flag == 1) ? "" : "none";
|
|
var orig_str = document.getElementById("access_port_title").innerHTML;
|
|
document.getElementById("access_port_title").innerHTML = orig_str.replace(/HTTPS/, "HTTP");
|
|
document.getElementById("http_port").style.display = (flag == 1) ? "" : "none";
|
|
document.form.misc_httpport_x.disabled = (flag == 1) ? false: true;
|
|
}
|
|
else{
|
|
document.getElementById("WAN_access_hint").style.display = (flag == 1) ? "" : "none";
|
|
document.getElementById("wan_access_url").style.display = (flag == 1) ? "" : "none";
|
|
change_url(document.form.misc_httpsport_x.value, "https_wan");
|
|
document.getElementById("https_port").style.display = (flag == 1) ? "" : "none";
|
|
document.form.misc_httpsport_x.disabled = (flag == 1) ? false: true;
|
|
}
|
|
}
|
|
var autoChange = false;
|
|
function enable_wan_access(flag){
|
|
if(HTTPS_support){
|
|
if(flag == 1){
|
|
if(document.form.http_enable.value == "0"){
|
|
document.form.http_enable.selectedIndex = 2;
|
|
autoChange = true;
|
|
hide_https_lanport(document.form.http_enable.value);
|
|
}
|
|
}
|
|
else{
|
|
var effectApps = [];
|
|
if(app_support) effectApps.push("<#4246#>");
|
|
if(alexa_support) effectApps.push("<#4247#>");
|
|
var original_misc_http_x = httpApi.nvramGet(["misc_http_x"]).misc_http_x;
|
|
var RemoteAccessHint = "<#4245#>".replace("$Apps$", effectApps.join(", "));
|
|
if(original_misc_http_x == '1' && effectApps.length != 0){
|
|
if(!confirm(RemoteAccessHint)){
|
|
document.form.misc_http_x[0].checked = true;
|
|
hideport(1);
|
|
enable_wan_access(1);
|
|
return false;
|
|
}
|
|
}
|
|
if(autoChange){
|
|
document.form.http_enable.selectedIndex = 0;
|
|
autoChange = false;
|
|
hide_https_lanport(document.form.http_enable.value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function check_wan_access(http_enable){
|
|
if(http_enable == "0" && document.form.misc_http_x[0].checked == true){ //While Accesss from WAN enabled, not allow to set HTTP only
|
|
alert("When \"Web Access from WAN\" is enabled, HTTPS must be enabled.");
|
|
document.form.http_enable.selectedIndex = 2;
|
|
hide_https_lanport(document.form.http_enable.value);
|
|
}
|
|
}
|
|
function change_url(num, flag){
|
|
if(flag == 'https_lan'){
|
|
var https_lanport_num_new = num;
|
|
document.getElementById("https_access_page").innerHTML = "<#2345#> ";
|
|
document.getElementById("https_access_page").innerHTML += "<a href=\"https://"+theUrl+":"+https_lanport_num_new+"\" target=\"_blank\" style=\"color:#FC0;text-decoration: underline; font-family:Lucida Console;\">http<span>s</span>://"+theUrl+"<span>:"+https_lanport_num_new+"</span></a>";
|
|
}
|
|
else if(flag == 'https_wan'){
|
|
var https_wanport = num;
|
|
var host_addr = "";
|
|
var ddns_server_x = httpApi.nvramGet(["ddns_server_x"]).ddns_server_x;
|
|
if(check_ddns_status() && ddns_server_x != "WWW.DNSOMATIC.COM")
|
|
host_addr = ddns_hostname_x_t;
|
|
else
|
|
host_addr = wan_ipaddr;
|
|
document.getElementById("wan_access_url").innerHTML = "<#2345#> ";
|
|
document.getElementById("wan_access_url").innerHTML += "<a href=\"https://"+host_addr+":"+https_wanport+"\" target=\"_blank\" style=\"color:#FC0;text-decoration: underline; font-family:Lucida Console;\">http<span>s</span>://"+host_addr+"<span>:"+https_wanport+"</span></a>";
|
|
}
|
|
}
|
|
/* password item show or not */
|
|
function plain_text_check(obj){
|
|
obj.toggleClass("icon_eye_close").toggleClass("icon_eye_open");
|
|
$.each( obj.attr("for").split(" "), function(i, val){
|
|
$("#"+val).prop("type", (function(){return obj.hasClass("icon_eye_close") ? "password" : "text";}));
|
|
});
|
|
}
|
|
function select_time_zone(){
|
|
if(document.form.time_zone_select.value.search("DST") >= 0 || document.form.time_zone_select.value.search("TDT") >= 0){ //DST area
|
|
document.form.time_zone_dst.value=1;
|
|
document.getElementById("dst_changes_start").style.display="";
|
|
document.getElementById("dst_changes_end").style.display="";
|
|
document.getElementById("dst_start").style.display="";
|
|
document.getElementById("dst_end").style.display="";
|
|
}
|
|
else{
|
|
document.form.time_zone_dst.value=0;
|
|
document.getElementById("dst_changes_start").style.display="none";
|
|
document.getElementById("dst_changes_end").style.display="none";
|
|
document.getElementById("dst_start").style.display="none";
|
|
document.getElementById("dst_end").style.display="none";
|
|
}
|
|
var getTimeZoneOffset = function(tz){
|
|
return tz_table[tz] ? tz_table[tz] : "M3.2.0/2,M11.1.0/2";
|
|
}
|
|
var dstOffset = getTimeZoneOffset(document.form.time_zone_select.value)
|
|
parse_dstoffset(dstOffset);
|
|
}
|
|
function clean_scorebar(obj){
|
|
if(obj.value == "")
|
|
document.getElementById("scorebarBorder").style.display = "none";
|
|
}
|
|
function check_sshd_enable(obj_value){
|
|
if(obj_value != 0){
|
|
document.getElementById('sshd_port_tr').style.display = "";
|
|
if(obj_value == 1){
|
|
document.getElementById('SSH_Port_Suggestion1').style.display = "";
|
|
}
|
|
else{
|
|
document.getElementById('SSH_Port_Suggestion1').style.display = "none";
|
|
}
|
|
document.getElementById('sshd_password_tr').style.display = "";
|
|
document.getElementById('auth_keys_tr').style.display = "";
|
|
}
|
|
else{
|
|
document.getElementById('sshd_port_tr').style.display = "none";
|
|
document.getElementById('SSH_Port_Suggestion1').style.display = "none";
|
|
document.getElementById('sshd_password_tr').style.display = "none";
|
|
document.getElementById('auth_keys_tr').style.display = "none";
|
|
}
|
|
}
|
|
/*function sshd_remote_access(obj_value){
|
|
if(obj_value == 1){
|
|
document.getElementById('remote_access_port_tr').style.display = "";
|
|
}
|
|
else{
|
|
document.getElementById('remote_access_port_tr').style.display = "none";
|
|
}
|
|
}*/
|
|
/*function sshd_forward(obj_value){
|
|
if(obj_value == 1){
|
|
document.getElementById('remote_forwarding_port_tr').style.display = "";
|
|
}
|
|
else{
|
|
document.getElementById('remote_forwarding_port_tr').style.display = "none";
|
|
}
|
|
}*/
|
|
function telnet_enable(flag){
|
|
document.getElementById('SSH_Port_Suggestion2').style.display = (flag == 1) ? "":"none";
|
|
}
|
|
function display_spec_IP(flag){
|
|
if(flag == 0){
|
|
document.getElementById("http_client_table").style.display = "none";
|
|
document.getElementById("http_clientlist_Block").style.display = "none";
|
|
}
|
|
else{
|
|
document.getElementById("http_client_table").style.display = "";
|
|
document.getElementById("http_clientlist_Block").style.display = "";
|
|
setTimeout("showDropdownClientList('setClientIP', 'ip', 'all', 'ClientList_Block_PC', 'pull_arrow', 'online');", 1000);
|
|
}
|
|
}
|
|
function hide_reboot_option(flag){
|
|
document.getElementById("reboot_schedule_date_tr").style.display = (flag == 1) ? "" : "none";
|
|
document.getElementById("reboot_schedule_time_tr").style.display = (flag == 1) ? "" : "none";
|
|
if(flag==1)
|
|
check_Timefield_checkbox();
|
|
}
|
|
function getrebootTimeRange(str, pos)
|
|
{
|
|
if (pos == 0)
|
|
return str.substring(7,9);
|
|
else if (pos == 1)
|
|
return str.substring(9,11);
|
|
}
|
|
function setrebootTimeRange(rd, rh, rm)
|
|
{
|
|
return(rd.value+rh.value+rm.value);
|
|
}
|
|
function updateDateTime()
|
|
{
|
|
if(document.form.reboot_schedule_enable_x[0].checked){
|
|
document.form.reboot_schedule_enable.value = "1";
|
|
document.form.reboot_schedule.disabled = false;
|
|
document.form.reboot_schedule.value = setDateCheck(
|
|
document.form.reboot_date_x_Sun,
|
|
document.form.reboot_date_x_Mon,
|
|
document.form.reboot_date_x_Tue,
|
|
document.form.reboot_date_x_Wed,
|
|
document.form.reboot_date_x_Thu,
|
|
document.form.reboot_date_x_Fri,
|
|
document.form.reboot_date_x_Sat);
|
|
document.form.reboot_schedule.value = setrebootTimeRange(
|
|
document.form.reboot_schedule,
|
|
document.form.reboot_time_x_hour,
|
|
document.form.reboot_time_x_min);
|
|
}
|
|
else
|
|
document.form.reboot_schedule_enable.value = "0";
|
|
}
|
|
function paste_password(){
|
|
if($("#show_pass_1").hasClass("icon_eye_close"))
|
|
plain_text_check($("#show_pass_1"));
|
|
}
|
|
function control_rule_status(obj) {
|
|
var $itemObj = $(obj);
|
|
var $trObj = $itemObj.closest('tr');
|
|
var row_idx = $trObj.index();
|
|
if($itemObj.hasClass("cancel")) {
|
|
$itemObj.removeClass("cancel").addClass("check");
|
|
$itemObj.children().removeClass("icon_cancel").addClass("icon_check");
|
|
restrict_rulelist_array[row_idx][0] = "1";
|
|
$trObj.css({"color" : "#FFFFFF"});
|
|
}
|
|
else {
|
|
$itemObj.removeClass("check").addClass("cancel");
|
|
$itemObj.children().removeClass("icon_check").addClass("icon_cancel");
|
|
restrict_rulelist_array[row_idx][0] = "0";
|
|
$trObj.css({"color" : "#A0A0A0"});
|
|
}
|
|
if($("#selAll").hasClass("all_enable"))
|
|
$("#selAll").removeClass("all_enable").addClass("all_disable");
|
|
}
|
|
function control_all_rule_status(obj) {
|
|
var set_all_rule_status = function(stauts) {
|
|
for(var i = 0; i < restrict_rulelist_array.length; i += 1) {
|
|
restrict_rulelist_array[i][0] = stauts;
|
|
}
|
|
};
|
|
var $itemObj = $(obj);
|
|
if($itemObj.hasClass("all_enable")) {
|
|
$itemObj.removeClass("all_enable").addClass("all_disable");
|
|
set_all_rule_status("1");
|
|
}
|
|
else {
|
|
$itemObj.removeClass("all_disable").addClass("all_enable");
|
|
set_all_rule_status("0");
|
|
}
|
|
show_http_clientlist();
|
|
}
|
|
function change_hddSpinDown(obj_value) {
|
|
if(obj_value == "0") {
|
|
$("#usb_idle_timeout_tr").css("display", "none");
|
|
}
|
|
else {
|
|
$("#usb_idle_timeout_tr").css("display", "");
|
|
}
|
|
}
|
|
function show_network_monitoring(){
|
|
var orig_dns_probe = httpApi.nvramGet(["dns_probe"]).dns_probe;
|
|
var orig_wandog_enable = httpApi.nvramGet(["wandog_enable"]).wandog_enable;
|
|
appendMonitorOption(document.form.dns_probe_chk);
|
|
appendMonitorOption(document.form.wandog_enable_chk);
|
|
setTimeout("showPingTargetList();", 500);
|
|
}
|
|
function appendMonitorOption(obj){
|
|
if(obj.name == "wandog_enable_chk"){
|
|
if(obj.checked){
|
|
document.getElementById("ping_tr").style.display = "";
|
|
inputCtrl(document.form.wandog_target, 1);
|
|
}
|
|
else{
|
|
document.getElementById("ping_tr").style.display = "none";
|
|
inputCtrl(document.form.wandog_target, 0);
|
|
}
|
|
}
|
|
else if(obj.name == "dns_probe_chk"){
|
|
if(obj.checked){
|
|
document.getElementById("probe_host_tr").style.display = "";
|
|
document.getElementById("probe_content_tr").style.display = "";
|
|
inputCtrl(document.form.dns_probe_host, 1);
|
|
inputCtrl(document.form.dns_probe_content, 1);
|
|
}
|
|
else{
|
|
document.getElementById("probe_host_tr").style.display = "none";
|
|
document.getElementById("probe_content_tr").style.display = "none";
|
|
inputCtrl(document.form.dns_probe_host, 0);
|
|
inputCtrl(document.form.dns_probe_content, 0);
|
|
}
|
|
}
|
|
}
|
|
var isPingListOpen = 0;
|
|
function showPingTargetList(){
|
|
if(is_CN){
|
|
var APPListArray = [
|
|
["Baidu", "www.baidu.com"], ["QQ", "www.qq.com"], ["Taobao", "www.taobao.com"]
|
|
];
|
|
}
|
|
else{
|
|
var APPListArray = [
|
|
["Google ", "www.google.com"], ["Facebook", "www.facebook.com"], ["Youtube", "www.youtube.com"], ["Yahoo", "www.yahoo.com"],
|
|
["Baidu", "www.baidu.com"], ["Wikipedia", "www.wikipedia.org"], ["Windows Live", "www.live.com"], ["QQ", "www.qq.com"],
|
|
["Amazon", "www.amazon.com"], ["Twitter", "www.twitter.com"], ["Taobao", "www.taobao.com"], ["Blogspot", "www.blogspot.com"],
|
|
["Linkedin", "www.linkedin.com"], ["Sina", "www.sina.com"], ["eBay", "www.ebay.com"], ["MSN", "msn.com"], ["Bing", "www.bing.com"],
|
|
["", "www.yandex.ru"], ["WordPress", "www.wordpress.com"], ["", "www.vk.com"]
|
|
];
|
|
}
|
|
var code = "";
|
|
for(var i = 0; i < APPListArray.length; i++){
|
|
code += '<a><div onclick="setPingTarget(\''+APPListArray[i][1]+'\');"><strong>'+APPListArray[i][0]+'</strong></div></a>';
|
|
}
|
|
code +='<!--[if lte IE 6.5]><iframe class="hackiframe2"></iframe><![endif]-->';
|
|
document.getElementById("TargetList_Block_PC").innerHTML = code;
|
|
}
|
|
function setPingTarget(ipaddr){
|
|
document.form.wandog_target.value = ipaddr;
|
|
hidePingTargetList();
|
|
}
|
|
function hidePingTargetList(){
|
|
document.getElementById("ping_pull_arrow").src = "/images/arrow-down.gif";
|
|
document.getElementById('TargetList_Block_PC').style.display='none';
|
|
isPingListOpen = 0;
|
|
}
|
|
function pullPingTargetList(obj){
|
|
if(isPingListOpen == 0){
|
|
obj.src = "/images/arrow-top.gif"
|
|
document.getElementById("TargetList_Block_PC").style.display = 'block';
|
|
document.form.wandog_target.focus();
|
|
isPingListOpen = 1;
|
|
}
|
|
else
|
|
hidePingTargetList();
|
|
}
|
|
function reset_portconflict_hint(){
|
|
if($("#sshd_port").hasClass("highlight"))
|
|
$("#sshd_port").removeClass("highlight");
|
|
if($("#https_lanport_input").hasClass("highlight"))
|
|
$("#https_lanport_input").removeClass("highlight");
|
|
$("#port_conflict_sshdport").hide();
|
|
$("#port_conflict_httpslanport").hide();
|
|
}
|
|
function save_cert_key(){
|
|
location.href = "cert.tar";
|
|
}
|
|
function clear_cert_key(){
|
|
if(confirm("You will be automatically logged out for the renewal, are you sure you want to continue?")){
|
|
$.ajax({url: "clear_file.cgi?clear_file_name=cert.tgz"})
|
|
showLoading();
|
|
setTimeout(refreshpage, 1000);
|
|
}
|
|
}
|
|
var NTPListArray = [
|
|
["pool.ntp.org","pool.ntp.org"], ["time01.syd.optusnet.com.au", "time01.syd.optusnet.com.au"],
|
|
["time01.mel.optusnet.com.au", "time01.mel.optusnet.com.au"], ["time02.mel.optusnet.com.au", "time02.mel.optusnet.com.au"],
|
|
["au.pool.ntp.org", "au.pool.ntp.org"], ["time.nist.gov", "time.nist.gov"]
|
|
];
|
|
function showNTPList(){
|
|
var code = "";
|
|
for(var i = 0; i < NTPListArray.length; i++){
|
|
code += '<a><div onmouseover="over_var=1;" onmouseout="over_var=0;" onclick="setNTP(\''+NTPListArray[i][1]+'\');"><strong>'+NTPListArray[i][0]+'</strong></div></a>';
|
|
}
|
|
code +='<!--[if lte IE 6.5]><iframe class="hackiframe2"></iframe><![endif]-->';
|
|
document.getElementById("NTPList_Block_PC").innerHTML = code;
|
|
}
|
|
function setNTP(ntp_url){
|
|
document.form.ntp_server0.value = ntp_url;
|
|
hideNTP_Block();
|
|
over_var = 0;
|
|
}
|
|
var over_var = 0;
|
|
var isMenuopen = 0;
|
|
function hideNTP_Block(){
|
|
document.getElementById("ntp_pull_arrow").src = "/images/arrow-down.gif";
|
|
document.getElementById('NTPList_Block_PC').style.display='none';
|
|
isMenuopen = 0;
|
|
}
|
|
function pullNTPList(obj){
|
|
if(isMenuopen == 0){
|
|
obj.src = "/images/arrow-top.gif"
|
|
document.getElementById("NTPList_Block_PC").style.display = 'block';
|
|
document.form.ntp_server0.focus();
|
|
isMenuopen = 1;
|
|
}
|
|
else
|
|
hideNTP_Block();
|
|
}
|
|
function open_chpass(type){ //0: username 1: password
|
|
$("#http_passwd_cur").val("");
|
|
$("#http_passwd_new").val("");
|
|
$("#http_passwd_re").val("");
|
|
$("#http_username_new").val("");
|
|
showtext(document.getElementById("pwd_msg"), "");
|
|
showtext(document.getElementById("alert_msg"), "");
|
|
showtext(document.getElementById("new_pwd_msg"), "");
|
|
if(type == 0){
|
|
$("#chpass_title").html("<#189#>");
|
|
$("#pwd_input_title").css("display", "none");
|
|
$("#new_pwd_td").css("display", "none");
|
|
$("#pwd_input").css("display", "none");
|
|
$("#pwd_confirm_title").css("display", "none");
|
|
$("#pwd_confirm").css("display", "none");
|
|
$("#name_input_title").css("display", "");
|
|
$("#name_input").css("display", "");
|
|
document.getElementById("apply_chpass").onclick = function(){
|
|
change_username();
|
|
};
|
|
}
|
|
else{
|
|
$("#chpass_title").html("<#2931#>");
|
|
$("#name_input_title").css("display", "none");
|
|
$("#name_input").css("display", "none");
|
|
$("#pwd_input_title").css("display", "");
|
|
$("#pwd_input").css("display", "");
|
|
$("#new_pwd_td").css("display", "");
|
|
$("#pwd_confirm_title").css("display", "");
|
|
$("#pwd_confirm").css("display", "");
|
|
document.getElementById("apply_chpass").onclick = function(){
|
|
change_passwd();
|
|
};
|
|
}
|
|
$("#chpass_div").fadeIn(500);
|
|
}
|
|
function reset_plain_text(){
|
|
if($("#show_pass_1").hasClass("icon_eye_open"))
|
|
plain_text_check($("#show_pass_1"));
|
|
}
|
|
function close_chpass(){
|
|
$("#chpass_div").fadeOut(500);
|
|
setTimeout("reset_plain_text();", 500);
|
|
}
|
|
function check_httpd(){
|
|
$.ajax({
|
|
url: '/httpd_check.xml',
|
|
dataType: 'xml',
|
|
error: function(xhr){
|
|
setTimeout("check_httpd();", 1000);
|
|
},
|
|
success: function(response){
|
|
setTimeout("location.href='Main_Login.asp'", 500);
|
|
}
|
|
});
|
|
}
|
|
function redirect_mainLogin(alert_msg){
|
|
stopFlag = 1;
|
|
alert(alert_msg);
|
|
showLoading();
|
|
setTimeout("check_httpd();", 3000);
|
|
}
|
|
function change_username(){
|
|
var postData = {"restart_httpd": "1", "cur_username":accounts[0], "cur_passwd":"", "new_username":""};
|
|
var change_result = "";
|
|
if($("#http_passwd_cur").val().length == 0){
|
|
showtext(document.getElementById("pwd_msg"), "<#300#>");
|
|
$("#http_passwd_cur").focus();
|
|
$("#http_passwd_cur").select();
|
|
return false;
|
|
}
|
|
if($("#http_username_new").val().length == 0){
|
|
showtext(document.getElementById("alert_msg"), "* <#273#>");
|
|
$("#http_username_new").focus();
|
|
$("#http_username_new").select();
|
|
return false;
|
|
}
|
|
else{
|
|
var alert_str = validator.host_name(document.getElementById("http_username_new"));
|
|
if(alert_str != ""){
|
|
showtext(document.getElementById("alert_msg"), alert_str);
|
|
$("#http_username_new").focus();
|
|
$("#http_username_new").select();
|
|
return false;
|
|
}
|
|
$("#http_username_new").val($("#http_username_new").val().trim());
|
|
if($("#http_username_new").val() == "root"
|
|
|| $("#http_username_new").val() == "guest"
|
|
|| $("#http_username_new").val() == "anonymous"
|
|
){
|
|
showtext(document.getElementById("alert_msg"), "* <#798#>");
|
|
$("#http_username_new").focus();
|
|
$("#http_username_new").select();
|
|
return false;
|
|
}
|
|
else if(accounts.getIndexByValue($("#http_username_new").val()) > 0
|
|
&& $("#http_username_new").val() != accounts[0]){
|
|
showtext(document.getElementById("alert_msg"), "* <#276#>");
|
|
$("#http_username_new").focus();
|
|
$("#http_username_new").select();
|
|
return false;
|
|
}else{
|
|
showtext(document.getElementById("alert_msg"), "");
|
|
}
|
|
}
|
|
postData.cur_passwd = $("#http_passwd_cur").val();
|
|
postData.new_username = $("#http_username_new").val();
|
|
change_result = httpApi.chpass(postData);
|
|
if(change_result == "401"){
|
|
showtext(document.getElementById("pwd_msg"), "<#4341#>");
|
|
$("#http_passwd_cur").focus();
|
|
$("#http_passwd_cur").select();
|
|
}
|
|
else{
|
|
var alert_msg = "";
|
|
if(change_result == "200")
|
|
alert_msg = "<#192#>";
|
|
else if(change_result == "402")
|
|
alert_msg = "<#284#>";
|
|
else
|
|
alert_msg = "<#272#>";
|
|
close_chpass();
|
|
redirect_mainLogin(alert_msg);
|
|
}
|
|
}
|
|
function change_passwd(){
|
|
var postData = {"restart_httpd": "1", "cur_username":accounts[0], "cur_passwd":"", "new_passwd":""};
|
|
var change_result = "";
|
|
showtext(document.getElementById("pwd_msg"), "");
|
|
showtext(document.getElementById("alert_msg"), "");
|
|
if($("#http_passwd_cur").val().length == 0){
|
|
showtext(document.getElementById("pwd_msg"), "<#300#>");
|
|
$("#http_passwd_cur").focus();
|
|
$("#http_passwd_cur").select();
|
|
return false;
|
|
}
|
|
if($("#http_passwd_new").val().length == 0){
|
|
showtext(document.getElementById("new_pwd_msg"), "* <#277#>");
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
if($("#http_passwd_new").val().length > max_pwd_length){
|
|
showtext(document.getElementById("new_pwd_msg"),"* <#335#>");
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
if($("#http_passwd_new").val() != $("#http_passwd_re").val()){
|
|
showtext(document.getElementById("alert_msg"),"* <#278#>");
|
|
if($("#http_passwd_new").val().length <= 0){
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
}else{
|
|
$("#http_passwd_re").focus();
|
|
$("#http_passwd_re").select();
|
|
}
|
|
return false;
|
|
}
|
|
if(is_KR_sku || is_SG_sku || is_AA_sku){ /* MODELDEP by Territory Code */
|
|
if($("#http_passwd_new").val().length > 0){
|
|
if(!validator.string_KR(document.getElementById("http_passwd_new"))){
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
}
|
|
if($("#http_passwd_new").val() == accounts[0]){
|
|
alert("<#349#>");
|
|
document.form.http_passwd_new.focus();
|
|
document.form.http_passwd_new.select();
|
|
return false;
|
|
}
|
|
}
|
|
else{
|
|
if($("#http_passwd_new").val().length > 0 &&$("#http_passwd_new").val().length < 5){
|
|
showtext(document.getElementById("new_pwd_msg"),"* <#343#> <#337#>");
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
if(!validator.string(document.getElementById("http_passwd_new"))){
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
}
|
|
if($("#http_passwd_new").val() == '<% nvram_default_get("http_passwd"); %>'){
|
|
showtext(document.getElementById("alert_msg"),"* <#508#>");
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
var is_common_string = check_common_string($("#http_passwd_new").val(), "httpd_password");
|
|
if($("#http_passwd_new").val().length > 0 && is_common_string){
|
|
if(!confirm("<#328#>")){
|
|
$("#http_passwd_new").focus();
|
|
$("#http_passwd_new").select();
|
|
return false;
|
|
}
|
|
}
|
|
postData.cur_passwd = $("#http_passwd_cur").val();
|
|
postData.new_passwd = $("#http_passwd_new").val();
|
|
change_result = httpApi.chpass(postData);
|
|
if(change_result == "401"){
|
|
showtext(document.getElementById("pwd_msg"), "<#4341#>");
|
|
$("#http_passwd_cur").focus();
|
|
$("#http_passwd_cur").select();
|
|
}
|
|
else{
|
|
var alert_msg = "";
|
|
if(change_result == "200")
|
|
alert_msg = "<#191#>";
|
|
else if(change_result == "402")
|
|
alert_msg = "<#284#>";
|
|
else
|
|
alert_msg = "<#271#>";
|
|
close_chpass();
|
|
redirect_mainLogin(alert_msg);
|
|
}
|
|
}
|
|
function check_password_length(obj){
|
|
if(is_KR_sku || is_SG_sku || is_AA_sku){ /* MODELDEP by Territory Code */
|
|
showtext(document.getElementById("new_pwd_msg"),"<#349#>");
|
|
return;
|
|
}
|
|
var password = obj.value;
|
|
if(password.length > max_pwd_length){
|
|
showtext(document.getElementById("new_pwd_msg"),"* <#335#>");
|
|
obj.focus();
|
|
}
|
|
else if(password.length > 0 && password.length < 5){
|
|
showtext(document.getElementById("new_pwd_msg"),"* <#343#> <#337#>");
|
|
obj.focus();
|
|
}
|
|
else{
|
|
showtext(document.getElementById("new_pwd_msg"),"");
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="initial();" onunLoad="return unload_body();" class="bg">
|
|
<div id="TopBanner"></div>
|
|
<div id="Loading" class="popup_bg"></div>
|
|
<div id="chpass_div" class="content_chpass">
|
|
<table align="center" cellpadding="5" cellspacing="0" style="margin-top: 5px; width:95%;">
|
|
<tr>
|
|
<td id="chpass_title" style="text-align: center;"></td>
|
|
</tr>
|
|
<tr>
|
|
<td ><div style="width:360px;" class="splitLine"></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left"><#190#></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div style="display: flex; align-items: center;">
|
|
<div><input type="password" autocomplete="off" id="http_passwd_cur" tabindex="1" onkeydown="showtext(document.getElementById('pwd_msg'), '');" onpaste="setTimeout('paste_password();', 10)" class="input_18_table" style="width:200px;" maxlength="32" autocorrect="off" autocapitalize="off"/></div>
|
|
<div class="icon_eye_close" id="show_pass_1" type="password" for="http_passwd_cur http_passwd_new http_passwd_re" onclick="plain_text_check($('#show_pass_1'));"></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="height: 25px;padding-top: 0px;">
|
|
<span id="pwd_msg" style="color:#FC0;margin-left:2px;"></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td ><div style="width:360px; margin-bottom: 10px;" class="splitLine"></div></td>
|
|
</tr>
|
|
<tr id="pwd_input_title" style="display: none;">
|
|
<td align="left"><#444#></td>
|
|
</tr>
|
|
<tr id="pwd_input" style="display: none;">
|
|
<td>
|
|
<input type="password" autocomplete="off" id="http_passwd_new" tabindex="2" onkeydown="" onKeyPress="return validator.isString(this, event);" onkeyup="chkPass(this.value, 'http_passwd'); check_password_length(this);" onblur="check_password_length(this);" onpaste="setTimeout('paste_password();', 10)" class="input_18_table" style="width:200px;" maxlength="33" onBlur="clean_scorebar(this);" autocorrect="off" autocapitalize="off"/>
|
|
<div id="scorebarBorder" style="margin-left:224px; margin-top:-25px; display:none;" title="<#369#>">
|
|
<div id="score" style="margin-top: 5px;"></div>
|
|
<div id="scorebar"> </div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="new_pwd_td">
|
|
<td style="height: 35px; padding-top: 0px;">
|
|
<span id="new_pwd_msg" style="color:#FC0;margin-left:2px;"></span>
|
|
</td>
|
|
</tr>
|
|
<tr id="pwd_confirm_title" style="display: none;">
|
|
<td align="left"><#732#></td>
|
|
</tr>
|
|
<tr id="pwd_confirm" style="display: none;">
|
|
<td><input type="password" autocomplete="off" id="http_passwd_re" tabindex="3" onkeydown="showtext(document.getElementById('alert_msg'), '');" onKeyPress="return validator.isString(this, event);" onpaste="setTimeout('paste_password();', 10)" class="input_18_table" style="width:200px;" maxlength="33" autocorrect="off" autocapitalize="off"/></td>
|
|
</tr>
|
|
<tr id="name_input_title" style="display: none;">
|
|
<td align="left"><#443#></td>
|
|
</tr>
|
|
<tr id="name_input" style="display: none;">
|
|
<td>
|
|
<input type="text" autocomplete="off" id="http_username_new" tabindex="4" onKeyPress="return validator.isString(this, event);" class="input_20_table" style="width:200px;" maxlength="32" autocorrect="off" autocapitalize="off"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="height: 25px; padding-bottom: 15px; padding-top: 0px;">
|
|
<span id="alert_msg" style="color:#FC0;margin-left:2px;"></span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div style="padding-bottom:10px;width:100%;text-align:center;">
|
|
<input class="button_gen" type="button" onclick="close_chpass();" value="<#206#>">
|
|
<input id="apply_chpass" class="button_gen" type="button" onclick="" value="<#1687#>">
|
|
<img id="loadingIcon_sim" style="margin-left:10px; display:none;" src="/images/InternetScan.gif">
|
|
</div>
|
|
</div>
|
|
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
|
|
<form method="post" name="form" id="ruleForm" action="/start_apply.htm" target="hidden_frame">
|
|
<input type="hidden" name="productid" value="<% nvram_get("productid"); %>">
|
|
<input type="hidden" name="current_page" value="Advanced_System_Content.asp">
|
|
<input type="hidden" name="next_page" value="Advanced_System_Content.asp">
|
|
<input type="hidden" name="modified" value="0">
|
|
<input type="hidden" name="flag" value="">
|
|
<input type="hidden" name="action_mode" value="apply">
|
|
<input type="hidden" name="action_wait" value="5">
|
|
<input type="hidden" name="action_script" value="restart_time;restart_upnp">
|
|
<input type="hidden" name="first_time" value="">
|
|
<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get("preferred_lang"); %>">
|
|
<input type="hidden" name="firmver" value="<% nvram_get("firmver"); %>">
|
|
<input type="hidden" name="time_zone_dst" value="<% nvram_get("time_zone_dst"); %>">
|
|
<input type="hidden" name="time_zone" value="<% nvram_get("time_zone"); %>">
|
|
<input type="hidden" name="time_zone_dstoff" value="<% nvram_get("time_zone_dstoff"); %>">
|
|
<input type="hidden" name="http_client" value="<% nvram_get("http_client"); %>"><input type="hidden" name="http_clientlist" value="<% nvram_get("http_clientlist"); %>"><input type="hidden" name="enable_acc_restriction" value="<% nvram_get("enable_acc_restriction"); %>">
|
|
<input type="hidden" name="restrict_rulelist" value="<% nvram_get("restrict_rulelist"); %>">
|
|
<input type="hidden" name="btn_ez_mode" value="<% nvram_get("btn_ez_mode"); %>">
|
|
<input type="hidden" name="reboot_schedule" value="<% nvram_get("reboot_schedule"); %>" disabled>
|
|
<input type="hidden" name="reboot_schedule_enable" value="<% nvram_get("reboot_schedule_enable"); %>">
|
|
<input type="hidden" name="shell_timeout" value="<% nvram_get("shell_timeout"); %>">
|
|
<input type="hidden" name="http_lanport" value="<% nvram_get("http_lanport"); %>">
|
|
<input type="hidden" name="sw_mode" value="<% nvram_get("sw_mode"); %>">
|
|
<input type="hidden" name="ncb_enable" value="<% nvram_get("ncb_enable"); %>">
|
|
<input type="hidden" name="dns_probe" value="<% nvram_get("dns_probe"); %>">
|
|
<input type="hidden" name="wandog_enable" value="<% nvram_get("wandog_enable"); %>">
|
|
<table class="content" align="center" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="17"> </td>
|
|
<td valign="top" width="202">
|
|
<div id="mainMenu"></div>
|
|
<div id="subMenu"></div>
|
|
</td>
|
|
<td valign="top">
|
|
<div id="tabMenu" class="submenuBlock"></div>
|
|
<table width="98%" border="0" align="left" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td valign="top">
|
|
<table width="760px" border="0" cellpadding="4" cellspacing="0" class="FormTitle" id="FormTitle">
|
|
<tbody>
|
|
<tr>
|
|
<td bgcolor="#4D595D" valign="top">
|
|
<div> </div>
|
|
<div class="formfonttitle"><#424#> - <#427#></div>
|
|
<div style="margin:10px 0 10px 5px;" class="splitLine"></div>
|
|
<div class="formfontdesc"><#3346#></div>
|
|
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2"><#735#></td>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th width="40%"><#736#></th>
|
|
<td>
|
|
<span style="color:#FFF; display: inline-block; width: 250px;"><% nvram_get("http_username"); %></span>
|
|
<span style="text-decoration: underline; cursor: pointer;" onclick="open_chpass(0);"><#187#></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th width="40%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,4)"><#737#></a></th>
|
|
<td>
|
|
<span style="color:#FFF; display: inline-block; width: 250px;">-</span>
|
|
<span style="text-decoration: underline; cursor: pointer;" onclick="open_chpass(1);""><#187#></span>
|
|
</td>
|
|
</tr>
|
|
<tr id="login_captcha_tr" style="display:none">
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,13)"><#264#></a></th>
|
|
<td>
|
|
<input type="radio" value="1" name="captcha_enable" <% nvram_match("captcha_enable", "1", "checked"); %>><#194#>
|
|
<input type="radio" value="0" name="captcha_enable" <% nvram_match("captcha_enable", "0", "checked"); %>><#193#>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table id="hdd_spindown_table" width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable" style="margin-top:8px;display:none;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2"><#3560#></td>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th width="40%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,11)"><#3551#></a></th>
|
|
<td>
|
|
<select name="usb_idle_enable" class="input_option" onchange="change_hddSpinDown(this.value);" disabled>
|
|
<option value="0" <% nvram_match("usb_idle_enable", "0", "selected"); %>><#193#></option>
|
|
<option value="1" <% nvram_match("usb_idle_enable", "1", "selected"); %>><#194#></option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr id="usb_idle_timeout_tr">
|
|
<th width="40%"><#3373#></th>
|
|
<td>
|
|
<input type="text" class="input_6_table" maxlength="4" name="usb_idle_timeout" onKeyPress="return validator.isNumber(this,event);" value='<% nvram_get("usb_idle_timeout"); %>' autocorrect="off" autocapitalize="off" disabled><#3154#>
|
|
<span>(<#3183#> : 60) </span>
|
|
</td>
|
|
</tr>
|
|
<tr id="reduce_usb3_tr" style="display:none">
|
|
<th width="40%"><a class="hintstyle" href="javascript:void(0);" onclick="openHint(3, 29)"><#3166#></a></th>
|
|
<td>
|
|
<select class="input_option" name="usb_usb3" onchange="enableUsbMode(this.value);">
|
|
<option value="0" <% nvram_match("usb_usb3", "0", "selected"); %>>USB 2.0</option>
|
|
<option value="1" <% nvram_match("usb_usb3", "1", "selected"); %>>USB 3.0</option>
|
|
</select>
|
|
<script>
|
|
var needReboot = false;
|
|
if (isSupport("usb3")) {
|
|
$("#reduce_usb3_tr").show();
|
|
}
|
|
function enableUsbMode(v){
|
|
httpApi.nvramGetAsync({
|
|
data: ["usb_usb3"],
|
|
success: function(nvram){
|
|
needReboot = (nvram.usb_usb3 != v);
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable" style="margin-top:8px;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2"><#3351#></td>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,2)"><#2630#></a></th>
|
|
<td>
|
|
<select name="time_zone_select" class="input_option" onchange="select_time_zone();"></select>
|
|
<div>
|
|
<span id="timezone_hint" style="display:none;"></span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="dst_changes_start" style="display:none;">
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,7)"><#2631#></a></th>
|
|
<td>
|
|
<div id="dst_start" style="color:white;display:none;">
|
|
<div>
|
|
<select name="dst_start_m" class="input_option"></select> <#2811#>
|
|
<select name="dst_start_w" class="input_option"></select>
|
|
<select name="dst_start_d" class="input_option"></select> <#1785#> & <#1712#>
|
|
<select name="dst_start_h" class="input_option"></select> <#2320#>
|
|
<script>
|
|
for(var i = 1; i < dst_month.length; i++){
|
|
add_option(document.form.dst_start_m, dst_month[i], i, 0);
|
|
}
|
|
for(var i = 1; i < dst_week.length; i++){
|
|
add_option(document.form.dst_start_w, dst_week[i], i, 0);
|
|
}
|
|
for(var i = 0; i < dst_day.length; i++){
|
|
add_option(document.form.dst_start_d, dst_day[i], i, 0);
|
|
}
|
|
for(var i = 0; i < dst_hour.length; i++){
|
|
add_option(document.form.dst_start_h, dst_hour[i], i, 0);
|
|
}
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="dst_changes_end" style="display:none;">
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,8)"><#2633#></a></th>
|
|
<td>
|
|
<div id="dst_end" style="color:white;display:none;">
|
|
<div>
|
|
<select name="dst_end_m" class="input_option"></select> <#2811#>
|
|
<select name="dst_end_w" class="input_option"></select>
|
|
<select name="dst_end_d" class="input_option"></select> <#1785#> & <#1712#>
|
|
<select name="dst_end_h" class="input_option"></select> <#2320#>
|
|
<script>
|
|
for(var i = 1; i < dst_month.length; i++){
|
|
add_option(document.form.dst_end_m, dst_month[i], i, 0);
|
|
}
|
|
for(var i = 1; i < dst_week.length; i++){
|
|
add_option(document.form.dst_end_w, dst_week[i], i, 0);
|
|
}
|
|
for(var i = 0; i < dst_day.length; i++){
|
|
add_option(document.form.dst_end_d, dst_day[i], i, 0);
|
|
}
|
|
for(var i = 0; i < dst_hour.length; i++){
|
|
add_option(document.form.dst_end_h, dst_hour[i], i, 0);
|
|
}
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,3)"><#2622#></a></th>
|
|
<td>
|
|
<input type="text" maxlength="256" class="input_32_table" name="ntp_server0" value="<% nvram_get("ntp_server0"); %>" onKeyPress="return validator.isString(this, event);" autocorrect="off" autocapitalize="off">
|
|
<img id="ntp_pull_arrow" height="14px;" src="/images/arrow-down.gif" style="position:absolute;*margin-left:-3px;*margin-top:1px;display:none;" onclick="pullNTPList(this);" title="<#2622#>" onmouseover="over_var=1;" onmouseout="over_var=0;">
|
|
<div id="NTPList_Block_PC" class="NTPList_Block_PC"></div>
|
|
<br>
|
|
<a href="javascript:openLink('x_NTPServer1')" name="x_NTPServer1_link" style=" margin-left:5px; text-decoration: underline;"><#2623#></a>
|
|
<div id="svc_hint_div" style="display:none;">
|
|
<span style="color:#FFCC00;"><#290#></span>
|
|
<a id="ntp_faq" href="" target="_blank" style="margin-left:5px; color: #FFCC00; text-decoration: underline;">FAQ</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="network_monitor_tr">
|
|
<th><#2845#></th>
|
|
<td>
|
|
<input type="checkbox" name="dns_probe_chk" value="" <% nvram_match("dns_probe", "1", "checked"); %> onClick="appendMonitorOption(this);"><div style="display: inline-block; vertical-align: middle; margin-bottom: 2px;" ><#1809#></div>
|
|
<input type="checkbox" name="wandog_enable_chk" value="" <% nvram_match("wandog_enable", "1", "checked"); %> onClick="appendMonitorOption(this);"><div style="display: inline-block; vertical-align: middle; margin-bottom: 2px;"><#2943#></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="probe_host_tr" style="display: none;">
|
|
<th><#3073#></th>
|
|
<td>
|
|
<input type="text" class="input_32_table" name="dns_probe_host" maxlength="255" autocorrect="off" autocapitalize="off" value="<% nvram_get("dns_probe_host"); %>">
|
|
</td>
|
|
</tr>
|
|
<tr id="probe_content_tr" style="display: none;">
|
|
<th><#3074#></th>
|
|
<td>
|
|
<input type="text" class="input_32_table" name="dns_probe_content" maxlength="1024" autocorrect="off" autocapitalize="off" value="<% nvram_get("dns_probe_content"); %>">
|
|
</td>
|
|
</tr>
|
|
<tr id="ping_tr" style="display: none;">
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(26,2);"><#2944#></a></th>
|
|
<td>
|
|
<input type="text" class="input_32_table" name="wandog_target" maxlength="100" value="<% nvram_get("wandog_target"); %>" placeholder="ex: www.google.com" autocorrect="off" autocapitalize="off">
|
|
<img id="ping_pull_arrow" class="pull_arrow" height="14px;" src="/images/arrow-down.gif" style="position:absolute;*margin-left:-3px;*margin-top:1px;" onclick="pullPingTargetList(this);" title="<#3163#>">
|
|
<div id="TargetList_Block_PC" name="TargetList_Block_PC" class="clientlist_dropdown" style="margin-left: 2px; width: 348px;display: none;"></div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><#762#></th>
|
|
<td>
|
|
<input type="text" class="input_3_table" maxlength="3" name="http_autologout" value='<% nvram_get("http_autologout"); %>' onKeyPress="return validator.isNumber(this,event);" autocorrect="off" autocapitalize="off"> <#2704#>
|
|
<span>(<#4096#>)</span>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_redirect_enable_tr">
|
|
<th align="right"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,6);"><#1895#></a></th>
|
|
<td>
|
|
<input type="radio" name="nat_redirect_enable" value="1" <% nvram_match_x("","nat_redirect_enable","1", "checked"); %> ><#194#>
|
|
<input type="radio" name="nat_redirect_enable" value="0" <% nvram_match_x("","nat_redirect_enable","0", "checked"); %> ><#193#>
|
|
</td>
|
|
</tr>
|
|
<tr id="btn_ez_radiotoggle_tr" style="display: none;">
|
|
<th><#4066#></th>
|
|
<td>
|
|
<label for="turn_WPS" id="btn_ez_WPS">
|
|
<input type="radio" name="btn_ez_radiotoggle" id="turn_WPS" class="input" value="0"><#4065#>
|
|
</label>
|
|
<label for="turn_WiFi" id="btn_ez_WiFi" style="display:none;">
|
|
<input type="radio" name="btn_ez_radiotoggle" id="turn_WiFi" class="input" value="1"><#4067#>
|
|
</label>
|
|
<label for="turn_LED" id="btn_ez_LED" style="display:none;">
|
|
<input type="radio" name="btn_ez_radiotoggle" id="turn_LED" class="input" value="0"><#2648#>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr id="pwrsave_tr">
|
|
<th align="right"><#3553#></th>
|
|
<td>
|
|
<select name="pwrsave_mode" class="input_option">
|
|
<option value="0" <% nvram_match("pwrsave_mode", "0","selected"); %> ><#3554#></option>
|
|
<option value="1" <% nvram_match("pwrsave_mode", "1","selected"); %> ><#160#></option>
|
|
<option value="2" <% nvram_match("pwrsave_mode", "2","selected"); %> ><#3555#></option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr id="pagecache_ratio_tr" style="display:none;">
|
|
<th align="right"><a class="hintstyle" href="javascript:void(0);" onClick="overlib('Lower page cache ratio, poor NAS performance.');" onmouseout="nd();">Maximum page cache ratio</th>
|
|
<td>
|
|
<input type="text" class="input_3_table" maxlength="3" name="pagecache_ratio" value='<% nvram_get("pagecache_ratio"); %>' onblur="return validator.numberRange(this, 5, 90);" autocorrect="off" autocapitalize="off"> %
|
|
</td>
|
|
</tr>
|
|
<tr id="reboot_schedule_enable_tr">
|
|
<th><#1897#></th>
|
|
<td>
|
|
<input type="radio" value="1" name="reboot_schedule_enable_x" onClick="hide_reboot_option(1);" <% nvram_match_x("LANHostConfig","reboot_schedule_enable", "1", "checked"); %>><#194#>
|
|
<input type="radio" value="0" name="reboot_schedule_enable_x" onClick="hide_reboot_option(0);" <% nvram_match_x("LANHostConfig","reboot_schedule_enable", "0", "checked"); %>><#193#>
|
|
</td>
|
|
</tr>
|
|
<tr id="reboot_schedule_date_tr">
|
|
<th><#3066#></th>
|
|
<td>
|
|
<input type="checkbox" name="reboot_date_x_Sun" class="input" onclick="check_Timefield_checkbox();"><#1708#>
|
|
<input type="checkbox" name="reboot_date_x_Mon" class="input" onclick="check_Timefield_checkbox();"><#1706#>
|
|
<input type="checkbox" name="reboot_date_x_Tue" class="input" onclick="check_Timefield_checkbox();"><#1710#>
|
|
<input type="checkbox" name="reboot_date_x_Wed" class="input" onclick="check_Timefield_checkbox();"><#1711#>
|
|
<input type="checkbox" name="reboot_date_x_Thu" class="input" onclick="check_Timefield_checkbox();"><#1709#>
|
|
<input type="checkbox" name="reboot_date_x_Fri" class="input" onclick="check_Timefield_checkbox();"><#1705#>
|
|
<input type="checkbox" name="reboot_date_x_Sat" class="input" onclick="check_Timefield_checkbox();"><#1707#>
|
|
</td>
|
|
</tr>
|
|
<tr id="reboot_schedule_time_tr">
|
|
<th><#3067#></th>
|
|
<td>
|
|
<input type="text" maxlength="2" class="input_3_table" name="reboot_time_x_hour" onKeyPress="return validator.isNumber(this,event);" onblur="validator.timeRange(this, 0);" autocorrect="off" autocapitalize="off"> :
|
|
<input type="text" maxlength="2" class="input_3_table" name="reboot_time_x_min" onKeyPress="return validator.isNumber(this,event);" onblur="validator.timeRange(this, 1);" autocorrect="off" autocapitalize="off">
|
|
</td>
|
|
</tr>
|
|
<tr id="ncb_enable_option_tr" style="display:none">
|
|
<th><#1909#></th>
|
|
<td>
|
|
<select name="ncb_enable_option" class="input_option">
|
|
<option value="0" <% nvram_match("ncb_enable", "0", "selected"); %>><#1910#></option>
|
|
<option value="1" <% nvram_match("ncb_enable", "1", "selected"); %>><#1911#></option>
|
|
<option value="2" <% nvram_match("ncb_enable", "2", "selected"); %>><#1912#></option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr id="sw_mode_radio_tr" style="display:none">
|
|
<th><#452#></th>
|
|
<td>
|
|
<input type="radio" name="sw_mode_radio" value="1" <% nvram_match_x("","sw_mode","3", "checked"); %> ><#194#>
|
|
<input type="radio" name="sw_mode_radio" value="0" <% nvram_match_x("","sw_mode","1", "checked"); %> ><#193#>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table id="telnetd_sshd_table" width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable" style="margin-top:8px;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2"><#631#></td>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th><#1900#></th>
|
|
<td>
|
|
<input type="radio" name="telnetd_enable" value="1" onchange="telnet_enable(this.value);" <% nvram_match_x("LANHostConfig", "telnetd_enable", "1", "checked"); %>><#194#>
|
|
<input type="radio" name="telnetd_enable" value="0" onchange="telnet_enable(this.value);" <% nvram_match_x("LANHostConfig", "telnetd_enable", "0", "checked"); %>><#193#>
|
|
<div style="color: #FFCC00;display:none;" id="SSH_Port_Suggestion2">* <#3276#></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="sshd_enable_tr">
|
|
<th width="40%"><#1899#></th>
|
|
<td>
|
|
<select name="sshd_enable" class="input_option" onchange="check_sshd_enable(this.value);">
|
|
<option value="0" <% nvram_match("sshd_enable", "0", "selected"); %>><#193#></option>
|
|
<option value="2" <% nvram_match("sshd_enable", "2", "selected"); %>>LAN only</option>
|
|
<option value="1" <% nvram_match("sshd_enable", "1", "selected"); %>>LAN & WAN</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr id="sshd_port_tr">
|
|
<th width="40%"><#2972#><div class="setup_info_icon ssh" style="display:none;"></div></th>
|
|
<td>
|
|
<input type="text" class="input_6_table" maxlength="5" id="sshd_port" name="sshd_port" onKeyPress="return validator.isNumber(this,event);" autocorrect="off" autocapitalize="off" value='<% nvram_get("sshd_port"); %>' onkeydown="reset_portconflict_hint();">
|
|
<span id="port_conflict_sshdport" style="color: #e68282; display: none;">Port Conflict</span>
|
|
<div style="color: #FFCC00;">* <#3274#></div>
|
|
<div style="color: #FFCC00;display:none;" id="SSH_Port_Suggestion1">* <#3275#></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="sshd_password_tr">
|
|
<th><#1416#></th>
|
|
<td>
|
|
<input type="radio" name="sshd_pass" value="1" <% nvram_match("sshd_pass", "1", "checked"); %>><#194#>
|
|
<input type="radio" name="sshd_pass" value="0" <% nvram_match("sshd_pass", "0", "checked"); %>><#193#>
|
|
</td>
|
|
</tr>
|
|
<tr id="auth_keys_tr">
|
|
<th><#1441#></th>
|
|
<td>
|
|
<textarea rows="5" class="textarea_ssh_table" style="width:98%; overflow:auto; word-break:break-all;" name="sshd_authkeys" maxlength="2999"><% nvram_get("sshd_authkeys"); %></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr id="plc_sleep_tr" style="display:none;">
|
|
<th align="right"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,12);"><#4328#></a></th>
|
|
<td>
|
|
<input type="radio" name="plc_sleep_enabled" value="1" <% nvram_match_x("","plc_sleep_enabled","1", "checked"); %> ><#194#>
|
|
<input type="radio" name="plc_sleep_enabled" value="0" <% nvram_match_x("","plc_sleep_enabled","0", "checked"); %> ><#193#>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th width="40%"><#4179#></th>
|
|
<td>
|
|
<input type="text" class="input_3_table" maxlength="3" name="shell_timeout_x" value="" onKeyPress="return validator.isNumber(this,event);" autocorrect="off" autocapitalize="off"> <#2704#>
|
|
<span>(<#4096#>)</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table id ="http_auth_table" width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable" style="margin-top:8px;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2"><#2659#></td>
|
|
</tr>
|
|
</thead>
|
|
<tr id="https_tr">
|
|
<th><#3881#></th>
|
|
<td>
|
|
<select id="http_enable" name="http_enable" class="input_option" onchange="hide_https_lanport(this.value);check_wan_access(this.value);">
|
|
<option value="0" <% nvram_match("http_enable", "0", "selected"); %>>HTTP</option>
|
|
<option value="1" <% nvram_match("http_enable", "1", "selected"); %>>HTTPS</option>
|
|
<option value="2" <% nvram_match("http_enable", "2", "selected"); %>>BOTH</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<script>
|
|
var http_enable_default = httpApi.nvramDefaultGet(["http_enable"]).http_enable;
|
|
if(in_territory_code("AA") || in_territory_code("SG") && http_enable_default == "2"){
|
|
document.getElementById("http_enable").options[2].text = "<#3183#>";
|
|
}
|
|
</script>
|
|
<tr id="https_lanport">
|
|
<th><#770#></th>
|
|
<td>
|
|
<input type="text" maxlength="5" class="input_6_table" id="https_lanport_input" name="https_lanport" value="<% nvram_get("https_lanport"); %>" onKeyPress="return validator.isNumber(this,event);" onBlur="change_url(this.value, 'https_lan');" autocorrect="off" autocapitalize="off" onkeydown="reset_portconflict_hint();" disabled>
|
|
<span id="port_conflict_httpslanport" style="color: #e68282; display: none;">Port Conflict</span>
|
|
<div id="https_access_page" style="color: #FFCC00;"></div>
|
|
<div style="color: #FFCC00;">* <#295#></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="https_download_cert" style="display: none;">
|
|
<th><#2661#></th>
|
|
<td>
|
|
<input id="download_cert_btn" class="button_gen" onclick="save_cert_key();" type="button" value="<#1539#>" />
|
|
<input id="clear_cert_btn" class="button_gen" style="margin-left:10px" onclick="clear_cert_key();" type="button" value="<#213#>" />
|
|
<span id="download_cert_desc"><#2660#></span><a id="creat_cert_link" href="" style="font-family:Lucida Console;text-decoration:underline;color:#FFCC00; margin-left: 5px;" target="_blank">FAQ</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table id="accessfromwan_settings" width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable" style="margin-top:8px;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2"><#3071#></td>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(8,2);"><#2117#></a></th>
|
|
<td>
|
|
<input type="radio" value="1" name="misc_http_x" onClick="hideport(1);enable_wan_access(1);" <% nvram_match("misc_http_x", "1", "checked"); %>><#194#>
|
|
<input type="radio" value="0" name="misc_http_x" onClick="hideport(0);enable_wan_access(0);" <% nvram_match("misc_http_x", "0", "checked"); %>><#193#><br>
|
|
<span class="formfontdesc" id="WAN_access_hint" style="color:#FFCC00; display:none;"><#2118#>
|
|
<a id="faq" href="" target="_blank" style="margin-left: 5px; color:#FFCC00; text-decoration: underline;">FAQ</a>
|
|
</span>
|
|
<div class="formfontdesc" id="NSlookup_help_for_WAN_access" style="color:#FFCC00; display:none;"><#2888#></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="accessfromwan_port">
|
|
<th align="right">
|
|
<a id="access_port_title" class="hintstyle" href="javascript:void(0);" onClick="openHint(8,3);">HTTPS <#2120#></a>
|
|
<div class="setup_info_icon https" style="display:none;"></div>
|
|
</th>
|
|
<td>
|
|
<span style="margin-left:5px; display:none;" id="http_port"><input type="text" maxlength="5" name="misc_httpport_x" class="input_6_table" value="<% nvram_get("misc_httpport_x"); %>" onKeyPress="return validator.isNumber(this,event);" autocorrect="off" autocapitalize="off" disabled/> </span>
|
|
<span style="margin-left:5px; display:none;" id="https_port"><input type="text" maxlength="5" id="misc_httpsport_x" name="misc_httpsport_x" class="input_6_table" value="<% nvram_get("misc_httpsport_x"); %>" onKeyPress="return validator.isNumber(this,event);" onBlur="change_url(this.value, 'https_wan');" autocorrect="off" autocapitalize="off" disabled/></span>
|
|
<span id="wan_access_url"></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(11,10);"><#766#></a></th>
|
|
<td>
|
|
<input type="radio" name="http_client_radio" value="1" onclick="display_spec_IP(1);" <% nvram_match_x("", "http_client", "1", "checked"); %>><#194#>
|
|
<input type="radio" name="http_client_radio" value="0" onclick="display_spec_IP(0);" <% nvram_match_x("", "http_client", "0", "checked"); %>><#193#>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" class="FormTable_table" id="http_client_table">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="4"><#767#> (<#2656#> 4)</td>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th width="10%"><div id="selAll" class="all_disable" style="margin: auto;width:40px;" onclick="control_all_rule_status(this);"><#1413#></div></th>
|
|
<th width="40%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(6,1);"><#3112#></a></th>
|
|
<th width="40%"><#894#></th>
|
|
<th width="10%"><#2655#></th>
|
|
</tr>
|
|
<tr>
|
|
<td width="10%">-</td>
|
|
<td width="40%">
|
|
<input type="text" class="input_25_table" maxlength="18" name="http_client_ip_x_0" onKeyPress="" onClick="hideClients_Block();" autocorrect="off" autocapitalize="off">
|
|
<img id="pull_arrow" height="14px;" src="/images/arrow-down.gif" style="position:absolute;*margin-left:-3px;*margin-top:1px;" onclick="pullLANIPList(this);" title="<#3159#>">
|
|
<div id="ClientList_Block_PC" class="clientlist_dropdown" style="margin-left:27px;width:235px;"></div>
|
|
</td>
|
|
<td width="40%">
|
|
<input type="checkbox" name="access_webui" class="input access_type" value="1"><#771#>
|
|
<input type="checkbox" name="access_ssh" class="input access_type" value="2"><#772#>
|
|
<input type="checkbox" name="access_telnet" class="input access_type" value="4"><#773#>
|
|
</td>
|
|
<td width="10%">
|
|
<div id="add_delete" class="add_enable" style="margin:0 auto" onclick="addRow(document.form.http_client_ip_x_0, 4);"></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div id="http_clientlist_Block"></div>
|
|
<div class="apply_gen">
|
|
<input name="button" type="button" class="button_gen" onclick="applyRule();" value="<#203#>"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></td>
|
|
</form>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td width="10" align="center" valign="top"> </td>
|
|
</tr>
|
|
</table>
|
|
<div id="footer"></div>
|
|
</body>
|
|
</html>
|
|
|