HEX
Server: Apache
System: Linux digivps 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64
User: root (0)
PHP: 8.3.15
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/biographybirthday.com/wp-content/plugins/webp-express/lib/wcfm/wcfm-options.js
window["wcfmoptions"] = {};

window["wcfmoptions"]['poster'] = function(action, options, successCallback, errorCallback) {

  //console.log('wcfmoptions.poster called. Action: ' + action);
  console.log('wcfmoptions.poster called. Options: ' + JSON.stringify(options));

  // Call the API
  var data = {
      'action': 'webpexpress-wcfm-api',
      'nonce' : window.webpExpressWCFMNonce,
      'command': action,
      //'args': options
      'args': JSON.stringify(options)
  };

  jQuery.ajax({
    type: "POST",
    url: ajaxurl,
    data: data,
    //contentType: "application/json; charset=utf-8",
    dataType: 'text',   // text or json?
    timeout: 30000,
    error: function (jqXHR, status, errorThrown) {
      console.log(errorThrown);
    },
    /*success: function(responseObj) {
      console.log('ajax response', responseObj);
      successCallback(responseObj);
    }*/

    success: function(responseText) {
      //console.log('ajax response', responseText);
      //response = "[{name:'hello'}]";
      //console.log('response:');
      //console.log(responseText);
      try {
          responseObj = JSON.parse(responseText);
      } catch (e) {
        console.log('The "' + action + '" response could not be parsed as JSON. ' + e.name + ':' + e.message);
        console.log('response:' + responseText);
        errorCallback(responseText);
        return
      }
      successCallback(responseObj);
    }
  });
}

function adjustWCFMHeight() {
  var usedHeight =
    document.getElementById('wpadminbar').offsetHeight +
    document.getElementById('wpfooter').offsetHeight +
    document.getElementById('screen-meta').offsetHeight +
    document.getElementById('wcfmintro').offsetHeight;

  var wcfm = document.getElementById('webpconvert-filemanager');

  var h = Math.max(document.body.clientHeight - usedHeight - 30, 300);
  //console.log('setting height', h, document.body.clientHeight, usedHeight);
  wcfm.style.height = h + 'px';
}

window.addEventListener('load', function(event) {
  adjustWCFMHeight();
});


window.addEventListener('resize', function(event) {
  adjustWCFMHeight();
});