X7ROOT File Manager
Current Path:
/home/katmhsmi/public_html/wp-content/plugins/xagio/models
home
/
katmhsmi
/
public_html
/
wp-content
/
plugins
/
xagio
/
models
/
📁
..
📄
.htaccess
(420 B)
📄
wp_affiliate.php
(14.41 KB)
📄
wp_api.php
(131.08 KB)
📄
wp_batches.php
(3.67 KB)
📄
wp_bulk_image_converter.php
(2.25 KB)
📄
wp_captcha.php
(2.33 KB)
📄
wp_captcha_comment.php
(1.8 KB)
📄
wp_captcha_login.php
(976 B)
📄
wp_captcha_register.php
(819 B)
📄
wp_clone.php
(21.76 KB)
📄
wp_comments.php
(1.26 KB)
📄
wp_default.php
(6.98 KB)
📄
wp_exif.php
(11.1 KB)
📄
wp_extend_widgets.php
(4.21 KB)
📄
wp_freshstart.php
(16.03 KB)
📄
wp_groups.php
(30.02 KB)
📄
wp_keywords.php
(52.68 KB)
📄
wp_log404.php
(19.68 KB)
📄
wp_migration.php
(16.26 KB)
📄
wp_redirects.php
(5.16 KB)
📄
wp_rescue.php
(17.66 KB)
📄
wp_review.php
(3.2 KB)
📄
wp_reviewr.php
(3.76 KB)
📄
wp_reviews.php
(16.82 KB)
📄
wp_schema.php
(16.12 KB)
📄
wp_seo.php
(79.76 KB)
📄
wp_settings.php
(32.76 KB)
📄
wp_sync.php
(1.74 KB)
📄
wp_tinymce_buttons.php
(6.23 KB)
📄
wp_troubleshooting.php
(2.91 KB)
📄
wp_update.php
(7.9 KB)
Editing: wp_captcha.php
<?php if ( ! class_exists( 'MXAG_Captcha' ) ) { class MXAG_Captcha { /** @var string captcha site key */ static protected $site_key; /** @var string captcha secrete key */ static protected $secret_key; static protected $recaptcha_enabled; static protected $error_message; static protected $api_settings; static protected $textdomain; public static function initialize() { self::$api_settings = get_option( 'ps_api_settings' ); self::$site_key = isset( self::$api_settings['recaptcha_site_key'] ) ? self::$api_settings['recaptcha_site_key'] : ''; self::$secret_key = isset( self::$api_settings['recaptcha_secret_key'] ) ? self::$api_settings['recaptcha_secret_key'] : ''; self::$error_message = wp_kses( __( '<strong>ERROR</strong>: Invalid reCAPTCHA entered.', 'prs-captcha' ), array( 'strong' => array() ) ); add_action( 'login_enqueue_scripts', array( __CLASS__, 'expandLoginWidth' ) ); } /** Increase the width of login/registration form */ public static function expandLoginWidth() { echo '<style type="text/css"> #login { width: 350px !important; } </style>'; } /** Output the reCAPTCHA form field. */ public static function display_captcha() { if ( isset( $_GET['captcha'] ) && $_GET['captcha'] == 'failed' ) { echo self::$error_message; } ?> <script src="https://www.google.com/recaptcha/api.js" async defer></script> <div style="margin-bottom: 15px; margin-top:5px" id="recaptcha" class="g-recaptcha" data-sitekey="<?php echo self::$site_key ?>" data-theme="light"></div> <?php } /** * Send a GET request to verify captcha challenge * * @return bool */ public static function captcha_verification() { $token = $_POST['g-recaptcha-response']; $response = wp_remote_post( 'https://www.google.com/recaptcha/api/siteverify', array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array( 'secret' => self::$secret_key, 'response' => $token, 'remoteip' => $_SERVER['REMOTE_ADDR'] ), 'cookies' => array() ) ); if ( is_wp_error( $response ) ) { return false; } else { $body = json_decode($response['body'], TRUE); if ($body['success'] == false) { return false; } else { return true; } } } } }
Upload File
Create Folder