Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../assets/js
File: admin-system-status.js
/*
[0] Fix | Delete
@var i string default
[1] Fix | Delete
@var l how many repeat s
[2] Fix | Delete
@var s string to repeat
[3] Fix | Delete
@var w where s should indent
[4] Fix | Delete
*/
[5] Fix | Delete
jQuery.wc_strPad = function(i,l,s,w) {
[6] Fix | Delete
var o = i.toString();
[7] Fix | Delete
if (!s) { s = '0'; }
[8] Fix | Delete
while (o.length < l) {
[9] Fix | Delete
// empty
[10] Fix | Delete
if(w == 'undefined'){
[11] Fix | Delete
o = s + o;
[12] Fix | Delete
}else{
[13] Fix | Delete
o = o + s;
[14] Fix | Delete
}
[15] Fix | Delete
}
[16] Fix | Delete
return o;
[17] Fix | Delete
};
[18] Fix | Delete
jQuery('#copy-system-status' ).click( function(){
[19] Fix | Delete
[20] Fix | Delete
var paragraphContainer = jQuery( this ).parent();
[21] Fix | Delete
var report = "";
[22] Fix | Delete
[23] Fix | Delete
jQuery('.nf-status-table thead, .nf-status-table tbody').each(function(){
[24] Fix | Delete
if ( jQuery( this ).is('thead') ) {
[25] Fix | Delete
report = report + "\n### " + jQuery( this ).text().trim() + " ###\n\n";
[26] Fix | Delete
} else {
[27] Fix | Delete
jQuery('tr', jQuery( this )).each(function(){
[28] Fix | Delete
var the_name = jQuery.wc_strPad( jQuery( this ).find('td:eq(0)').text().trim(), 25, ' ' );
[29] Fix | Delete
var the_value = jQuery( this ).find('td:eq(1)').text().trim();
[30] Fix | Delete
var value_array = the_value.split( ', ' );
[31] Fix | Delete
if ( value_array.length > 1 ){
[32] Fix | Delete
// if value have a list of plugins ','
[33] Fix | Delete
// split to add new line
[34] Fix | Delete
var output = '';
[35] Fix | Delete
var temp_line ='';
[36] Fix | Delete
jQuery.each( value_array, function(key, line){
[37] Fix | Delete
var tab = ( key == 0 )?0:25;
[38] Fix | Delete
temp_line = temp_line + jQuery.wc_strPad( '', tab, ' ', 'f' ) + line +'\n';
[39] Fix | Delete
});
[40] Fix | Delete
the_value = temp_line;
[41] Fix | Delete
}
[42] Fix | Delete
report = report +''+ the_name + the_value + "\n";
[43] Fix | Delete
});
[44] Fix | Delete
}
[45] Fix | Delete
} );
[46] Fix | Delete
[47] Fix | Delete
try {
[48] Fix | Delete
[49] Fix | Delete
var tmp = jQuery("<textarea>");
[50] Fix | Delete
jQuery("body").append(tmp);
[51] Fix | Delete
tmp.val( report ).select();
[52] Fix | Delete
document.execCommand("copy");
[53] Fix | Delete
tmp.remove();
[54] Fix | Delete
[55] Fix | Delete
var myModal = new jBox( 'Modal', {
[56] Fix | Delete
content: '<i class="fa fa-clipboard" aria-hidden="true"></i> Copied!',
[57] Fix | Delete
onOpen: function() {
[58] Fix | Delete
setTimeout(function(){ myModal.close() }, 700);
[59] Fix | Delete
}
[60] Fix | Delete
} );
[61] Fix | Delete
[62] Fix | Delete
myModal.open();
[63] Fix | Delete
[64] Fix | Delete
return false;
[65] Fix | Delete
} catch(e) {
[66] Fix | Delete
console.log( e );
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
return false;
[70] Fix | Delete
});
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function