SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > elementor > includes


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/elementor/includes

NameTypeSizeLast ModifiedActions
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 January 20 2025 19:15:08.
autoloader.php File 9720 bytes March 17 2025 17:28:54.
beta-testers.php File 3059 bytes April 23 2023 15:22:46.
compatibility.php File 11221 bytes March 17 2025 17:28:54.
conditions.php File 2768 bytes April 23 2023 15:22:46.
db.php File 15937 bytes April 28 2025 11:15:16.
editor-assets-api.php File 1807 bytes December 10 2024 19:19:32.
embed.php File 8679 bytes March 17 2025 17:28:54.
fonts.php File 64029 bytes March 17 2025 17:28:54.
frontend.php File 39203 bytes July 30 2025 18:59:04.
heartbeat.php File 2635 bytes April 23 2023 15:22:46.
maintenance-mode.php File 11396 bytes February 29 2024 16:51:58.
maintenance.php File 2881 bytes March 17 2025 17:28:54.
plugin.php File 17069 bytes March 17 2025 17:28:54.
preview.php File 7807 bytes March 17 2025 17:28:54.
rollback.php File 3719 bytes March 17 2025 17:28:54.
shapes.php File 6562 bytes July 30 2025 18:59:04.
stylesheet.php File 9123 bytes August 25 2024 17:59:38.
tracker.php File 17250 bytes July 07 2025 16:02:28.
user.php File 10240 bytes March 17 2025 17:28:54.
utils.php File 24041 bytes May 28 2025 13:48:50.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/elementor/includes/maintenance.php

<?php
namespace Elementor;

use Elementor\Core\Kits\Manager;
use Elementor\Core\Upgrade\Manager as Upgrade_Manager;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Elementor maintenance.
 *
 * Elementor maintenance handler class is responsible for setting up Elementor
 * activation and uninstallation hooks.
 *
 * @since 1.0.0
 */
class Maintenance {

	/**
	 * Activate Elementor.
	 *
	 * Set Elementor activation hook.
	 *
	 * Fired by `register_activation_hook` when the plugin is activated.
	 *
	 * @param bool $network_wide
	 * @since 1.0.0
	 * @access public
	 * @static
	 */
	public static function activation( $network_wide ) {
		wp_clear_scheduled_hook( 'elementor/tracker/send_event' );

		wp_schedule_event( time(), 'daily', 'elementor/tracker/send_event' );
		flush_rewrite_rules();

		if ( is_multisite() && $network_wide ) {
			static::create_default_kit(
				get_sites( [
					'fields' => 'ids',
				] )
			);

			return;
		}

		static::create_default_kit();
		static::insert_defaults_options();

		set_transient( 'elementor_activation_redirect', true, MINUTE_IN_SECONDS );
	}

	public static function insert_defaults_options() {
		$history = Upgrade_Manager::get_installs_history();
		if ( empty( $history ) ) {
			$default_options = [
				'elementor_font_display' => 'swap',
			];
			foreach ( $default_options as $option_name => $option_value ) {
				if ( \Elementor\Utils::is_empty( get_option( $option_name ) ) ) {
					add_option( $option_name, $option_value );
				}
			}
		}
	}

	public static function deactivation() {
		Api::get_deactivation_data();
	}

	/**
	 * Uninstall Elementor.
	 *
	 * Set Elementor uninstallation hook.
	 *
	 * Fired by `register_uninstall_hook` when the plugin is uninstalled.
	 *
	 * @since 1.0.0
	 * @access public
	 * @static
	 */
	public static function uninstall() {
		wp_clear_scheduled_hook( 'elementor/tracker/send_event' );

		Api::get_uninstalled_data();
	}

	/**
	 * Init.
	 *
	 * Initialize Elementor Maintenance.
	 *
	 * @since 1.0.0
	 * @access public
	 * @static
	 */
	public static function init() {
		register_activation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'activation' ] );
		register_deactivation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'deactivation' ] );
		register_uninstall_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'uninstall' ] );

		add_action( 'wpmu_new_blog', function ( $site_id ) {
			if ( ! is_plugin_active_for_network( ELEMENTOR_PLUGIN_BASE ) ) {
				return;
			}

			static::create_default_kit( [ $site_id ] );
		} );
	}

	/**
	 * @param array $site_ids
	 */
	private static function create_default_kit( array $site_ids = [] ) {
		if ( ! empty( $site_ids ) ) {
			foreach ( $site_ids as $site_id ) {
				switch_to_blog( $site_id );

				Manager::create_default_kit();

				restore_current_blog();
			}

			return;
		}

		Manager::create_default_kit();
	}
}

SILENT KILLER Tool