Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/plugins/secupress/assets/admin/js/ |
Upload File : |
/* globals jQuery: false, ajaxurl: false, SecuPressi18n: false, swal2: false */
// !Global vars ====================================================================================
var SecuPress = {
swal2Defaults: {
confirmButtonText: SecuPressi18n.confirmText,
cancelButtonText: SecuPressi18n.cancelText,
type: "warning",
allowOutsideClick: true,
customClass: "wpmedia-swal2 secupress-swal2"
},
swal2ConfirmDefaults: {
showCancelButton: true,
closeOnConfirm: false
}
};
/**
* Basic tools
*/
// Shorthand to tell if a modifier key is pressed.
function secupressHasModifierKey( e ) {
return e.altKey || e.ctrlKey || e.metaKey || e.shiftKey;
}
// Shorthand to tell if the pressed key is Space or Enter.
function secupressIsSpaceOrEnterKey( e ) {
return ( e.which === 13 || e.which === 32 ) && ! secupressHasModifierKey( e );
}
// Shorthand to tell if the pressed key is Space.
function secupressIsSpaceKey( e ) {
return e.which === 32 && ! secupressHasModifierKey( e );
}
// Shorthand to tell if the pressed key is Enter.
function secupressIsEnterKey( e ) {
return e.which === 13 && ! secupressHasModifierKey( e );
}
// Shorthand to tell if the pressed key is Escape.
function secupressIsEscapeKey( e ) {
return e.which === 27 && ! secupressHasModifierKey( e );
}
jQuery( document ).ready( function( $ ) {
// Themes page: Move the "div alert" when a theme is vulnerable. ===============================
(function($, d, w, undefined) {
$( ".secupress-bad-theme" ).each( function( index, html ) {
var $theme = $( "#" + $( this ).attr( "data-theme" ) + "-name" );
$theme.parent().find( ".theme-update" ).remove();
$theme.parent().find( ".theme-actions .activate" ).remove();
$theme.after( html );
} );
} )(jQuery, document, window);
if ( "undefined" !== typeof( SecuPressi18nSHC ) ) {
$(".site-health-progress-count").toggleClass("site-health-progress-count secupress-site-health-progress-count").text( SecuPressi18nSHC.grade );
if ( "undefined" !== typeof( SecuPressi18nSHC.caution ) ) {
$(".site-health-view-more, .site-health-issues-wrapper").remove();
$(".site-status-has-issues").append( SecuPressi18nSHC.caution );
}
}
} );