| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/ext/mailhive/cloudbeez/cloudloader/js/ |
Upload File : |
/*
MailBeez Automatic Trigger Email Campaigns
http://www.mailbeez.com
Copyright (c) 2010 - 2014 MailBeez
inspired and in parts based on
Copyright (c) 2003 osCommerce
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
*/
/*!
* Configuration Form (Step 2)
*/
Installer.Pages.configForm.activeCategory = null
Installer.Pages.configForm.init = function() {
var configForm = $('#configForm').addClass('animate fade_in')
Installer.renderSections(Installer.Pages.configForm.sections)
var configFormFailed = $('#configFormFailed').hide(),
configFormDatabase = $('#configFormDatabase')
configFormDatabase.renderPartial('config/mysql')
// Set the encryption code with a random string
$('#advEncryptionCode').val(Math.random().toString(36).slice(2))
}
Installer.Pages.configForm.next = function() {
var eventChain = [],
configFormFailed = $('#configFormFailed').hide().removeClass('animate fade_in')
Installer.Data.config = $('#configFormElement').serializeObject()
$('.section-area').removeClass('fail')
/*
* Validate each section
*/
$.each(Installer.Pages.configForm.sections, function(index, section){
eventChain.push(function() {
return $('#configFormElement').sendRequest(section.handler).fail(function(data){
configFormFailed.show().addClass('animate fade_in')
configFormFailed.renderPartial('config/fail', { label: section.label, reason: data.responseText })
var sectionElement = $('.section-area[data-section-code="'+section.code+'"]').addClass('fail')
configFormFailed.appendTo(sectionElement)
Installer.showSection(section.code)
// Scroll browser to the bottom of the error
var scrollTo = configFormFailed.offset().top - $(window).height() + configFormFailed.height() + 10
$('body, html').animate({ scrollTop: scrollTo })
})
})
})
$.waterfall.apply(this, eventChain).done(function(){
Installer.showPage('projectForm')
})
}
Installer.Pages.configForm.toggleDatabase = function(el) {
var selectedValue = $(el).val(),
configFormDatabase = $('#configFormDatabase'),
databasePartial = 'config/' + selectedValue
configFormDatabase.renderPartial(databasePartial)
}