⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 management.asp.svn-base

📁 一个很好的无线搜索、自动连接脚本
💻 SVN-BASE
字号:
<% do_pagehead(); %>		<title><% nvram_get("router_name"); %> - Administration</title>		<script type="text/javascript">		//<![CDATA[document.title = "<% nvram_get("router_name"); %>" + management.titl;function SelPort(num,F)	{	if(num == 1 && F.PasswdModify.value == 1){		 if(ChangePasswd(F) == true)			port_enable_disable(F,num);	} else		port_enable_disable(F,num);}function port_enable_disable(F,I) {	if ( I == "0" ){		if (F.http_wanport) choose_disable(F.http_wanport);		if (F._remote_mgt_https) choose_disable(F._remote_mgt_https);	} else {		if (F.http_wanport) choose_enable(F.http_wanport);		if (F._remote_mgt_https) choose_enable(F._remote_mgt_https);	}	if(F._http_enable.checked == false)	if(F._https_enable)	if(F._https_enable.checked == true) {		if (F._remote_mgt_https)		{		choose_disable(F._remote_mgt_https);		F._remote_mgt_https.checked = true;		}	}	if(F._https_enable)	if(F._http_enable.checked == true && F._https_enable.checked == false)		choose_disable(F._remote_mgt_https);}function ChangePasswd(F) {	if((F.PasswdModify.value==1 && F.http_passwd.value == "d6nw5v1x2pc7st9m") || F.http_passwd.value == "admin") {		if(confirm(errmsg.err51)) {			F.remote_management[1].checked = true;			return false;		} else {			F.remote_management[1].checked = true;			return false;		}	}	return true;}function valid_password(F) {	if (F.http_passwd.value != F.http_passwdConfirm.value) {		alert(errmsg.err10);		F.http_passwdConfirm.focus();		F.http_passwdConfirm.select();		return false;	}	return true;}function handle_https(F){	if(F._https_enable.checked == true && F.remote_management[0].checked == true) {		choose_enable(F._remote_mgt_https);	}	else {		F._remote_mgt_https.checked = false;		choose_disable(F._remote_mgt_https);	}}function selSSH(val, load) {	if (load == 1) {		sshd = document.getElementsByName('remote_mgt_ssh');		setElementActive("remote_mgt_ssh", val == "1");		setElementActive("sshd_wanport", val == "1" && sshd[0].checked);	} else {		setElementActive("sshd_wanport", val == "1");	}}function to_reboot(F) {	F.action.value="Reboot";	apply(F);}function to_submit(F) {	if( F.http_passwd.value != F.http_passwdConfirm.value ) {		alert(errmsg.err52);		F.http_passwd.focus();		return false;	}	valid_password(F);	if(F.remote_management)	if(F.remote_management[0].checked == true) {		if(!ChangePasswd(F))			return false;	}		if(F._remote_mgt_https) {		if(F.http_enable.checked == true && F.https_enable.checked == false)			F._remote_mgt_https.checked == false;		if(F.http_enable.checked == false && F.https_enable.checked == true)			F._remote_mgt_https.checked == true;		if(F._remote_mgt_https.checked == true) F.remote_mgt_https.value = 1;		else 	 F.remote_mgt_https.value = 0;	}		if(F._https_enable) {		if(F._https_enable.checked == true)			F.https_enable.value = 1;		else			F.https_enable.value = 0;	}	if(F._http_enable) {		if(F._http_enable.checked == true)			F.http_enable.value = 1;		else			F.http_enable.value = 0;	}		if(F._info_passwd) {		if(F._info_passwd.checked == true)			F.info_passwd.value = 1;		else			F.info_passwd.value = 0;	}	F.save_button.value = sbutton.saving;	apply(F);}addEvent(window, "load", function() {	port_enable_disable(document.setup, "<% nvram_get("remote_management"); %>");	if (document.setup.remote_mgt_ssh)		selSSH("<% nvram_get("sshd_enable"); %>", 1);	show_layer_ext(document.setup.ipv6_enable0,'idipv6', <% nvram_else_match("ipv6_enable0", "1", "1", "0"); %> == 1);	show_layer_ext(document.setup.remote_mgt_ssh, 'idssh', <% nvram_else_match("remote_mgt_ssh", "1", "1", "0"); %> == 1);	show_layer_ext(document.setup.remote_management, 'idhttpd', <% nvram_else_match("remote_management", "1", "1", "0"); %> == 1);	show_layer_ext(document.setup.status_auth, 'idsysinfo', <% nvram_else_match("status_auth", "1", "1", "0"); %> == 1);	show_layer_ext(document.setup.ntp_enable, 'idntp', <% nvram_else_match("ntp_enable", "1", "1", "0"); %> == 1);	show_layer_ext(document.setup.samba_mount, 'idsamba', <% nvram_else_match("samba_mount", "1", "1", "0"); %> == 1);	show_layer_ext(document.setup.enable_jffs2, 'idjffs2', <% nvram_else_match("enable_jffs2", "1", "1", "0"); %> == 1);});				//]]>		</script>	</head>	<body class="gui">		<% showad(); %>		<div id="wrapper">			<div id="content">				<div id="header">					<div id="logo"><h1><% show_control(); %></h1></div>					<% do_menu("Management.asp","Management.asp"); %>				</div>				<div id="main">					<div id="contents">						<form name="setup" action="apply.cgi" method="<% get_http_method(); %>">							<input type="hidden" name="submit_button" value="Management" />							<input type="hidden" name="action" value="Apply" />							<input type="hidden" name="change_action" />							<input type="hidden" name="submit_type" />							<input type="hidden" name="commit" value="1" />							<input type="hidden" name="PasswdModify" value="<% nvram_else_match("http_passwd", "admin", "1", "0"); %>" />							<input type="hidden" name="remote_mgt_https" />							<input type="hidden" name="http_enable" />							<input type="hidden" name="info_passwd" />							<input type="hidden" name="https_enable" />							<h2><% tran("management.h2"); %></h2>				<% show_modules(".webconfig"); %>				<% show_modules(".webconfig_release"); %>							<div class="submitFooter">								<script type="text/javascript">								//<![CDATA[								submitFooterButton(1,1,1);								//]]>								</script>							</div>						</form>					</div>				</div>				<div id="helpContainer">					<div id="help">						<div><h2><% tran("share.help"); %></h2></div>						<dl>							<dt class="term"><% tran("hmanagement.right1"); %></dt>							<dd class="definition"><% tran("hmanagement.right2"); %></dd>						</dl><br />						<a href="javascript:openHelpWindow<% nvram_selmatch("dist_type","micro","Ext"); %>('HManagement.asp');"><% tran("share.more"); %></a>					</div>				</div>				<div id="floatKiller"></div>				<% do_statusinfo(); %>			</div>		</div>	</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -