Current Path: > home > transcarter > > www > > wp-content > plugins > elementskit-lite > libs > xs-migration
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
data-migration.php | File | 9397 bytes | July 17 2025 21:06:24. | |
initiator.php | File | 1825 bytes | July 17 2025 21:06:24. | |
migration-contract.php | File | 191 bytes | July 17 2025 21:06:24. | |
migration.php | File | 128451 bytes | July 17 2025 21:06:24. |
<?php namespace ElementsKit_Lite\Libs\Xs_Migration; use ElementsKit_Lite\Traits\Singleton; class Initiator { use Singleton; const OK_MIGRATION_LOGGER = 'ekit_migration_log'; public function init() { add_filter( 'heartbeat_send', array( $this, 'send_heartbeat' ), 10, 2 ); //add_filter('heartbeat_received', [$this, 'receive_heartbeat'], 10, 2); //add_filter( 'heartbeat_settings', [$this, 'heartbeat_settings'] ); } public function send_heartbeat( $response, $screen_id ) { $txtDomain = 'elementskit-lite'; $optionKey = 'data_migration_' . $txtDomain . '_log'; $option = get_option( $optionKey, array() ); if ( empty( $option['_last_version_scanned'] ) ) { /** * Migration never ran in this domain * */ $migration = new Migration(); $ret = $migration->input( $txtDomain, '1.3.1', \ElementsKit_Lite::version() ); $response['migration_log'] = $ret; return $response; } /** * We have last version of migration run * checking if it is same as current version */ if ( $option['_last_version_scanned'] == \ElementsKit_Lite::version() ) { $data[] = 'Migration has already run for this version - ' . \ElementsKit_Lite::version(); $data[] = $screen_id; $response['migration_push'] = $data; return $response; } /** * We have started running migration for this version * Or this is an update version that need to check migration run again * */ $migration = new Migration(); $ret = $migration->input( $txtDomain, '1.3.1', \ElementsKit_Lite::version() ); $response['migration_log'] = $ret; return $response; } public function receive_heartbeat() { } public function heartbeat_settings() { $settings['interval'] = 15; //Anything between 15-120 //$settings['autostart'] = false; return $settings; } }
SILENT KILLER Tool