芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/fluentform/app/Modules/Turnstile/Turnstile.php
'POST', 'body' => [ 'secret' => $secret, 'response' => $token, ], ]); $isValid = false; if (!is_wp_error($response)) { $result = json_decode(wp_remote_retrieve_body($response)); $isValid = $result->success; } return $isValid; } public static function ensureSettings($values) { $settings = ArrayHelper::get($values, '_fluentform_turnstile_details'); $settings['invisible'] = ArrayHelper::get($settings, 'invisible', 'no'); $settings['theme'] = ArrayHelper::get($settings, 'theme', 'auto'); $settings['appearance'] = ArrayHelper::get($settings, 'appearance', 'always'); unset($settings['token']); $values['_fluentform_turnstile_details'] = $settings; return $values; } }