芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/fluentform/app/Modules/Form/HoneyPot.php
app = $application; } public function renderHoneyPot($form) { if (!$this->isEnabled($form->id)) { return; } ?>
isEnabled($formId)) { return; } // Now verify if (ArrayHelper::get($requestData, $this->getFieldName($formId))) { // It's a bot! Block him wp_send_json( [ 'errors' => 'Sorry! You can not submit this form at this moment!', ], 422 ); } return; } public function isEnabled($formId = false) { $option = get_option('_fluentform_global_form_settings'); $status = 'yes' == ArrayHelper::get($option, 'misc.honeypotStatus'); $status = apply_filters_deprecated( 'fluentform_honeypot_status', [ $status, $formId ], FLUENTFORM_FRAMEWORK_UPGRADE, 'fluentform/honeypot_status', 'Use fluentform/honeypot_status instead of fluentform_honeypot_status.' ); return apply_filters('fluentform/honeypot_status', $status, $formId); } private function getFieldName($formId) { $honeyPotName = 'item__' . $formId . '__fluent_checkme_'; $honeyPotName = apply_filters_deprecated( 'fluentform_honeypot_name', [ $honeyPotName, $formId ], FLUENTFORM_FRAMEWORK_UPGRADE, 'fluentform/honeypot_name', 'Use fluentform/honeypot_name instead of fluentform_honeypot_name.' ); return apply_filters('fluentform/honeypot_name', $honeyPotName, $formId); } }