403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/queenofbradgate.co.uk/wp-content/plugins/ssl-insecure-content-fixer/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/queenofbradgate.co.uk/wp-content/plugins/ssl-insecure-content-fixer/js/admin-tests.js
"use strict";

/*!
SSL Insecure Content Fixer admin tests script
https://ssl.webaware.net.au/
*/
(function ($) {
  $.ajax({
    url: sslfix.ajax_url_ssl,
    data: {
      action: "sslfix-environment",
      sslfix_nonce: sslfix.test_nonce
    },
    dataType: "json",
    method: "GET",
    error: showError,
    success: showResults
  });
  /**
  * show test results
  * @param {Object} response
  */

  function showResults(response) {
    if (response.ssl) {
      switch (response.detect) {
        case "HTTPS":
        case "port":
          showHidden("#sslfix-normal");
          break;

        case "HTTP_X_FORWARDED_PROTO":
          showHidden("#sslfix-HTTP_X_FORWARDED_PROTO");
          break;

        case "HTTP_X_FORWARDED_SSL":
          showHidden("#sslfix-HTTP_X_FORWARDED_SSL");
          break;

        case "HTTP_CLOUDFRONT_FORWARDED_PROTO":
          showHidden("#sslfix-HTTP_CLOUDFRONT_FORWARDED_PROTO");
          break;

        case "HTTP_X_ARR_SSL":
          showHidden("#sslfix-HTTP_X_ARR_SSL");
          break;

        case "HTTP_X_FORWARDED_SCHEME":
          showHidden("#sslfix-HTTP_X_FORWARDED_SCHEME");
          break;

        case "HTTP_CF_VISITOR":
          showHidden("#sslfix-HTTP_CF_VISITOR");
          break;
      }
    } else {
      showHidden("#sslfix-detect_fail");
    }

    hideVisible("#sslfix-loading");
    showHidden("#sslfix-test-result-head");
    showHidden("#sslfix-environment");
    $("#sslfix-environment pre").text(response.env);
  }
  /**
  * show test error
  * @param {Object} xhr
  * @param {String} status
  */


  function showError(xhr, status) {
    hideVisible("#sslfix-loading");
    showHidden("#sslfix-test-result-head");
    showHidden("#sslfix-environment");
    $("#sslfix-environment pre").text(status + "\n" + xhr.responseText);
  }

  $.ajax({
    url: sslfix.ajax_url_wp,
    data: {
      action: "sslfix-test-https"
    },
    dataType: "json",
    method: "GET",
    xhrFields: {
      withCredentials: true
    },
    success: showHttpsDetected
  });
  /**
  * show whether HTTPS was detected correctly within WordPress
  * @param {Object} response
  */

  function showHttpsDetected(response) {
    if (response.https) {
      $("#sslfix-https-detection").addClass("dashicons dashicons-" + response.https);
    }
  }
  /**
  * show hidden element, with accessibility cues
  * @param {String} selector
  */


  function showHidden(selector) {
    $(selector).attr("aria-hidden", "false").show();
  }
  /**
  * hide visible element, with accessibility cues
  * @param {String} selector
  */


  function hideVisible(selector) {
    $(selector).attr("aria-hidden", "true").hide();
  }
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit