Current Path: > home > transcarter > > www > wp-content > plugins > elementor > includes >
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 |
---|---|---|---|---|
admin-templates | Directory | - | - | |
base | Directory | - | - | |
container | Directory | - | - | |
controls | Directory | - | - | |
editor-templates | Directory | - | - | |
elements | Directory | - | - | |
interfaces | Directory | - | - | |
libraries | Directory | - | - | |
managers | Directory | - | - | |
settings | Directory | - | - | |
template-library | Directory | - | - | |
widgets | Directory | - | - | |
api.php | File | 7465 bytes | July 17 2025 21:06:23. | |
autoloader.php | File | 9720 bytes | July 17 2025 21:06:23. | |
beta-testers.php | File | 3059 bytes | July 17 2025 21:06:23. | |
compatibility.php | File | 11221 bytes | July 17 2025 21:06:23. | |
conditions.php | File | 2768 bytes | July 17 2025 21:06:23. | |
db.php | File | 15937 bytes | July 17 2025 21:06:23. | |
editor-assets-api.php | File | 1807 bytes | July 17 2025 21:06:23. | |
embed.php | File | 8679 bytes | July 17 2025 21:06:23. | |
fonts.php | File | 64029 bytes | July 17 2025 21:06:23. | |
frontend.php | File | 39072 bytes | July 17 2025 21:06:23. | |
heartbeat.php | File | 2635 bytes | July 17 2025 21:06:23. | |
maintenance-mode.php | File | 11396 bytes | July 17 2025 21:06:23. | |
maintenance.php | File | 2881 bytes | July 17 2025 21:06:23. | |
plugin.php | File | 17069 bytes | July 17 2025 21:06:23. | |
preview.php | File | 7807 bytes | July 17 2025 21:06:23. | |
rollback.php | File | 3719 bytes | July 17 2025 21:06:23. | |
shapes.php | File | 6562 bytes | July 17 2025 21:06:23. | |
stylesheet.php | File | 9123 bytes | July 17 2025 21:06:23. | |
tracker.php | File | 17250 bytes | July 17 2025 21:06:23. | |
user.php | File | 10240 bytes | July 17 2025 21:06:23. | |
utils.php | File | 24041 bytes | July 17 2025 21:06:23. |
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor heartbeat. * * Elementor heartbeat handler class is responsible for initializing Elementor * heartbeat. The class communicates with WordPress Heartbeat API while working * with Elementor. * * @since 1.0.0 */ class Heartbeat { /** * Heartbeat received. * * Locks the Heartbeat response received when editing with Elementor. * * Fired by `heartbeat_received` filter. * * @since 1.0.0 * @access public * * @param array $response The Heartbeat response. * @param array $data The `$_POST` data sent. * * @return array Heartbeat response received. */ public function heartbeat_received( $response, $data ) { if ( isset( $data['elementor_post_lock']['post_ID'] ) ) { $post_id = $data['elementor_post_lock']['post_ID']; $locked_user = Plugin::$instance->editor->get_locked_user( $post_id ); if ( ! $locked_user || ! empty( $data['elementor_force_post_lock'] ) ) { Plugin::$instance->editor->lock_post( $post_id ); } else { $response['locked_user'] = $locked_user->display_name; } /** @var Core\Common\Modules\Ajax\Module $ajax */ $ajax = Plugin::$instance->common->get_component( 'ajax' ); $response['elementorNonce'] = $ajax->create_nonce(); } return $response; } /** * Refresh nonces. * * Filter the nonces to send to the editor when editing with Elementor. Used * to refresh the nonce when the nonce expires while editing. This way the * user doesn't need to log-in again as Elementor fetches the new nonce from * the server using ajax. * * Fired by `wp_refresh_nonces` filter. * * @since 1.8.0 * @access public * * @param array $response The no-priv Heartbeat response object or array. * @param array $data The `$_POST` data sent. * * @return array Refreshed nonces. */ public function refresh_nonces( $response, $data ) { if ( isset( $data['elementor_post_lock']['post_ID'] ) ) { /** @var Core\Common\Modules\Ajax\Module $ajax */ $ajax = Plugin::$instance->common->get_component( 'ajax' ); $response['elementor-refresh-nonces'] = [ 'elementorNonce' => $ajax->create_nonce(), 'heartbeatNonce' => wp_create_nonce( 'heartbeat-nonce' ), ]; } return $response; } /** * Heartbeat constructor. * * Initializing Elementor heartbeat. * * @since 1.0.0 * @access public */ public function __construct() { add_filter( 'heartbeat_received', [ $this, 'heartbeat_received' ], 10, 2 ); add_filter( 'wp_refresh_nonces', [ $this, 'refresh_nonces' ], 30, 2 ); } }
SILENT KILLER Tool