Current Path: > home > transcarter > public_html > 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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
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. |
<?php declare(strict_types = 1); /** * Plugin CLI command. * * @package query-monitor */ class QM_CLI extends QM_Plugin { /** * @param string $file */ protected function __construct( $file ) { # Register command WP_CLI::add_command( 'qm enable', array( $this, 'enable' ) ); # Parent setup: parent::__construct( $file ); } /** * Enable QM by creating the symlink for db.php * * @return void */ public function enable() { $drop_in = WP_CONTENT_DIR . '/db.php'; if ( file_exists( $drop_in ) ) { $contents = file_get_contents( $drop_in ); if ( false !== $contents && false !== strpos( $contents, 'new QM_DB' ) ) { WP_CLI::success( "Query Monitor's wp-content/db.php is already in place" ); exit( 0 ); } else { WP_CLI::error( 'Unknown wp-content/db.php is already in place' ); } } if ( defined( 'QM_DB_SYMLINK' ) && ! QM_DB_SYMLINK ) { WP_CLI::warning( 'Creation of symlink prevented by QM_DB_SYMLINK constant.' ); exit( 0 ); } if ( ! function_exists( 'symlink' ) ) { WP_CLI::error( 'The symlink function is not available' ); } if ( symlink( $this->plugin_path( 'wp-content/db.php' ), $drop_in ) ) { WP_CLI::success( 'wp-content/db.php symlink created' ); exit( 0 ); } else { WP_CLI::error( 'Failed to create wp-content/db.php symlink' ); } } /** * @param string $file * @return self */ public static function init( ?string $file = null ) { static $instance = null; if ( ! $instance ) { $instance = new QM_CLI( $file ); } return $instance; } }
SILENT KILLER Tool