Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/pub/static/frontend/Magento/luma/en_US/mage/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/pub/static/frontend/Magento/luma/en_US/mage/captcha.js
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * @deprecated since version 2.2.0
 */
/* global formId */
/* eslint-disable max-depth, no-lonely-if, strict */
var Captcha = Class.create();

Captcha.prototype = {
    /**
     * @param {*} url
     * @param {*} formId
     */
    initialize: function (url, formId) {
        this.url = url;
        this.formId = formId;
    },

    /**
     * @param {*} elem
     */
    refresh: function (elem) {
        window.formId = this.formId;

        if (elem) {
            Element.addClassName(elem, 'refreshing');
        }
        new Ajax.Request(this.url, {
            /**
             * @param {Object} response
             */
            onSuccess: function (response) {
                var json;

                if (response.responseText.isJSON()) {
                    json = response.responseText.evalJSON();

                    if (!json.error && json.imgSrc) {
                        $(formId).writeAttribute('src', json.imgSrc);

                        if (elem) {
                            Element.removeClassName(elem, 'refreshing');
                        }
                    } else {
                        if (elem) {
                            Element.removeClassName(elem, 'refreshing');
                        }
                    }
                }
            },
            method: 'post',
            parameters: {
                'formId': this.formId
            }
        });
    }
};

Spamworldpro Mini