Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../magento2
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
// Check if there is a number in random generated password
[15] Fix | Delete
function update_admin_pass(){
[16] Fix | Delete
[17] Fix | Delete
if(typeof jQuery('#admin_pass').val() == "undefined"){
[18] Fix | Delete
setTimeout('update_admin_pass();', 500);
[19] Fix | Delete
return;
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
var admin_pass = jQuery('#admin_pass').val();
[23] Fix | Delete
var isnum = /\d+/.test(admin_pass);
[24] Fix | Delete
[25] Fix | Delete
if(!isnum){
[26] Fix | Delete
admin_pass = admin_pass+Math.floor((Math.random() * 10) + 1);
[27] Fix | Delete
jQuery('#admin_pass').val(admin_pass);
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
update_admin_pass();
[32] Fix | Delete
[33] Fix | Delete
// Check if dbprefix is less than 6 chars
[34] Fix | Delete
function update_dbprefix(){
[35] Fix | Delete
[36] Fix | Delete
if(typeof jQuery('#dbprefix').val() == "undefined"){
[37] Fix | Delete
setTimeout('update_dbprefix();', 500);
[38] Fix | Delete
return;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
var dbprefix = jQuery('#dbprefix').val();
[42] Fix | Delete
var length = dbprefix.length;
[43] Fix | Delete
[44] Fix | Delete
if(length > 5){
[45] Fix | Delete
newdbprefix = dbprefix.substring(0, 4);
[46] Fix | Delete
jQuery('#dbprefix').val(newdbprefix+"_");
[47] Fix | Delete
}
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
setTimeout('update_dbprefix();', 1000);
[51] Fix | Delete
[52] Fix | Delete
function formcheck(){
[53] Fix | Delete
[54] Fix | Delete
if($('dbprefix').value.length > 5){
[55] Fix | Delete
alert('{{err_dbprefixlen}}');
[56] Fix | Delete
return false;
[57] Fix | Delete
}
[58] Fix | Delete
[59] Fix | Delete
//Check the Admin Email
[60] Fix | Delete
if(window.check_punycode){
[61] Fix | Delete
if(!check_punycode($('admin_email').value)){
[62] Fix | Delete
alert('{{err_ademail}}');
[63] Fix | Delete
return false;
[64] Fix | Delete
}
[65] Fix | Delete
return true;
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
return true;
[69] Fix | Delete
};
[70] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function