version 4.13.0
This commit is contained in:
155
core/components/api/spam/Provider.php
Normal file
155
core/components/api/spam/Provider.php
Normal file
@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* High-level wrapper for interacting with the external API's offered by 3rd-party anti-spam providers.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @package ET\Core\API\Spam
|
||||
*/
|
||||
abstract class ET_Core_API_Spam_Provider extends ET_Core_API_Service {
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $service_type = 'spam';
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function _get_data() {
|
||||
$options = parent::_get_data();
|
||||
|
||||
// return empty array in case of empty name
|
||||
if ( '' === $this->account_name || ! is_string( $this->account_name ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$provider = sanitize_text_field( $this->slug );
|
||||
$account = sanitize_text_field( $this->account_name );
|
||||
|
||||
if ( ! isset( $options['accounts'][ $provider ][ $account ] ) ) {
|
||||
$options['accounts'][ $provider ][ $account ] = array();
|
||||
update_option( 'et_core_api_spam_options', $options );
|
||||
}
|
||||
|
||||
return $options['accounts'][ $provider ][ $account ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not an account exists in the database.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $provider
|
||||
* @param string $account_name
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function account_exists( $provider, $account_name ) {
|
||||
$all_accounts = self::get_accounts();
|
||||
|
||||
return isset( $all_accounts[ $provider ][ $account_name ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function delete() {
|
||||
self::remove_account( $this->slug, $this->account_name );
|
||||
|
||||
$this->account_name = '';
|
||||
|
||||
$this->_get_data();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the email accounts data from the database.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get_accounts() {
|
||||
$options = (array) get_option( 'et_core_api_spam_options' );
|
||||
|
||||
return isset( $options['accounts'] ) ? $options['accounts'] : array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function get_data_keymap( $keymap = array() ) {
|
||||
return $keymap;
|
||||
}
|
||||
|
||||
abstract public function is_enabled();
|
||||
|
||||
/**
|
||||
* Remove an account
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $provider
|
||||
* @param string $account_name
|
||||
*/
|
||||
public static function remove_account( $provider, $account_name ) {
|
||||
$options = (array) get_option( 'et_core_api_spam_options' );
|
||||
|
||||
unset( $options['accounts'][ $provider ][ $account_name ] );
|
||||
|
||||
update_option( 'et_core_api_spam_options', $options );
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function save_data() {
|
||||
self::update_account( $this->slug, $this->account_name, $this->data );
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function set_account_name( $name ) {
|
||||
$this->account_name = $name;
|
||||
$this->data = $this->_get_data();
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the data for a provider account.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $provider The provider's slug.
|
||||
* @param string $account The account name.
|
||||
* @param array $data The new data for the account.
|
||||
*/
|
||||
public static function update_account( $provider, $account, $data ) {
|
||||
if ( empty( $account ) || empty( $provider ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$options = (array) get_option( 'et_core_api_spam_options' );
|
||||
$provider = sanitize_text_field( $provider );
|
||||
$account = sanitize_text_field( $account );
|
||||
|
||||
self::$_->array_update( $options, "accounts.${provider}.{$account}", $data );
|
||||
|
||||
update_option( 'et_core_api_spam_options', $options );
|
||||
}
|
||||
|
||||
abstract public function verify_form_submission();
|
||||
}
|
258
core/components/api/spam/Providers.php
Normal file
258
core/components/api/spam/Providers.php
Normal file
@ -0,0 +1,258 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Manages anti-spam provider class instances.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*/
|
||||
class ET_Core_API_Spam_Providers {
|
||||
|
||||
private static $_instance;
|
||||
|
||||
/**
|
||||
* @var ET_Core_Data_Utils
|
||||
*/
|
||||
protected static $_;
|
||||
|
||||
protected static $_fields;
|
||||
protected static $_metadata;
|
||||
protected static $_names;
|
||||
protected static $_names_by_slug;
|
||||
protected static $_slugs;
|
||||
|
||||
public static $providers = array();
|
||||
|
||||
public function __construct() {
|
||||
if ( null === self::$_metadata ) {
|
||||
$this->_initialize();
|
||||
}
|
||||
}
|
||||
|
||||
protected function _initialize() {
|
||||
self::$_ = ET_Core_Data_Utils::instance();
|
||||
self::$_metadata = et_core_get_components_metadata();
|
||||
$third_party_providers = et_core_get_third_party_components( 'api/spam' );
|
||||
|
||||
$load_fields = is_admin() || et_core_is_saving_builder_modules_cache() || et_core_is_fb_enabled() || isset( $_GET['et_fb'] ); // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification
|
||||
$all_names = array(
|
||||
'official' => self::$_metadata['groups']['api/spam']['members'],
|
||||
'third-party' => array_keys( $third_party_providers ),
|
||||
);
|
||||
|
||||
$_names_by_slug = array();
|
||||
|
||||
foreach ( $all_names as $provider_type => $provider_names ) {
|
||||
$_names_by_slug[ $provider_type ] = array();
|
||||
|
||||
foreach ( $provider_names as $provider_name ) {
|
||||
if ( 'Fields' === $provider_name || self::$_->includes( $provider_name, 'Provider' ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( 'official' === $provider_type ) {
|
||||
$class_name = self::$_metadata[ $provider_name ];
|
||||
$provider_slug = self::$_metadata[ $class_name ]['slug'];
|
||||
$provider = $load_fields ? new $class_name( 'ET_Core', '' ) : null;
|
||||
} else {
|
||||
$provider = $third_party_providers[ $provider_name ];
|
||||
$provider_slug = is_object( $provider ) ? $provider->slug : '';
|
||||
}
|
||||
|
||||
if ( ! $provider_slug ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$_names_by_slug[ $provider_type ][ $provider_slug ] = $provider_name;
|
||||
|
||||
if ( $load_fields && is_object( $provider ) ) {
|
||||
self::$_fields[ $provider_slug ] = $provider->get_account_fields();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the enabled anti-spam providers.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param array[] $_names_by_slug {
|
||||
*
|
||||
* @type string[] $provider_type {
|
||||
*
|
||||
* @type string $slug Provider name
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
self::$_names_by_slug = apply_filters( 'et_core_api_spam_enabled_providers', $_names_by_slug );
|
||||
|
||||
foreach ( array_keys( $all_names ) as $provider_type ) {
|
||||
self::$_names[ $provider_type ] = array_values( self::$_names_by_slug[ $provider_type ] );
|
||||
self::$_slugs[ $provider_type ] = array_keys( self::$_names_by_slug[ $provider_type ] );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the spam provider accounts array from core.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @return array|mixed
|
||||
*/
|
||||
public function accounts() {
|
||||
return ET_Core_API_Spam_Provider::get_accounts();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link \ET_Core_API_Spam_Provider::account_exists()}
|
||||
*/
|
||||
public function account_exists( $provider, $account_name ) {
|
||||
return ET_Core_API_Spam_Provider::account_exists( $provider, $account_name );
|
||||
}
|
||||
|
||||
public function account_fields( $provider = 'all' ) {
|
||||
if ( 'all' !== $provider ) {
|
||||
if ( isset( self::$_fields[ $provider ] ) ) {
|
||||
return self::$_fields[ $provider ];
|
||||
}
|
||||
|
||||
if ( ! is_admin() && et_core_is_saving_builder_modules_cache() ) {
|
||||
// Need to initialize again because et_core_is_saving_builder_modules_cache
|
||||
// can't be called too early.
|
||||
$this->_initialize();
|
||||
return et_()->array_get( self::$_fields, $provider, array() );
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
return self::$_fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get class instance for a provider. Instance will be created if necessary.
|
||||
*
|
||||
* @param string $name_or_slug The provider's name or slug.
|
||||
* @param string $account_name The identifier for the desired account with the provider.
|
||||
* @param string $owner The owner for the instance.
|
||||
*
|
||||
* @return ET_Core_API_Spam_Provider|bool The provider instance or `false` if not found.
|
||||
*/
|
||||
public function get( $name_or_slug, $account_name, $owner = 'ET_Core' ) {
|
||||
$name_or_slug = str_replace( ' ', '', $name_or_slug );
|
||||
$is_official = isset( self::$_metadata[ $name_or_slug ] );
|
||||
|
||||
if ( ! $is_official && ! $this->is_third_party( $name_or_slug ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! in_array( $name_or_slug, array_merge( self::names(), self::slugs() ) ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Make sure we have the component name
|
||||
if ( $is_official ) {
|
||||
$class_name = self::$_metadata[ $name_or_slug ];
|
||||
$name = self::$_metadata[ $class_name ]['name'];
|
||||
} else {
|
||||
$components = et_core_get_third_party_components( 'api/spam' );
|
||||
|
||||
if ( ! $name = array_search( $name_or_slug, self::$_names_by_slug['third-party'] ) ) {
|
||||
$name = $name_or_slug;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! isset( self::$providers[ $name ][ $owner ] ) ) {
|
||||
self::$providers[ $name ][ $owner ] = $is_official
|
||||
? new $class_name( $owner, $account_name )
|
||||
: $components[ $name ];
|
||||
}
|
||||
|
||||
return self::$providers[ $name ][ $owner ];
|
||||
}
|
||||
|
||||
public static function instance() {
|
||||
if ( null === self::$_instance ) {
|
||||
self::$_instance = new self;
|
||||
}
|
||||
|
||||
return self::$_instance;
|
||||
}
|
||||
|
||||
public function is_third_party( $name_or_slug ) {
|
||||
$is_third_party = in_array( $name_or_slug, self::$_names['third-party'] );
|
||||
|
||||
return $is_third_party ? $is_third_party : in_array( $name_or_slug, self::$_slugs['third-party'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the names of available providers. List can optionally be filtered.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $type The component type to include ('official'|'third-party'|'all'). Default is 'all'.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function names( $type = 'all' ) {
|
||||
if ( 'all' === $type ) {
|
||||
$names = array_merge( self::$_names['third-party'], self::$_names['official'] );
|
||||
} else {
|
||||
$names = self::$_names[ $type ];
|
||||
}
|
||||
|
||||
return $names;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array mapping the slugs of available providers to their names.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $type The component type to include ('official'|'third-party'|'all'). Default is 'all'.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function names_by_slug( $type = 'all' ) {
|
||||
if ( 'all' === $type ) {
|
||||
$names_by_slug = array_merge( self::$_names_by_slug['third-party'], self::$_names_by_slug['official'] );
|
||||
} else {
|
||||
$names_by_slug = self::$_names_by_slug[ $type ];
|
||||
}
|
||||
|
||||
return $names_by_slug;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link \ET_Core_API_Spam_Provider::remove_account()}
|
||||
*/
|
||||
public function remove_account( $provider, $account_name ) {
|
||||
ET_Core_API_Spam_Provider::remove_account( $provider, $account_name );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the slugs of available providers. List can optionally be filtered.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $type The component type to include ('official'|'third-party'|'all'). Default is 'all'.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function slugs( $type = 'all' ) {
|
||||
if ( 'all' === $type ) {
|
||||
$names = array_merge( self::$_slugs['third-party'], self::$_slugs['official'] );
|
||||
} else {
|
||||
$names = self::$_slugs[ $type ];
|
||||
}
|
||||
|
||||
return $names;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @see {@link \ET_Core_API_Spam_Provider::update_account()}
|
||||
*/
|
||||
public function update_account( $provider, $account, $data ) {
|
||||
ET_Core_API_Spam_Provider::update_account( $provider, $account, $data );
|
||||
}
|
||||
}
|
129
core/components/api/spam/ReCaptcha.php
Normal file
129
core/components/api/spam/ReCaptcha.php
Normal file
@ -0,0 +1,129 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Wrapper for ProviderName's API.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @package ET\Core\API\Misc\ReCaptcha
|
||||
*/
|
||||
class ET_Core_API_Spam_ReCaptcha extends ET_Core_API_Spam_Provider {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $BASE_URL = 'https://www.google.com/recaptcha/api/siteverify';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $max_accounts = 1;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $name = 'ReCaptcha';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public $slug = 'recaptcha';
|
||||
|
||||
public function __construct( $owner = 'ET_Core', $account_name = '', $api_key = '' ) {
|
||||
parent::__construct( $owner, $account_name, $api_key );
|
||||
|
||||
$this->_add_actions_and_filters();
|
||||
}
|
||||
|
||||
protected function _add_actions_and_filters() {
|
||||
if ( ! is_admin() && ! et_core_is_fb_enabled() ) {
|
||||
add_action( 'wp_enqueue_scripts', array( $this, 'action_wp_enqueue_scripts' ) );
|
||||
}
|
||||
}
|
||||
|
||||
public function action_wp_enqueue_scripts() {
|
||||
if ( ! $this->is_enabled() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* reCAPTCHA v3 actions may only contain alphanumeric characters and slashes/underscore.
|
||||
* https://developers.google.com/recaptcha/docs/v3#actions
|
||||
*
|
||||
* Replace all non-alphanumeric characters with underscore.
|
||||
* Ex: '?page_id=254980' => '_page_id_254980'
|
||||
*/
|
||||
$action = preg_replace( '/[^A-Za-z0-9]/', '_', basename( get_the_permalink() ) );
|
||||
$deps = array( 'jquery', 'es6-promise', 'et-recaptcha-v3' );
|
||||
|
||||
wp_register_script( 'et-recaptcha-v3', "https://www.google.com/recaptcha/api.js?render={$this->data['site_key']}", array(), ET_CORE_VERSION, true );
|
||||
wp_register_script( 'es6-promise', ET_CORE_URL . 'admin/js/es6-promise.auto.min.js', array(), ET_CORE_VERSION, true );
|
||||
|
||||
wp_enqueue_script( 'et-core-api-spam-recaptcha', ET_CORE_URL . 'admin/js/recaptcha.js', $deps, ET_CORE_VERSION, true );
|
||||
wp_localize_script( 'et-core-api-spam-recaptcha', 'et_core_api_spam_recaptcha', array(
|
||||
'site_key' => empty( $this->data['site_key'] ) ? '' : $this->data['site_key'],
|
||||
'page_action' => array( 'action' => $action ),
|
||||
) );
|
||||
}
|
||||
|
||||
public function is_enabled() {
|
||||
return isset( $this->data['site_key'], $this->data['secret_key'] )
|
||||
&& et_()->all( array( $this->data['site_key'], $this->data['secret_key'] ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify a form submission.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @global $_POST['token']
|
||||
*
|
||||
* @return mixed[]|string $result {
|
||||
* Interaction Result
|
||||
*
|
||||
* @type bool $success Whether or not the request was valid for this site.
|
||||
* @type int $score Score for the request (0 < score < 1).
|
||||
* @type string $action Action name for this request (important to verify).
|
||||
* @type string $challenge_ts Timestamp of the challenge load (ISO format yyyy-MM-ddTHH:mm:ssZZ).
|
||||
* @type string $hostname Hostname of the site where the challenge was solved.
|
||||
* @type string[] $error-codes Optional
|
||||
* }
|
||||
*/
|
||||
public function verify_form_submission() {
|
||||
$args = array(
|
||||
'secret' => $this->data['secret_key'],
|
||||
'response' => et_()->array_get_sanitized( $_POST, 'token' ),
|
||||
'remoteip' => et_core_get_ip_address(),
|
||||
);
|
||||
|
||||
$this->prepare_request( $this->BASE_URL, 'POST', false, $args );
|
||||
$this->make_remote_request();
|
||||
|
||||
return $this->response->ERROR ? $this->response->ERROR_MESSAGE : $this->response->DATA;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function get_account_fields() {
|
||||
return array(
|
||||
'site_key' => array(
|
||||
'label' => esc_html__( 'Site Key (v3)', 'et_core' ),
|
||||
),
|
||||
'secret_key' => array(
|
||||
'label' => esc_html__( 'Secret Key (v3)', 'et_core' ),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function get_data_keymap( $keymap = array() ) {
|
||||
return array(
|
||||
'ip_address' => 'remoteip',
|
||||
'response' => 'response',
|
||||
'secret_key' => 'secret',
|
||||
);
|
||||
}
|
||||
}
|
101
core/components/api/spam/init.php
Normal file
101
core/components/api/spam/init.php
Normal file
@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
if ( ! function_exists( 'et_core_api_spam_init' ) ):
|
||||
function et_core_api_spam_init() {
|
||||
if ( is_admin() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! et_core_api_spam_find_provider_account() ) {
|
||||
// Always instantiate ReCaptcha class
|
||||
ET_Core_API_Spam_Providers::instance()->get( 'recaptcha', '' );
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
|
||||
if ( ! function_exists('et_builder_spam_add_account' ) ):
|
||||
function et_core_api_spam_add_account( $name_or_slug, $account, $api_key ) {
|
||||
et_core_security_check();
|
||||
|
||||
if ( empty( $name_or_slug ) || empty( $account ) ) {
|
||||
return __( 'ERROR: Invalid arguments.', 'et_core' );
|
||||
}
|
||||
|
||||
$providers = ET_Core_API_Spam_Providers::instance();
|
||||
$provider = $providers->get( $name_or_slug, $account, 'builder' );
|
||||
|
||||
if ( ! $provider ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( is_array( $api_key ) ) {
|
||||
foreach ( $api_key as $field_name => $value ) {
|
||||
$provider->data[ $field_name ] = sanitize_text_field( $value );
|
||||
}
|
||||
} else if ( '' !== $api_key ) {
|
||||
$provider->data['api_key'] = sanitize_text_field( $api_key );
|
||||
}
|
||||
|
||||
$provider->save_data();
|
||||
|
||||
return 'success';
|
||||
}
|
||||
endif;
|
||||
|
||||
|
||||
if ( ! function_exists( 'et_core_api_spam_find_provider_account' ) ):
|
||||
function et_core_api_spam_find_provider_account() {
|
||||
$spam_providers = ET_Core_API_Spam_Providers::instance();
|
||||
|
||||
if ( $accounts = $spam_providers->accounts() ) {
|
||||
$enabled_account = '';
|
||||
$provider = '';
|
||||
|
||||
foreach ( $accounts as $provider_slug => $provider_accounts ) {
|
||||
if ( empty( $provider_accounts ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ( $provider_accounts as $account_name => $account ) {
|
||||
if ( isset( $account['site_key'], $account['secret_key'] ) ) {
|
||||
$provider = $provider_slug;
|
||||
$enabled_account = $account_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $provider && $enabled_account ) {
|
||||
return $spam_providers->get( $provider, $enabled_account );
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
endif;
|
||||
|
||||
|
||||
if ( ! function_exists( 'et_core_api_spam_remove_account' ) ):
|
||||
/**
|
||||
* Delete an existing provider account.
|
||||
*
|
||||
* @since 4.0.7
|
||||
*
|
||||
* @param string $name_or_slug The provider name or slug.
|
||||
* @param string $account The account name.
|
||||
*/
|
||||
function et_core_api_spam_remove_account( $name_or_slug, $account ) {
|
||||
et_core_security_check();
|
||||
|
||||
if ( empty( $name_or_slug ) || empty( $account ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$providers = ET_Core_API_Spam_Providers::instance();
|
||||
|
||||
if ( $provider = $providers->get( $name_or_slug, $account ) ) {
|
||||
$provider->delete();
|
||||
}
|
||||
}
|
||||
endif;
|
Reference in New Issue
Block a user