PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/footcrew.com/ads/wp-content/themes/classipress/includes/recaptcha/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/footcrew.com/ads/wp-content/themes/classipress/includes/recaptcha/functions.php |
<?php /** * Google reCaptcha. * * Helper Functions. * * @package Components\ReCaptcha */ /** * Displays the Google ReCaptcha. * * return void */ function appthemes_display_recaptcha() { if ( ! current_theme_supports( 'app-recaptcha' ) ) { return; } APP_Recaptcha::display(); } /** * Enqueue script dependencies. * * return void */ function appthemes_enqueue_recaptcha_scripts() { if ( ! current_theme_supports( 'app-recaptcha' ) ) { return; } add_action( 'wp_enqueue_scripts', array( 'APP_Recaptcha', 'enqueue_scripts' ) ); } /** * Verifies the user response token. * * @param string $response The user response token. * @param string $remote_ip The users IP address. * * @return boolean|WP_Error True on success, WP_Error object on failure. */ function appthemes_recaptcha_verify( $response = '', $remote_ip = '' ) { if ( ! $response ) { // Skip early if the response var does not exist. if ( ! isset( $_POST['g-recaptcha-response'] ) ) { return true; } $response = $_POST['g-recaptcha-response']; } if ( ! $remote_ip ) { $remote_ip = $_SERVER['REMOTE_ADDR']; } return APP_Recaptcha::verify( $response, $remote_ip ); }