芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/fluentform/app/Modules/Form/AkismetHandler.php
request->getIp(); $info = [ 'comment_type' => 'contact-form', 'comment_author' => '', 'comment_author_email' => '', 'comment_content' => '', 'contact_form_subject' => $form->title, 'comment_author_IP' => $ip, 'permalink' => urlencode($data['_wp_http_referer']), 'user_ip' => preg_replace('/[^0-9., ]/', '', $ip), 'user_agent' => $app->request->header('USER_AGENT'), 'blog' => get_option('home'), ]; $maps = [ 'input_name' => 'comment_author', 'input_email' => 'comment_author_email', 'textarea' => 'comment_content', ]; $inputs = FormFieldsParser::getInputs($form, ['attributes']); foreach ($inputs as $input) { $element = ArrayHelper::get($input, 'element'); $key = ArrayHelper::get($input, 'attributes.name'); if (isset($maps[$element]) && !$info[$maps[$element]]) { $value = ArrayHelper::get($data, $key); if ($value) { if (is_array($value)) { $value = implode(' ', $value); } $info[$maps[$element]] = $value; } } } $info = apply_filters_deprecated( 'fluentform_akismet_fields', [ $info, $data, $form ], FLUENTFORM_FRAMEWORK_UPGRADE, 'fluentform/akismet_fields', 'Use fluentform/akismet_fields instead of fluentform_akismet_fields.' ); $info = apply_filters('fluentform/akismet_fields', $info, $data, $form); return http_build_query($info); } }