wlang signal zero lahat..pero napapalitan ng mac...
check ko lahat ok..maliban d2 sa Authentication ! d ko npapalitan ang user password
kahit lagyan ko ng 4digits bumabalik sya sa 13 digits
tapos inspect element ko eto nkita ko sa code
var TLS = '13';
var TTLS = '21';
var NO_PKM = '0';
var PKMv2_EAP = '2';
var PAP = '1';
var CHAP = '2';
var MSCHAP = '3';
var MSCHAPV2 = '4';
function stAuthInfo(domain,PkmType,EapType,EapUserType,AnonymousID,UserName,UserPassword)
{
this.domain = domain;
this.PkmType = PkmType;
this.EapType = EapType;
this.EapUserType = EapUserType;
this.AnonymousID = AnonymousID;
this.UserName = UserName;
this.UserPassword = "!@#$%$%^&*()_"; ----- MAY NKA SET NA PASSWORD.. paki tingnan po sa mga wlang signal jan kung pareho tau..
}
var WMXAuthArray = new Array(new stAuthInfo("InternetGatewayDevice.WiMAX.Auth","2","21","4","[email protected]","[email protected]"),null);
var WMXAuth = WMXAuthArray[0];
function LoadFrame()
{
hideContextmenu();
setLoadValue();
onChangeSvrList();
var i = 100;
i = GetmenuName("security.asp");
var menuName = UpdateMenuByFileName(i);
menuItem = top.g_oMenuTree.curMenuItem;
var cookie = document.cookie;
ReLocation(cookie,menuName);
}
function setLoadValue()
{
if(0 == WMXAuth.PkmType || '0' == WMXAuth.PkmType)
{
setSelect('List_Pkm', 0);
}
else
{
setSelect('List_Pkm', 2);
}
if(21 == WMXAuth.EapType || '21' == WMXAuth.EapType)
{
setSelect('List_Auth', 21);
}
else
{
setSelect('List_Auth', 13);
}
setSelect('List_Eap', 4);
if("wimax820" == WMXAuth.AnonymousID)
{
setText('Anony_Item', "");
}
else
{
setText('Anony_Item', WMXAuth.AnonymousID);
}
setText('User_Id', WMXAuth.UserName);
setText('User_Password', WMXAuth.UserPassword);
}
function onChangeSvrList()
{
if(getElement('List_Pkm').value == '0')
{
setDisplay('Selett_EAP', 0);
setDisplay('Selett_Auth', 0);
setDisplay('Select_Anon', 0);
setDisplay('Select_Usepass', 0);
setDisplay('Select_Useid', 0);
}
else
{
setDisplay('Selett_Auth', 1);
setDisplay('Select_Anon', 1);
if(getValue("List_Auth") == '21' || getValue("List_Auth") == 21)
{
setDisplay('Selett_EAP', 1);
setDisplay('Select_Usepass', 1);
setDisplay('Select_Useid', 1);
}
}
}
function onChangeAuthList()
{
if(getValue("List_Auth") == '21' || getValue("List_Auth") == 21)
{
setDisplay('Selett_EAP', 1);
setDisplay('User_Id', 1);
setDisplay('Select_Usepass', 1) ;
setDisplay('Select_Useid', 1);
}
else
{
setDisplay('Selett_EAP', 0);
setDisplay('User_Id', 0);
setDisplay('Select_Usepass', 0);
setDisplay('Select_Useid', 0);
}
}
function CheckForm(type)
{
if (1 == type)
{
with (getElById('ConfigForm'))
{
if (0 == getValue("List_Pkm") || '0' == getValue("List_Pkm"))
{
return confirm(eval("gErrStr7"));
}
var AuthValue = getValue("List_Auth");
if(AuthValue == '21' || AuthValue == 21)
{
return checkSecuritySet();
}
else if (AuthValue == '13' || AuthValue == 13)
{
return checkNAISet();
}
else
{
return confirm(eval("gErrStr7"));
}
}
}
else
{
return confirm(eval("gErrStr7"));
}
}
function checkNAISet()
{
if(getValue ('Anony_Item') == "")
{
alert(eval("gErrStr0"));
return false;
}
return confirm(eval("gErrStr7"));
}
function checkSecuritySet()
{
var msg = '';
if (isValidString(getValue ('User_Id')) == false )
{
msg = eval("gErrStr3");
alert(msg);
return false;
}
if ( isValidString(getValue ('User_Password')) == false )
{
msg = eval("gErrStr6");
alert(msg);
return false;
}
if(getValue ('Anony_Item')== "")
{
alert(eval("gErrStr0"));
return false;
}
return confirm(eval("gErrStr7"));
}
function AddSubmitParam(SubmitForm,type)
{
switch (type)
{
case 1:
if (0 == getValue("List_Pkm") || '0' == getValue("List_Pkm"))
{
SubmitForm.addParameter('x.PkmType' ,getValue("List_Pkm") );
SubmitForm.addParameter('x.EapType' ,getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID' ,getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
}
else
{
if(getValue("List_Auth") == '21' || getValue("List_Auth") == 21)
{
SubmitForm.addParameter('x.PkmType' ,getValue("List_Pkm") );
SubmitForm.addParameter('x.EapType' ,getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID' ,getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
}
else
{
SubmitForm.addParameter('x.PkmType', getValue("List_Pkm") );
SubmitForm.addParameter('x.EapType', getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID', getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
}
}
break;
case 2:
SubmitForm.addParameter('x.PkmType', 0 );
SubmitForm.addParameter('x.EapType', getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID', getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
break;
default:break;
}
}
check ko lahat ok..maliban d2 sa Authentication ! d ko npapalitan ang user password
kahit lagyan ko ng 4digits bumabalik sya sa 13 digits
tapos inspect element ko eto nkita ko sa code
var TLS = '13';
var TTLS = '21';
var NO_PKM = '0';
var PKMv2_EAP = '2';
var PAP = '1';
var CHAP = '2';
var MSCHAP = '3';
var MSCHAPV2 = '4';
function stAuthInfo(domain,PkmType,EapType,EapUserType,AnonymousID,UserName,UserPassword)
{
this.domain = domain;
this.PkmType = PkmType;
this.EapType = EapType;
this.EapUserType = EapUserType;
this.AnonymousID = AnonymousID;
this.UserName = UserName;
this.UserPassword = "!@#$%$%^&*()_"; ----- MAY NKA SET NA PASSWORD.. paki tingnan po sa mga wlang signal jan kung pareho tau..
}
var WMXAuthArray = new Array(new stAuthInfo("InternetGatewayDevice.WiMAX.Auth","2","21","4","[email protected]","[email protected]"),null);
var WMXAuth = WMXAuthArray[0];
function LoadFrame()
{
hideContextmenu();
setLoadValue();
onChangeSvrList();
var i = 100;
i = GetmenuName("security.asp");
var menuName = UpdateMenuByFileName(i);
menuItem = top.g_oMenuTree.curMenuItem;
var cookie = document.cookie;
ReLocation(cookie,menuName);
}
function setLoadValue()
{
if(0 == WMXAuth.PkmType || '0' == WMXAuth.PkmType)
{
setSelect('List_Pkm', 0);
}
else
{
setSelect('List_Pkm', 2);
}
if(21 == WMXAuth.EapType || '21' == WMXAuth.EapType)
{
setSelect('List_Auth', 21);
}
else
{
setSelect('List_Auth', 13);
}
setSelect('List_Eap', 4);
if("wimax820" == WMXAuth.AnonymousID)
{
setText('Anony_Item', "");
}
else
{
setText('Anony_Item', WMXAuth.AnonymousID);
}
setText('User_Id', WMXAuth.UserName);
setText('User_Password', WMXAuth.UserPassword);
}
function onChangeSvrList()
{
if(getElement('List_Pkm').value == '0')
{
setDisplay('Selett_EAP', 0);
setDisplay('Selett_Auth', 0);
setDisplay('Select_Anon', 0);
setDisplay('Select_Usepass', 0);
setDisplay('Select_Useid', 0);
}
else
{
setDisplay('Selett_Auth', 1);
setDisplay('Select_Anon', 1);
if(getValue("List_Auth") == '21' || getValue("List_Auth") == 21)
{
setDisplay('Selett_EAP', 1);
setDisplay('Select_Usepass', 1);
setDisplay('Select_Useid', 1);
}
}
}
function onChangeAuthList()
{
if(getValue("List_Auth") == '21' || getValue("List_Auth") == 21)
{
setDisplay('Selett_EAP', 1);
setDisplay('User_Id', 1);
setDisplay('Select_Usepass', 1) ;
setDisplay('Select_Useid', 1);
}
else
{
setDisplay('Selett_EAP', 0);
setDisplay('User_Id', 0);
setDisplay('Select_Usepass', 0);
setDisplay('Select_Useid', 0);
}
}
function CheckForm(type)
{
if (1 == type)
{
with (getElById('ConfigForm'))
{
if (0 == getValue("List_Pkm") || '0' == getValue("List_Pkm"))
{
return confirm(eval("gErrStr7"));
}
var AuthValue = getValue("List_Auth");
if(AuthValue == '21' || AuthValue == 21)
{
return checkSecuritySet();
}
else if (AuthValue == '13' || AuthValue == 13)
{
return checkNAISet();
}
else
{
return confirm(eval("gErrStr7"));
}
}
}
else
{
return confirm(eval("gErrStr7"));
}
}
function checkNAISet()
{
if(getValue ('Anony_Item') == "")
{
alert(eval("gErrStr0"));
return false;
}
return confirm(eval("gErrStr7"));
}
function checkSecuritySet()
{
var msg = '';
if (isValidString(getValue ('User_Id')) == false )
{
msg = eval("gErrStr3");
alert(msg);
return false;
}
if ( isValidString(getValue ('User_Password')) == false )
{
msg = eval("gErrStr6");
alert(msg);
return false;
}
if(getValue ('Anony_Item')== "")
{
alert(eval("gErrStr0"));
return false;
}
return confirm(eval("gErrStr7"));
}
function AddSubmitParam(SubmitForm,type)
{
switch (type)
{
case 1:
if (0 == getValue("List_Pkm") || '0' == getValue("List_Pkm"))
{
SubmitForm.addParameter('x.PkmType' ,getValue("List_Pkm") );
SubmitForm.addParameter('x.EapType' ,getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID' ,getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
}
else
{
if(getValue("List_Auth") == '21' || getValue("List_Auth") == 21)
{
SubmitForm.addParameter('x.PkmType' ,getValue("List_Pkm") );
SubmitForm.addParameter('x.EapType' ,getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID' ,getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
}
else
{
SubmitForm.addParameter('x.PkmType', getValue("List_Pkm") );
SubmitForm.addParameter('x.EapType', getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID', getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
}
}
break;
case 2:
SubmitForm.addParameter('x.PkmType', 0 );
SubmitForm.addParameter('x.EapType', getValue("List_Auth") );
SubmitForm.addParameter('x.EapUserType' ,getValue("List_Eap") );
SubmitForm.addParameter('x.UserName' ,getValue("User_Id") );
SubmitForm.addParameter('x.UserPassword' ,getValue("User_Password") );
SubmitForm.addParameter('x.AnonymousID', getValue("Anony_Item") );
SubmitForm.setAction('setcfg.cgi?x=InternetGatewayDevice.WiMAX.Auth&RequestFile=html/wimax/security.asp');
break;
default:break;
}
}