Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../joomla30
File: install.js
//////////////////////////////////////////////////////////////
[0] Fix | Delete
// install.js
[1] Fix | Delete
// Checks the installation form of the software being
[2] Fix | Delete
// installed by SOFTACULOUS
[3] Fix | Delete
// NOTE: 1) Only formcheck() function will be called.
[4] Fix | Delete
// 2) A software Vendor can use the same name for every
[5] Fix | Delete
// field to be checked as in install.xml . It can be
[6] Fix | Delete
// called using $('fieldname').value or any property
[7] Fix | Delete
// 3) Must Return true or false
[8] Fix | Delete
// ----------------------------------------------------------
[9] Fix | Delete
// Please Read the Terms of use at http://www.softaculous.com
[10] Fix | Delete
// ----------------------------------------------------------
[11] Fix | Delete
// (c)Softaculous Inc.
[12] Fix | Delete
//////////////////////////////////////////////////////////////
[13] Fix | Delete
[14] Fix | Delete
function formcheck(){
[15] Fix | Delete
[16] Fix | Delete
//Check the Admin Email
[17] Fix | Delete
if(window.check_punycode){
[18] Fix | Delete
if(!check_punycode($('admin_email').value)){
[19] Fix | Delete
alert('{{err_ademail}}');
[20] Fix | Delete
return false;
[21] Fix | Delete
}
[22] Fix | Delete
return true;
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
return true;
[26] Fix | Delete
};
[27] Fix | Delete
[28] Fix | Delete
// Update the in dir
[29] Fix | Delete
function update_joomla30_indir(){
[30] Fix | Delete
[31] Fix | Delete
if(joomla30_retries >= 5){
[32] Fix | Delete
return;
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
if(typeof jQuery('#softdirectory').val() == "undefined"){
[36] Fix | Delete
joomla30_retries++;
[37] Fix | Delete
setTimeout('update_joomla30_indir();', 500);
[38] Fix | Delete
return;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
var softdirectory = jQuery('#softdirectory').val();
[42] Fix | Delete
[43] Fix | Delete
if(softdirectory == 'joomla30'){
[44] Fix | Delete
jQuery('#softdirectory').val('joomla');
[45] Fix | Delete
}
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
var joomla30_retries = 0;
[49] Fix | Delete
update_joomla30_indir();
[50] Fix | Delete
[51] Fix | Delete
jQuery(document).ready(function(){
[52] Fix | Delete
[53] Fix | Delete
// Joomla requires password to be minimum 12 chars so generate random accordingly
[54] Fix | Delete
if(globals_rand_pass > 0){
[55] Fix | Delete
setTimeout('joomla30_rand_pass();', 500);
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
jQuery( ".generate-password" ).on( "click", function(){
[59] Fix | Delete
joomla30_rand_pass();
[60] Fix | Delete
});
[61] Fix | Delete
[62] Fix | Delete
});
[63] Fix | Delete
[64] Fix | Delete
function joomla30_rand_pass(){
[65] Fix | Delete
[66] Fix | Delete
try{
[67] Fix | Delete
jQuery("#admin_pass").val(randstr(12, 1, globals_pass_strength));
[68] Fix | Delete
check_pass_strength();
[69] Fix | Delete
}
[70] Fix | Delete
catch(e){}
[71] Fix | Delete
}
[72] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function