boolean detected = false;
SIDLogin.check("", urlstr1, box_password, box_username, sRetSID);
sRetSID = SIDLogin.getSessionId();
FBFWVN fbfwvn = new FBFWVN(getFirmwareStatus());
// FBFWVN fbfwvn = new
// FBFWVN("<html><body>FRITZ!Box Fon WLAN 7362 SL-B-101100-000008-630046-320710-787902-1310601-12345-avm-de</body></html>");
if (SIDLogin.isSidLogin()) {
if (fbfwvn.isOK()) {
detected = true;
}
} else if (SIDLogin.isLogin()) {
detected = true;
}
if (detected) {
connected = true;
}
if (!detected) {
JOptionPane.showMessageDialog(FBEdit.getInstance().getframe(),
FBEdit.getMessage("utils.read_error"),
FBEdit.getMessage("main.error"), 0);
return;
}
String FritzboxName = "", boxtypeString = "", majorFirmwareVersion = "", minorFirmwareVersion = "", modFirmwareVersion = "";
if (fbfwvn.isOK()) {
FritzboxName = fbfwvn.getFritzbox();
boxtypeString = fbfwvn.getBoxTypeFBFWVN();
majorFirmwareVersion = fbfwvn.getMajorFBFWVN();
minorFirmwareVersion = fbfwvn.getMinorFBFWVN();
modFirmwareVersion = fbfwvn.getModFBFWVN();
// language != "de" 01.03.2014
if (fbfwvn.isFritzboxLanguage()) {
language = fbfwvn.getFritzboxLanguage().toLowerCase();
}
} else {
HttpPost http = new HttpPost();