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/alerts/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' );
/**
* Get available alert types.
*
* @since 1.0
*
* @return (array) Return an array with identifiers as keys and field labels as values.
*/
function secupress_alert_types_labels() {
return array(
'email' => __( 'Email', 'secupress' ),
// 'twitter' => __( 'Twitter', 'secupress' ), ////
// 'slack' => __( 'Slack', 'secupress' ), ////
// 'sms' => __( 'SMS', 'secupress' ), ////
// 'push' => __( 'Push notification', 'secupress' ), ////
);
}
/**
* Get email addresses set by the user in the settings.
*
* @since 1.0
*
* @return (array) An array of valid email addresses.
*/
function secupress_alerts_get_emails() {
$emails = secupress_get_module_option( 'notification-types_emails', '', 'alerts' );
if ( ! $emails ) {
return array();
}
$emails = explode( "\n", $emails );
$emails = array_map( 'trim', $emails );
$emails = array_map( 'is_email', $emails );
$emails = array_filter( $emails );
return $emails;
}