Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


<script type="text/javascript">
    gform.initializeOnLoaded(function () {
        jQuery(document).on("gform_post_render", function (event, formId, currentPage) {
            if (formId == 8) {
                gf_global["number_formats"][8] = {
                    "6": { price: false, value: false },
                    "9": { price: false, value: false },
                    "3": { price: false, value: "decimal_dot" },
                    "2": { price: false, value: "decimal_dot" },
                    "32": { price: false, value: "decimal_dot" },
                    "4": { price: false, value: "decimal_dot" },
                    "28": { price: false, value: false },
                    "48": { price: false, value: "decimal_dot" },
                    "36": { price: false, value: "decimal_dot" },
                    "42": { price: false, value: "decimal_dot" },
                    "53": { price: false, value: "decimal_dot" },
                    "29": { price: false, value: false },
                    "47": { price: false, value: "decimal_dot" },
                    "37": { price: false, value: "decimal_dot" },
                    "41": { price: false, value: "decimal_dot" },
                    "52": { price: false, value: "decimal_dot" },
                    "31": { price: false, value: false },
                    "46": { price: false, value: "decimal_dot" },
                    "34": { price: false, value: "decimal_dot" },
                    "40": { price: false, value: "decimal_dot" },
                    "50": { price: false, value: "decimal_dot" },
                    "30": { price: false, value: false },
                    "44": { price: false, value: "decimal_dot" },
                    "33": { price: false, value: "decimal_dot" },
                    "39": { price: false, value: "decimal_dot" },
                    "51": { price: false, value: "decimal_dot" },
                    "10": { price: false, value: false },
                    "45": { price: false, value: "decimal_dot" },
                    "35": { price: false, value: "decimal_dot" },
                    "38": { price: false, value: "decimal_dot" },
                    "49": { price: false, value: "decimal_dot" },
                };
                if (window["jQuery"]) {
                    if (!window["gf_form_conditional_logic"]) window["gf_form_conditional_logic"] = new Array();
                    window["gf_form_conditional_logic"][8] = {
                        logic: {
                            9: {
                                field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "استیل" }] },
                                nextButton: null,
                                section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "استیل" }] },
                            },
                            28: {
                                field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "آهن" }] },
                                nextButton: null,
                                section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "آهن" }] },
                            },
                            29: {
                                field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "آلومینیوم" }] },
                                nextButton: null,
                                section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "آلومینیوم" }] },
                            },
                            31: {
                                field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "برنجی" }] },
                                nextButton: null,
                                section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "برنجی" }] },
                            },
                            30: {
                                field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "مس" }] },
                                nextButton: null,
                                section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "مس" }] },
                            },
                            10: {
                                field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "فسفربرنز" }] },
                                nextButton: null,
                                section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "فسفربرنز" }] },
                            },
                        },
                        dependents: { 9: [9, 3, 2, 32, 4], 28: [28, 48, 36, 42, 53], 29: [29, 47, 37, 41, 52], 31: [31, 46, 34, 40, 50], 30: [30, 44, 33, 39, 51], 10: [10, 45, 35, 38, 49] },
                        animation: 0,
                        defaults: [],
                        fields: {
                            "6": [9, 9, 28, 28, 29, 29, 31, 31, 30, 30, 10, 10],
                            "9": [],
                            "3": [],
                            "2": [],
                            "32": [],
                            "4": [],
                            "28": [],
                            "48": [],
                            "36": [],
                            "42": [],
                            "53": [],
                            "29": [],
                            "47": [],
                            "37": [],
                            "41": [],
                            "52": [],
                            "31": [],
                            "46": [],
                            "34": [],
                            "40": [],
                            "50": [],
                            "30": [],
                            "44": [],
                            "33": [],
                            "39": [],
                            "51": [],
                            "10": [],
                            "45": [],
                            "35": [],
                            "38": [],
                            "49": [],
                        },
                    };
                    if (!window["gf_number_format"]) window["gf_number_format"] = "decimal_comma";
                    jQuery(document).ready(function () {
                        window["gformInitPriceFields"]();
                        gf_apply_rules(8, [9, 28, 29, 31, 30, 10], true);
                        jQuery("#gform_wrapper_8").show();
                        jQuery(document).trigger("gform_post_conditional_logic", [8, null, true]);
                    });
                }
                if (typeof window.gf_global["gfcalc"] == "undefined") {
                    window.gf_global["gfcalc"] = {};
                }
                window.gf_global["gfcalc"][8] = new GFCalc(8, [
                    { field_id: 4, formula: "{طول ورق  (mm):2} * {عرض ورق (mm):32} * {ضخامت ورق (mm):3} * 0.00000786", rounding: "" },
                    { field_id: 53, formula: "{طول ورق  (mm):36} * {عرض ورق (mm):42} * {ضخامت ورق (mm):48} * 0.00000786", rounding: "" },
                    { field_id: 52, formula: "{طول ورق  (mm):37} * {عرض ورق (mm):41} * {ضخامت ورق (mm):47} * 0.00000275", rounding: "" },
                    { field_id: 50, formula: "{طول ورق  (mm):34} * {عرض ورق (mm):40} * {ضخامت ورق (mm):46} * 0.0000085", rounding: "" },
                    { field_id: 51, formula: "{طول ورق  (mm):33} * {عرض ورق (mm):39} * {ضخامت ورق (mm):44} * 0.000009", rounding: "" },
                    { field_id: 49, formula: "{طول ورق  (mm):35} * {عرض ورق (mm):38} * {ضخامت ورق (mm):45} * 0.000009", rounding: "" },
                ]);
            }
        });
        jQuery(document).bind("gform_post_conditional_logic", function (event, formId, fields, isInit) {});
    });
</script>



© 2023 Quttera Ltd. All rights reserved.