SILENT KILLERPanel

Current Path: > home > transcarter > > www > wp-content > plugins > query-monitor > classes


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 ]

Files and Folders in: /home/transcarter//www/wp-content/plugins/query-monitor/classes

NameTypeSizeLast ModifiedActions
Activation.php File 3038 bytes July 17 2025 21:05:45.
Backtrace.php File 14755 bytes July 17 2025 21:05:45.
CLI.php File 1568 bytes July 17 2025 21:05:45.
Collector.php File 8676 bytes July 17 2025 21:05:45.
Collector_Assets.php File 13804 bytes July 17 2025 21:05:45.
Collectors.php File 1923 bytes July 17 2025 21:05:45.
Component.php File 257 bytes July 17 2025 21:05:45.
DB.php File 1601 bytes July 17 2025 21:05:45.
Data.php File 1343 bytes July 17 2025 21:05:45.
DataCollector.php File 396 bytes July 17 2025 21:05:45.
Dispatcher.php File 5244 bytes July 17 2025 21:05:45.
Dispatchers.php File 1241 bytes July 17 2025 21:05:45.
Hook.php File 1706 bytes July 17 2025 21:05:45.
Output.php File 923 bytes July 17 2025 21:05:45.
PHP.php File 1397 bytes July 17 2025 21:05:45.
Plugin.php File 2400 bytes July 17 2025 21:05:45.
QM.php File 4443 bytes July 17 2025 21:05:45.
QueryMonitor.php File 8688 bytes July 17 2025 21:05:45.
Timer.php File 2923 bytes July 17 2025 21:05:45.
Util.php File 19534 bytes July 17 2025 21:05:45.
debug_bar.php File 1713 bytes July 17 2025 21:05:45.
debug_bar_panel.php File 1446 bytes July 17 2025 21:05:45.

Reading File: /home/transcarter//www/wp-content/plugins/query-monitor/classes/debug_bar.php

<?php declare(strict_types = 1);
/**
 * Mock 'Debug Bar' plugin class.
 *
 * @package query-monitor
 */

class Debug_Bar {
	/**
	 * @var array<int, Debug_Bar_Panel>
	 */
	public $panels = array();

	public function __construct() {
		add_action( 'wp_head', array( $this, 'ensure_ajaxurl' ), 1 );

		$this->enqueue();
		$this->init_panels();
	}

	/**
	 * @return void
	 */
	public function enqueue() {
		// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
		wp_register_style( 'debug-bar', false, array(
			'query-monitor',
		) );
		// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
		wp_register_script( 'debug-bar', false, array(
			'query-monitor',
		) );

		/**
		 * Fires after scripts have been enqueued. This mimics the same action fired in the Debug Bar plugin.
		 *
		 * @since 2.7.0
		 */
		do_action( 'debug_bar_enqueue_scripts' );
	}

	/**
	 * @return void
	 */
	public function init_panels() {
		/**
		 * Filters the debug bar panel list. This mimics the same filter called in the Debug Bar plugin.
		 *
		 * @since 2.7.0
		 *
		 * @param array<int, Debug_Bar_Panel> $panels Array of Debug Bar panel instances.
		 */
		$this->panels = apply_filters( 'debug_bar_panels', array() );
	}

	/**
	 * @return void
	 */
	public function ensure_ajaxurl() {
		$dispatcher = QM_Dispatchers::get( 'html' );

		if ( $this->panels && $dispatcher && $dispatcher::user_can_view() ) {
			wp_print_inline_script_tag(
				sprintf(
					"var ajaxurl = '%s';",
					esc_url_raw( admin_url( 'admin-ajax.php' ) )
				),
				array(
					'id' => 'query-monitor-inline-debug-bar',
				)
			);
		}
	}

	/**
	 * @return void
	 */
	public function Debug_Bar() {
		self::__construct();
	}

}

SILENT KILLER Tool