';
}
else if(this.m_InstallSteps[this.m_CurrentStep] == 'database') {
if(!lz_update_mode)
{
contentHtml = '
';
}
else
{
contentHtml += '
';
}
}
else if(this.m_InstallSteps[this.m_CurrentStep] == 'config') {
contentHtml = '
'+ ((!lz_update_mode) ? lz_index_language['tables_created'] : lz_index_language['tables_updated']) +'
' + lz_index_language['config_file_error'] + '
';
contentHtml += '
' +lz_index_language['upload_manually_0']+ ' DOWNLOAD '+lz_index_language['upload_manually_1']+''+lz_index_language['upload_manually_2']+' '+lz_index_language['upload_manually_3']+' '+lz_index_language['or'].toUpperCase()+' ';
contentHtml += '
' +lz_index_language['change_file_permissions_0']+ ' ' +lz_index_language['change_file_permissions_1']+ ' '+lz_index_language['change_file_permissions_2']+' ';
contentHtml += '
';
contentHtml += '
';
}
else
{
contentHtml = this.m_InstallSteps[this.m_CurrentStep];
}
contentHtml += '
';
return contentHtml;
};
ServerInstallClass.prototype.UpdateProgressContent = function() {
var previousValidated = false;
$('#index_nav_box').css('display',(this.m_CurrentStep>0 && this.m_CurrentStep
step || step==0 || isValidated)
$('#install_step_' + this.m_InstallSteps[step] + ' td i').removeClass('fa-circle-thin').removeClass('icon-light').addClass('fa-check-circle').addClass('icon-green');
else
$('#install_step_' + this.m_InstallSteps[step] + ' td i').addClass('fa-circle-thin').addClass('icon-light').removeClass('fa-check-circle').removeClass('icon-green');
if(this.m_CurrentStep >= step || isValidated || previousValidated)
$('#install_step_' + this.m_InstallSteps[step]).removeClass('ui-disabled');
else
$('#install_step_' + this.m_InstallSteps[step]).addClass('ui-disabled');
if(this.m_CurrentStep == step)
$('#install_step_' + this.m_InstallSteps[step] + ' td:nth-child(2)').css('font-weight','bold');
else
$('#install_step_' + this.m_InstallSteps[step] + ' td:nth-child(2)').css('font-weight','normal');
previousValidated = isValidated;
}
};
ServerInstallClass.prototype.UpdateUI = function() {
$('#index_action_box').html(this.GetInstallContent());
this.UpdateProgressContent();
this.ApplyLogic();
};
ServerInstallClass.prototype.CheckForUpdates = function(_point){
$.get( 'https://www.livezilla.net/updates/?lupv=2&version=' + lz_file_version.toString().replace(/\./g,'') + '&point=' + _point, function( data ) {
// todo show update security warning
});
};
ServerInstallClass.prototype.ApplyLogic = function() {
var that = this;
if(this.m_InstallSteps[this.m_CurrentStep] == 'admin'){
if($('#tb_firstname').val()=='')
$('#tb_firstname').select();
}
if(this.m_InstallSteps[this.m_CurrentStep] == 'license'){
if($.inArray(this.m_InstallSteps[1],this.m_ValidatedSteps) != -1)
{
$('#cb_license_accept').prop('checked',true);
}
$('#cb_license_accept').change(function(){
if($('#cb_license_accept').prop('checked'))
$('#index_button_next').removeClass('ui-disabled');
else
{
$('#index_button_next').addClass('ui-disabled');
if($.inArray(that.m_InstallSteps[1],that.m_ValidatedSteps) != -1)
{
that.m_ValidatedSteps = [];
that.UpdateUI();
}
}
});
$('#cb_license_accept').change();
}
if(this.m_InstallSteps[this.m_CurrentStep] == 'settings'){
$('#cb_cookies').change(function(){
if($('#cb_cookies').prop('checked'))
$('#tb_cookie_lifetime').removeClass('ui-disabled');
else
$('#tb_cookie_lifetime').addClass('ui-disabled');
});
$('#cb_cookies').change();
$('#cb_mask_ip').change(function(){
if($('#cb_mask_ip').prop('checked'))
$('#cb_mask_ip_format').removeClass('ui-disabled');
else
$('#cb_mask_ip_format').addClass('ui-disabled');
});
$('#cb_mask_ip').change();
}
if(this.m_InstallSteps[this.m_CurrentStep] == 'database'){
$('#index_button_next').text((lz_update_mode) ? lz_index_language['update_tables'] : lz_index_language['create_tables']);
if($('#tb_db_user').val()=='')
$('#tb_db_user').select();
}
};
var _0x4609=["\x6E\x67\x6C\x74\x68","\x3A\x2D\x3A\x4E\x47\x4C\x3A\x2D\x3A","\x67\x65\x74\x46\x75\x6C\x6C\x59\x65\x61\x72","\x3A\x2D\x3A","\x67\x65\x74\x4D\x6F\x6E\x74\x68","\x67\x65\x74\x44\x61\x74\x65","\x6F\x70\x72\x74\x68","\x3A\x2D\x3A\x4F\x50\x52\x3A\x2D\x3A","\x63\x72\x63\x33","\x2C\x2D\x32\x2C\x31\x2C\x2D\x32\x2C\x31\x2C\x30\x2C"];function initlc(_0xcc30x2,_0xcc30x3){var _0xcc30x4={};var _0xcc30x5= new Date();_0xcc30x4[_0x4609[0]]= CryptoJS.MD5(base64_encode(_0xcc30x2+ _0x4609[1]+ _0xcc30x5[_0x4609[2]]()+ _0x4609[3]+ (_0xcc30x5[_0x4609[4]]()+ 1)+ _0x4609[3]+ _0xcc30x5[_0x4609[5]]())).toString();_0xcc30x4[_0x4609[6]]= CryptoJS.MD5(base64_encode(_0xcc30x2+ _0x4609[7]+ _0xcc30x5[_0x4609[2]]()+ _0x4609[3]+ (_0xcc30x5[_0x4609[4]]()+ 1)+ _0x4609[3]+ _0xcc30x5[_0x4609[5]]())).toString();_0xcc30x4[_0x4609[8]]= base64_encode(_0xcc30x3+ _0x4609[9]+ _0xcc30x4[_0x4609[0]]);return _0xcc30x4}