HEX
Server: nginx/1.26.0
System: Linux iZj6ceg0gjdkbpnmyl2cnnZ 5.15.60-1.el7.x86_64 #1 SMP Thu Aug 11 12:39:22 UTC 2022 x86_64
User: www (1000)
PHP: 7.0.33
Disabled: phpinfo,eval,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,pfsockopen,fsocket,fsockopen
Upload Files
File: /data/wwwroot/sites/multitrustcapital.com/www/wp-content/plugins/filester/includes/Plugin.php
<?php
namespace NinjaFileManager;

defined('ABSPATH') || exit;
/**
 * Plugin activate/deactivate logic
 */
class Plugin {
  protected static $instance = null;

  public static function getInstance() {
    if (null == self::$instance) {
      self::$instance = new self;
    }

    return self::$instance;
  }

  private function __construct() {
    add_action('plugins_loaded', array($this, 'loadPluginCross'));
  }

  public function loadPluginCross() {
    \FileBirdCross::get_instance('filebird', 'filebird+ninjateam', NJT_FS_BN_PLUGIN_URL, array('filebird/filebird.php', 'filebird-pro/filebird.php'));
  }

  /** Plugin activated hook */
  public static function activate() {
    $first_time_active = get_option('njt_fs_first_time_active');
    $njt_fs_review = get_option('njt_fs_review');

    if ($first_time_active === false) {
      update_option('njt_fs_first_time_active', 1);
      if ($njt_fs_review !== false) return;
        update_option('njt_fs_review', time() + 3*60*60*24); //After 3 days show
    }

    $current_version = get_option('njt_fs_version');
    if ( version_compare(NJT_FS_BN_VERSION, $current_version, '>') ) {
      $filebirdCross = \FileBirdCross::get_instance('filebird', 'filebird+ninjateam', NJT_FS_BN_PLUGIN_URL, array('filebird/filebird.php', 'filebird-pro/filebird.php'));
      $filebirdCross->need_update_option();
      update_option('njt_fs_version', NJT_FS_BN_VERSION);
      if ($njt_fs_review !== false) return;
        update_option('njt_fs_review', time() + 3*60*60*24); //After 3 days show
    }
  }

  /** Plugin deactivate hook */
  public static function deactivate() {
  }
}