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/inc/modules/discloses/ |
Upload File : |
<?php
defined( 'SECUPRESS_VERSION' ) or die( 'Cheatin’ uh?' );
/**
* Get login error messages that we don't want to be displayed.
*
* @since 1.0
*
* @param (bool) $for_regex If false, raw messages will be returned. If true, the returned messages will be ready to be used as regex patterns (in that case, `@` must be used as delimiter).
*
* @return (array) An array of messages.
*/
function secupress_login_errors_disclose_get_messages( $for_regex = true ) {
$messages = array(
'invalid_email' => __( '<strong>ERROR</strong>: There is no user registered with that email address.' ), // WP i18n.
'invalidcombo' => __( '<strong>ERROR</strong>: Invalid username or e-mail.' ), // WP i18n.
'invalidcombo_46' => __( '<strong>ERROR</strong>: Invalid username or email.' ), // WP i18n.
'invalid_username' => sprintf( __( '<strong>ERROR</strong>: Invalid username. <a href="%s">Lost your password?</a>' ), wp_lostpassword_url() ), // WP i18n.
'invalid_username_46' => __( '<strong>ERROR</strong>: Invalid username.' ) . ' <a href="' . wp_lostpassword_url() . '">' . __( 'Lost your password?' ) . '</a>', // WP i18n.
'incorrect_password' => sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s">Lost your password?</a>' ), '%ALL%', wp_lostpassword_url() ), // WP i18n.
'incorrect_password_46' => sprintf( __( '<strong>ERROR</strong>: The password you entered for the username %s is incorrect.' ), '<strong>%ALL%</strong>' ) . ' <a href="' . wp_lostpassword_url() . '">' . __( 'Lost your password?' ) . '</a>', // WP i18n.
);
if ( $for_regex ) {
foreach ( $messages as $id => $message ) {
$messages[ $id ] = addcslashes( $messages[ $id ], '[](){}.*+?|^$@' );
$messages[ $id ] = str_replace( '%ALL%', '.*', $messages[ $id ] );
}
}
return $messages;
}