@ -0,0 +1,17 @@ |
||||
# This file was updated by Duplicator Pro on 2024-10-25 01:39:46. |
||||
# See the original_files_ folder for the original source_site_htaccess file. |
||||
# BEGIN WordPress |
||||
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are |
||||
# dynamically generated, and should only be modified via WordPress filters. |
||||
# Any changes to the directives between these markers will be overwritten. |
||||
<IfModule mod_rewrite.c> |
||||
RewriteEngine On |
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
||||
RewriteBase / |
||||
RewriteRule ^index\.php$ - [L] |
||||
RewriteCond %{REQUEST_FILENAME} !-f |
||||
RewriteCond %{REQUEST_FILENAME} !-d |
||||
RewriteRule . /index.php [L] |
||||
</IfModule> |
||||
|
||||
# END WordPress |
@ -0,0 +1,90 @@ |
||||
<?php |
||||
/** |
||||
* Plugin Name: Query Monitor Database Class (Drop-in) |
||||
* Description: Database drop-in for Query Monitor, the developer tools panel for WordPress. |
||||
* Version: 3.16.3 |
||||
* Plugin URI: https://querymonitor.com/ |
||||
* Author: John Blackbourn |
||||
* Author URI: https://querymonitor.com/ |
||||
* |
||||
* ********************************************************************* |
||||
* |
||||
* Ensure this file is symlinked to your wp-content directory to provide |
||||
* additional database query information in Query Monitor's output. |
||||
* |
||||
* @see https://querymonitor.com/help/db-php-symlink/ |
||||
* |
||||
* ********************************************************************* |
||||
* |
||||
* @package query-monitor |
||||
*/ |
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) { |
||||
exit; |
||||
} |
||||
|
||||
if ( ! defined( 'DB_USER' ) ) { |
||||
return; |
||||
} |
||||
|
||||
if ( defined( 'QM_DISABLED' ) && QM_DISABLED ) { |
||||
return; |
||||
} |
||||
|
||||
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) { |
||||
return; |
||||
} |
||||
|
||||
if ( 'cli' === php_sapi_name() && ! defined( 'QM_TESTS' ) ) { |
||||
# For the time being, let's not load QM when using the CLI because we've no persistent storage and no means of |
||||
# outputting collected data on the CLI. This will hopefully change in a future version of QM. |
||||
return; |
||||
} |
||||
|
||||
if ( defined( 'DOING_CRON' ) && DOING_CRON ) { |
||||
# Let's not load QM during cron events for the same reason as above. |
||||
return; |
||||
} |
||||
|
||||
# Don't load QM during plugin updates to prevent function signature changes causing issues between versions. |
||||
if ( is_admin() ) { |
||||
if ( isset( $_GET['action'] ) && 'upgrade-plugin' === $_GET['action'] ) { |
||||
return; |
||||
} |
||||
|
||||
if ( isset( $_POST['action'] ) && 'update-plugin' === $_POST['action'] ) { |
||||
return; |
||||
} |
||||
} |
||||
|
||||
// This must be required before vendor/autoload.php so QM can serve its own message about PHP compatibility. |
||||
$qm_dir = dirname( dirname( __FILE__ ) ); |
||||
$qm_php = "{$qm_dir}/classes/PHP.php"; |
||||
|
||||
if ( ! is_readable( $qm_php ) ) { |
||||
return; |
||||
} |
||||
require_once $qm_php; |
||||
|
||||
if ( ! QM_PHP::version_met() ) { |
||||
return; |
||||
} |
||||
|
||||
if ( ! file_exists( "{$qm_dir}/vendor/autoload.php" ) ) { |
||||
add_action( 'all_admin_notices', 'QM_PHP::vendor_nope' ); |
||||
return; |
||||
} |
||||
|
||||
require_once "{$qm_dir}/vendor/autoload.php"; |
||||
|
||||
// Safety check to ensure the autoloader is operational. |
||||
if ( ! class_exists( 'QM_Backtrace' ) ) { |
||||
return; |
||||
} |
||||
|
||||
if ( ! defined( 'SAVEQUERIES' ) ) { |
||||
define( 'SAVEQUERIES', true ); |
||||
} |
||||
|
||||
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited |
||||
$wpdb = new QM_DB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST ); |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 169 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 28 KiB |