HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/public_html/wp-content/plugins/file-manager/inc/migrate.php
<?php
// Security check
defined('ABSPATH') || die();

// This class migrates from the older version to the newer version
class FMMigrate{

  private $version;

  public function __construct($current_version){

    // Checkks the current version
    // update_option('fm_current_version', 524);
    $this->version = get_option('fm_current_version', 524);
    if((int)($this->version) < (int)($current_version)){
      for($I = (int)($this->version) + 1; $I <= $current_version; $I++ ){
        $function = 'migrate_to_' . $I;
        if( method_exists($this, $function) ) $this->$function();
        update_option('fm_current_version', $I);
      }
    }

  }

    protected function migrate_to_502(){
        $upload_dir = wp_upload_dir();
        $log_file = $upload_dir['basedir'] . DS . 'file-manager' . DS . 'log.txt';
        if(file_exists($log_file)) unlink($log_file);
    }

    protected function migrate_to_510(){

    }

}