403Webshell
Server IP : 10.19.1.101  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User : schererimoveisrs ( 170628)
PHP Version : 7.4.33
Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/schererimoveisrs/www/pre backup/wp-content/themes/sauron/inc/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/schererimoveisrs/www/pre backup/wp-content/themes/sauron/inc/js/lightbox.js
wdwt_lbox = {

  issauronPopUpOpened : false,

  init: function(link_obj, rel, width, height){
    /*add list of images*/
    var imgs = [];
    var titles = [];
    var descrs = [];
    links =jQuery("a[rel='"+rel+"']");
    var cur = 0;
    links.each(function(index){
      
      if(link_obj === links.get(index)){
        cur = index;
      }
      href = links.eq(index).prop('href');
      title = links.eq(index).parent().parent().find('h4, h3').eq(0).html();
      descr = links.eq(index).parent().parent().find('.home_description_hover').eq(0).html();

      imgs.push(href);
      titles.push(title);
      descrs.push(descr);

    });
    //var cur = link_obj.getAttribute('href');
    /*ttt!!! test correct later*/
    
    var imgs_json = JSON.stringify(imgs);
    var titles_json = JSON.stringify(titles);
    var descrs_json = JSON.stringify(descrs);

    /*data to send by AJAX*/
    var data = {
      action : 'wdwt_lightbox',
      imgs : imgs_json,
      titles : titles_json,
      descrs : descrs_json,
      cur:cur,
    };
    /*sanitize here !!!*/
    /*security ttt!!!*/
    this.createpopup(admin_ajax_url, data, 0, width, height,  1, 'testpopup', 5);

  },

  /*saurontheme_createpopup*/
  createpopup: function (url, data_send, current_view, width, height, duration, description, lifetime) {
    if (this.issauronPopUpOpened) { return };
    this.issauronPopUpOpened = true;
    if (this.hasalreadyreceivedpopup(description) || this.isunsupporteduseragent()) {
      return;
    }

    jQuery("html").attr("style", "overflow:hidden !important;");

    popup_el ='<div id="saurontheme_popup_loading_' + current_view + '" class="saurontheme_popup_loading"></div>'
              +'<div id="saurontheme_popup_overlay_' + current_view + '" class="saurontheme_popup_overlay" onclick="wdwt_lbox.destroypopup(1000)"></div>';
    //add styles for popup ttt!!!
    jQuery( "body" ).append( popup_el);

    jQuery("#saurontheme_popup_loading_" + current_view).css({display: "block"});
    jQuery("#saurontheme_popup_overlay_" + current_view).css({display: "block"});

    jQuery.post(url, data_send, function(data) {
      
      var popup = jQuery(
      '<div id="saurontheme_popup_wrap" class="saurontheme_popup_wrap" style="' + 
            ' width:' + width + 'px;' +
            ' height:' + height + 'px;' + 
            ' margin-top:-' + height / 2 + 'px;' + 
            ' margin-left: -' + width / 2 + 'px; ">' +    
      data + 
      '</div>')
        .hide()
        .appendTo("body");
      wdwt_lbox.showpopup(description, lifetime, popup, duration);
    }).success(function(jqXHR, textStatus, errorThrown) {
      jQuery("#saurontheme_popup_loading_" + current_view).css({display: "none !important;"});
    });
  },
  /*saurontheme_showpopup*/
  showpopup : function(description, lifetime, popup, duration) {
    this.issauronPopUpOpened = true;
    popup.show();
    this.receivedpopup(description, lifetime);
  },
  /*saurontheme_hasalreadyreceivedpopup*/
  hasalreadyreceivedpopup: function(description) {
    if (document.cookie.indexOf(description) > -1) {
      delete document.cookie[document.cookie.indexOf(description)];
    }
    return false; 
  },
  /*saurontheme_receivedpopup*/
  
  receivedpopup : function(description, lifetime) { 
    var date = new Date(); 
    date.setDate(date.getDate() + lifetime);
    document.cookie = description + "=true;expires=" + date.toUTCString() + ";path=/"; 
  },
  /*saurontheme_isunsupporteduseragent*/
  isunsupporteduseragent : function() {
    return (!window.XMLHttpRequest); 
  },
  /*saurontheme_destroypopup*/
  
  destroypopup: function(duration) {
    if (document.getElementById("saurontheme_popup_wrap") != null) {
      if (typeof jQuery().fullscreen !== 'undefined' && jQuery.isFunction(jQuery().fullscreen)) {
        if (jQuery.fullscreen.isFullScreen()) {
          jQuery.fullscreen.exit();
        }
      }
      setTimeout(function () {
        jQuery(".saurontheme_popup_wrap").remove();
        jQuery(".saurontheme_popup_loading").remove();
        jQuery(".saurontheme_popup_overlay").remove();
        jQuery(document).off("keydown");
        jQuery("html").attr("style", "");
        jQuery(window).trigger('resize');//for resizing thumbs after lightbox closing
      }, 20);
    }
    this.issauronPopUpOpened = false;
    var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
    var viewportmeta = document.querySelector('meta[name="viewport"]');
    if (isMobile && viewportmeta) {
      viewportmeta.content = 'width=device-width, initial-scale=1';
    }
    var scrrr = jQuery(document).scrollTop();
    /*window.location.hash = "";*/
    jQuery(document).scrollTop(scrrr);
    if(typeof sauron_playInterval !== "undefined"){
      clearInterval(sauron_playInterval);
    }
  },



}

Youez - 2016 - github.com/yon3zu
LinuXploit