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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/popup-bu.../com/helpers
File: AdminHelper.php
}
[2500] Fix | Delete
}
[2501] Fix | Delete
}
[2502] Fix | Delete
//Scan each customJS to find insecurity custom JS code
[2503] Fix | Delete
return $sgpbdetect_flag;
[2504] Fix | Delete
}
[2505] Fix | Delete
public static function renderAlertCustomJsProblem( $scan_spam_code )
[2506] Fix | Delete
{
[2507] Fix | Delete
if( !self::getOption( 'sgpb-hide_disable-injection-warning') )
[2508] Fix | Delete
{
[2509] Fix | Delete
if( self::getOption('sgpb-disable-custom-js') )
[2510] Fix | Delete
{
[2511] Fix | Delete
$sgpb_message = '<div class="notice_sgpb notice notice-warning is-dismissible sgpb_injecttion_notice">
[2512] Fix | Delete
<h4>From Popup Builder Team </h4>
[2513] Fix | Delete
<p>Important! We`ve scanned your CUSTOM JS code on your Popup setting and found some snippets that are insecure and may compromise the security of your site.</p>
[2514] Fix | Delete
<p class="sgpb">Please check <a class="sgpb-btn sgpb-btn-blue" style="padding: 4px 10px;" href="'. esc_url( $scan_spam_code ).'">HERE</a> for the code you added in the CUSTOM JS section on each popup again and remove those snippets.</p>
[2515] Fix | Delete
<p class="sgpb">Or you can <a class="sgpb-btn sgpb-btn-gray-light" style="padding: 4px 10px;" href="'. esc_url( admin_url( 'edit.php?post_type=popupbuilder&page=sgpbSettings&hide_injection=true' ) ).'">HIDE</a> this warning if you believe your CUSTOM JS code is secure.</p>
[2516] Fix | Delete
<p></p></div>';
[2517] Fix | Delete
}
[2518] Fix | Delete
else
[2519] Fix | Delete
{
[2520] Fix | Delete
$sgpb_message = '<div class="notice_sgpb notice notice-error is-dismissible sgpb_injecttion_notice">
[2521] Fix | Delete
<h4>From Popup Builder Team </h4>
[2522] Fix | Delete
<p>Important! We`ve scanned your CUSTOM JS code on your Popup setting and found some snippets that are insecure and may compromise the security of your site.</p>
[2523] Fix | Delete
<p class="sgpb">Please click <a class="sgpb-btn sgpb-btn-blue" style="padding: 4px 10px;" href="'. esc_url( admin_url( 'edit.php?post_type=popupbuilder&page=sgpbSettings' ) ).'">HERE</a> to disable this function and check the code you added in the CUSTOM JS section on each popup.</p>
[2524] Fix | Delete
<p class="sgpb">Or you can <a class="sgpb-btn sgpb-btn-danger" style="padding: 4px 10px;" href="'. esc_url( admin_url( 'edit.php?post_type=popupbuilder&page=sgpbSettings&hide_injection=true' ) ).'">HIDE</a> this ERROR notice if you believe your CUSTOM JS code is secure.</p>
[2525] Fix | Delete
<p></p></div>';
[2526] Fix | Delete
}
[2527] Fix | Delete
return $sgpb_message;
[2528] Fix | Delete
}
[2529] Fix | Delete
}
[2530] Fix | Delete
public static function renderAlertEnableCustomJS( )
[2531] Fix | Delete
{
[2532] Fix | Delete
$sgpb_message = '';
[2533] Fix | Delete
if( self::getOption('sgpb-disable-custom-js') )
[2534] Fix | Delete
{
[2535] Fix | Delete
if( !self::getOption( 'sgpb-hide_disable-custom-js-warning') )
[2536] Fix | Delete
{
[2537] Fix | Delete
$sgpb_message = '<div class="notice_sgpb notice notice-info is-dismissible sgpb_dsiable_notice">
[2538] Fix | Delete
<h4>From Popup Builder Team </h4>
[2539] Fix | Delete
<p>You are disabling the CUSTOM JS feature for all your Popups. </p>
[2540] Fix | Delete
<p></p>
[2541] Fix | Delete
<p class="sgpb">Please go <a class="sgpb-btn sgpb-btn-blue" style="padding: 4px 10px;" href="'. esc_url( admin_url( 'edit.php?post_type=popupbuilder&page=sgpbSettings' ) ).'">HERE</a> to enable it again.
[2542] Fix | Delete
Or you can <a class="sgpb-btn sgpb-btn-blue" style="padding: 4px 10px;" href="'. esc_url( admin_url( 'edit.php?post_type=popupbuilder&page=sgpbSettings&hide_warning=true' ) ).'">HIDE</a> this warning.</p>
[2543] Fix | Delete
<p></p>
[2544] Fix | Delete
</div>';
[2545] Fix | Delete
}
[2546] Fix | Delete
}
[2547] Fix | Delete
return $sgpb_message;
[2548] Fix | Delete
}
[2549] Fix | Delete
[2550] Fix | Delete
}
[2551] Fix | Delete
[2552] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function