<html> <head> <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'> <link rel="stylesheet" href='stylemain.css' type='text/css'> <link rel="stylesheet" href='colors.css' type='text/css'> <script language="javascript" src="util.js"></script> <script type="text/javascript" src="lang/b28n.js"></script> <script language="javascript"> document.oncontextmenu = function(e){return false;} </script> <script language="javascript"> <!-- hiding setLanguage('0'); Butterlate.setTextDomain("management"); function initTranslation() { var idArray = new Array("tr69cfgTitle", "tr69cfgTips", "tr69cfgTips2", "tr69cfgInform", "strDisable", "strEnable", "tr69cfgInformInterval", "tr69cfgAcsUrl", "tr69cfgAcsUsername", "tr69cfgAcsPassword", "tr69cfgWanIfc", "tr69cfgSoapDebug", "strDisable2", "strEnable2", "tr69cfgCrAuthentication", "tr69cfgCrUsername", "tr69cfgCrPassword", "tr69cfgCrPort", "tr69cfgCrUrl", "buttonApplySave", "buttonGetRpcMethods", "tr69cfgEnable"); setAllIdValue(idArray); } var interfaceInfo = 'Any_WAN|ppp1.1|LAN|Loopback'; var interfaces = interfaceInfo.split('|'); var boundIfName = 'Any_WAN'; var sessionKey='19583'; function frmLoad() { with ( document.forms ) { acsURL.value = 'https://acs.bezek.com:8443/dps-basic/TR069'; acsUser.value = 'bzqlient69'; acsPwd.value = '427'; connReqUser.value = 'bzqac'; connReqPwd.value = 'bzqac'; connReqPort.value = '30005'; enblInform = '1'; enblNoneConnReqAuth = '0'; enblDebug = '0'; if ( '1' == '1' ) cbxtr69Enabled.checked = true; else cbxtr69Enabled.checked = false; cbxEnblChange(); if ( enblNoneConnReqAuth == '0') connReqAuth.checked = true; else connReqAuth.checked = false; if ( enblInform == '1' ) inform.checked = true; else inform.checked = true; informInterval.value = '900002'; connAuthChange(); if ( enblDebug == '1' ) debug.checked = true; else debug.checked = true; } initTranslation(); } function connAuthChange() { with ( document.forms ) { if(connReqAuth.checked == true) showhide("divConnAuth", 1); else showhide("divConnAuth", 0); } } function btnApply() { var loc = 'tr69cfg.cgi?'; with ( document.forms ) { if ( cbxtr69Enabled.checked == true ) { loc += 'tr69cEnable=1'; } else { loc += 'tr69cEnable=0'; loc += '&sessionKey=' + sessionKey; var code = 'location.assign("' + loc + '")'; eval(code); return; } if (acsURL.value == '') { alert(_("tr69cfgAlert")); return; } if ( inform.checked == true ) loc += '&tr69cInformEnable=1'; else loc += '&tr69cInformEnable=0'; if((isNaN(informInterval.value))|| ((parseInt(informInterval.value) <= 0)) ||(parseInt(informInterval.value) > 4249967295)//2147483647)// ||(String(parseInt(informInterval.value))!= informInterval.value)) { alert(_("tr69cfgAlert1") + informInterval.value + _("tr69cfgAlert2")); return; } loc += '&tr69cInformInterval=' + informInterval.value; if (acsURL.value.length > 256) { alert(_("tr69cfgAlert3"));/*zhaodc cut (' + acsURL.value.length + ')20101223*/ return; } var strhttp = acsURL.value.substring(0,7).toLowerCase(); var strhttps = acsURL.value.substring(0,8).toLowerCase(); if(strhttp== 'http://') { //acsURL.value.replace(/^http:/i,"http:"); acsURL.value =strhttp + acsURL.value.substring(7); } else if(strhttps== 'https://') { //acsURL.value.replace(/^https:/i,"https:"); acsURL.value = strhttps + acsURL.value.substring(8); } else { alert(_("tr69cfgAlert4") + acsURL.value + _("tr69cfgAlert5")); return; } loc += '&tr69cAcsURL=' + encodeUrl(acsURL.value); if (acsUser.value.length > 256) { alert(_("tr69cfgAlert6"));/*zhaodc cut (' + acsUser.value.length + ')20101223*/ return; } loc += '&tr69cAcsUser=' + encodeUrl(acsUser.value); if (acsPwd.value.length > 256) { alert(_("tr69cfgAlert7"));/*zhaodc cut (' + acsPwd.value.length + ') 20101223*/ return; } loc += '&tr69cAcsPwd=' + encodeUrl(acsPwd.value); if (connReqUser.value.length > 256) { alert(_("tr69cfgAlert8"));/*zhaodc cut (' + connReqUser.value.length + ')20101223*/ return; } loc += '&tr69cConnReqUser=' + encodeUrl(connReqUser.value); if (connReqPwd.value.length > 256) { alert(_("tr69cfgAlert9"));/*zhaodc cut(' + connReqPwd.value.length + ') 20101223*/ return; } loc += '&tr69cConnReqPwd=' + encodeUrl(connReqPwd.value); if ((connReqPort.value > 65535) || (connReqPort.value < 1)) { alert(_("tr69cfgAlert10")); return; } loc += '&tr69cConnReqPort=' + encodeUrl(connReqPort.value); if (connReqAuth.checked == true) loc += '&tr69cNoneConnReqAuth=0' else loc += '&tr69cNoneConnReqAuth=1' if (debug.checked == true) loc += '&tr69cDebugEnable=1'; else loc += '&tr69cDebugEnable=0'; var idx = wanIf.selectedIndex; loc += '&tr69cBoundIfName=' + wanIf.options.value; } loc += '&sessionKey=' + sessionKey; var code = 'location.assign("' + loc + '")'; eval(code); } function btnGet() { var loc = 'tr69get.cgi?'; loc += 'sessionKey=' + sessionKey; var code = 'location.assign("' + loc + '")'; eval(code); } function cbxEnblChange() { if( document.forms.cbxtr69Enabled.checked ) showhide("divtr69Config", 1); else showhide("divtr69Config", 0); } // done hiding --> </script> </head> <body onLoad='frmLoad()'> <blockquote> <form> <b><span id='tr69cfgTitle'>TR-069 client - Configuration</span><br> </b> <br> <span id='tr69cfgTips'>WAN Management Protocol (TR-069) allows a Auto-Configuration Server (ACS) to perform auto-configuration, provision, collection, and diagnostics to this device.</span><br> <br> <span id='tr69cfgTips2'>Select the desired values and click "Apply/Save" to configure the TR-069 client options.</span><br> <br> <input type='checkbox' name='cbxtr69Enabled' onClick='cbxEnblChange()'> <span id='tr69cfgEnable'>Enable WAN Management Protocol (TR-069).</span> <div id="divtr69Config"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="240" id='tr69cfgInform'>Inform</td> <td><input name='inform' type='radio'><span id='strDisable'>Disable</span></td> <td><input name='inform' type='radio'><span id='strEnable'>Enable</span></td> </tr> </table> <br> <table border="0" cellpadding="0" cellspacing="0"> <script language="javascript"> <!-- hiding if (0 == 1) { document.write('<tr>'); document.write("<td width='240'>Certificate Management:</td>"); document.write("<td><input type='button' onclick='location.href=\"tr69certcfg.html\"' value='View/Edit Certificate'></td>"); document.write("</tr>"); } // done hiding --> </script> <tr> <td width="240" id='tr69cfgInformInterval'>Inform Interval:</td> <td><input type='text' name='informInterval' size="20" maxlength="10"></td> </tr> <tr> <td id='tr69cfgAcsUrl'>ACS URL:</td> <td><input type='text' name='acsURL' size="20" maxlength="257"></td> </tr> <tr> <td id='tr69cfgAcsUsername'>ACS User Name:</td> <td><input type='text' name='acsUser' size="20" maxlength="257"></td> </tr> <tr> <td id='tr69cfgAcsPassword'>ACS Password:</td> <td><input type='password' name='acsPwd' size="20" maxlength="257"></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width=240 id='tr69cfgWanIfc'>WAN Interface used by TR-069 client:</td> <td><select name='wanIf'> <script language="javascript"> <!-- hiding { var i = 0; for ( i = 0; i < interfaces.length; i++ ) { if ( interfaces == boundIfName ) document.write(" <option value='" + interfaces + "' selected>"); else document.write(" <option value='" + interfaces + "'>"); document.writeln(interfaces); } } // done hiding --> </script> </select></td> </tr> <tr></tr> </table> <br> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="240" id='tr69cfgSoapDebug'>Display SOAP messages on serial console</td> <td><input name='debug' type='radio'><span id='strDisable2'>Disable</span></td> <td><input name='debug' type='radio'><span id='strEnable2'>Enable</span></td> </tr> </table> <br> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><input type="checkbox" name="connReqAuth" onClick="connAuthChange()"> <span id='tr69cfgCrAuthentication'>Connection Request Authentication</span></td> </tr> </table> <br> <div id="divConnAuth"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="240" id='tr69cfgCrUsername'>Connection Request User Name:</td> <td><input type='text' name='connReqUser' size="20" maxlength="257"></td> </tr> <tr> <td id='tr69cfgCrPassword'>Connection Request Password:</td> <td><input type='password' name='connReqPwd' size="20" maxlength="257"></td> </tr> </table> </div> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="240" id='tr69cfgCrPort'>Connection Request Port:</td> <td><input type='text' name='connReqPort' size="20" maxlength="256"></td> </tr> <tr> <td width="240" id='tr69cfgCrUrl'>Connection Request URL:</td> <td>http://147.235.56.204:30005/</td> </tr> </table> </div> <!-- hide <p align="center"> <input type='button' onClick='btnApply()' value='Apply/Save' id='buttonApplySave'> <input type='button' onClick='btnGet()' value='GetRPCMethods' id='buttonGetRpcMethods'> </P> // done hiding --> </form> </blockquote> </body> </html>
|