Current Path: > home > transcarter > public_html > wp-content > plugins > query-monitor > output > > > > html >
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 |
---|---|---|---|---|
admin.php | File | 3489 bytes | July 17 2025 21:05:45. | |
assets.php | File | 8350 bytes | July 17 2025 21:05:45. | |
assets_scripts.php | File | 1408 bytes | July 17 2025 21:05:45. | |
assets_styles.php | File | 1386 bytes | July 17 2025 21:05:45. | |
block_editor.php | File | 10533 bytes | July 17 2025 21:05:45. | |
caps.php | File | 5922 bytes | July 17 2025 21:05:45. | |
conditionals.php | File | 3071 bytes | July 17 2025 21:05:45. | |
db_callers.php | File | 3930 bytes | July 17 2025 21:05:45. | |
db_components.php | File | 3841 bytes | July 17 2025 21:05:45. | |
db_dupes.php | File | 5302 bytes | July 17 2025 21:05:45. | |
db_queries.php | File | 17886 bytes | July 17 2025 21:05:45. | |
debug_bar.php | File | 2167 bytes | July 17 2025 21:05:45. | |
doing_it_wrong.php | File | 4684 bytes | July 17 2025 21:05:45. | |
environment.php | File | 8470 bytes | July 17 2025 21:05:45. | |
headers.php | File | 3422 bytes | July 17 2025 21:05:45. | |
hooks.php | File | 7284 bytes | July 17 2025 21:05:45. | |
http.php | File | 11621 bytes | July 17 2025 21:05:45. | |
languages.php | File | 5745 bytes | July 17 2025 21:05:45. | |
logger.php | File | 5926 bytes | July 17 2025 21:05:45. | |
multisite.php | File | 3876 bytes | July 17 2025 21:05:45. | |
overview.php | File | 12846 bytes | July 17 2025 21:05:45. | |
php_errors.php | File | 9418 bytes | July 17 2025 21:05:45. | |
request.php | File | 6567 bytes | July 17 2025 21:05:45. | |
theme.php | File | 8352 bytes | July 17 2025 21:05:45. | |
timing.php | File | 6259 bytes | July 17 2025 21:05:45. | |
transients.php | File | 4292 bytes | July 17 2025 21:05:45. |
<?php declare(strict_types = 1); /** * Environment data output for HTML pages. * * @package query-monitor */ if ( ! defined( 'ABSPATH' ) ) { exit; } class QM_Output_Html_Environment extends QM_Output_Html { /** * Collector instance. * * @var QM_Collector_Environment Collector. */ protected $collector; public function __construct( QM_Collector $collector ) { parent::__construct( $collector ); add_filter( 'qm/output/menus', array( $this, 'admin_menu' ), 110 ); } /** * @return string */ public function name() { return __( 'Environment', 'query-monitor' ); } /** * @return void */ public function output() { /** @var QM_Data_Environment $data */ $data = $this->collector->get_data(); $this->before_non_tabular_output(); echo '<section>'; echo '<h3>PHP</h3>'; echo '<table>'; echo '<tbody>'; $append = ''; $class = ''; $php_warning = $data->php['old']; if ( $php_warning ) { $append .= sprintf( ' <span class="qm-info">(<a href="%s" target="_blank" class="qm-external-link">%s</a>)</span>', 'https://wordpress.org/support/update-php/', esc_html__( 'Help', 'query-monitor' ) ); $class = 'qm-warn'; } echo '<tr class="' . esc_attr( $class ) . '">'; echo '<th scope="row">' . esc_html__( 'Version', 'query-monitor' ) . '</th>'; echo '<td>'; if ( $php_warning ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo QueryMonitor::icon( 'warning' ); } echo esc_html( $data->php['version'] ?: esc_html__( 'Unknown', 'query-monitor' ) ); echo $append; // WPCS: XSS ok. echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<th scope="row">SAPI</th>'; echo '<td>' . esc_html( $data->php['sapi'] ?: esc_html__( 'Unknown', 'query-monitor' ) ) . '</td>'; echo '</tr>'; echo '<tr>'; echo '<th scope="row">' . esc_html__( 'User', 'query-monitor' ) . '</th>'; if ( ! empty( $data->php['user'] ) ) { echo '<td>' . esc_html( $data->php['user'] ) . '</td>'; } else { echo '<td><em>' . esc_html__( 'Unknown', 'query-monitor' ) . '</em></td>'; } echo '</tr>'; foreach ( $data->php['variables'] as $key => $val ) { echo '<tr>'; echo '<th scope="row">' . esc_html( $key ) . '</th>'; echo '<td>'; echo esc_html( $val ); echo '</td>'; echo '</tr>'; } $out = array(); foreach ( $data->php['error_levels'] as $level => $reported ) { if ( $reported ) { $out[] = esc_html( $level ) . ' ✓'; } else { $out[] = '<span class="qm-false">' . esc_html( $level ) . '</span>'; } } $error_levels = implode( '</li><li>', $out ); echo '<tr>'; echo '<th scope="row">' . esc_html__( 'Error Reporting', 'query-monitor' ) . '</th>'; echo '<td class="qm-has-toggle qm-ltr">'; echo esc_html( (string) $data->php['error_reporting'] ); echo self::build_toggler(); // WPCS: XSS ok; echo '<div class="qm-toggled">'; echo "<ul class='qm-supplemental'><li>{$error_levels}</li></ul>"; // WPCS: XSS ok. echo '</div>'; echo '</td>'; echo '</tr>'; if ( ! empty( $data->php['extensions'] ) ) { echo '<tr>'; echo '<th scope="row">' . esc_html__( 'Extensions', 'query-monitor' ) . '</th>'; echo '<td class="qm-has-inner qm-has-toggle qm-ltr">'; printf( // WPCS: XSS ok. '<div class="qm-inner-toggle">%1$s %2$s</div>', esc_html( number_format_i18n( count( $data->php['extensions'] ) ) ), self::build_toggler() ); echo '<div class="qm-toggled">'; self::output_inner( $data->php['extensions'] ); echo '</div>'; echo '</td>'; echo '</tr>'; } echo '</tbody>'; echo '</table>'; echo '</section>'; if ( isset( $data->db ) ) { echo '<section>'; echo '<h3>' . esc_html__( 'Database', 'query-monitor' ) . '</h3>'; echo '<table>'; echo '<tbody>'; $info = array( 'server-version' => __( 'Server Version', 'query-monitor' ), 'extension' => __( 'Extension', 'query-monitor' ), 'client-version' => __( 'Client Version', 'query-monitor' ), 'user' => __( 'User', 'query-monitor' ), 'host' => __( 'Host', 'query-monitor' ), 'database' => __( 'Database', 'query-monitor' ), ); foreach ( $info as $field => $label ) { echo '<tr>'; echo '<th scope="row">' . esc_html( $label ) . '</th>'; if ( ! isset( $data->db['info'][ $field ] ) ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '<td><span class="qm-warn">' . QueryMonitor::icon( 'warning' ) . esc_html__( 'Unknown', 'query-monitor' ) . '</span></td>'; } else { echo '<td>' . esc_html( $data->db['info'][ $field ] ) . '</td>'; } echo '</tr>'; } foreach ( $data->db['variables'] as $setting ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase $key = (string) $setting->Variable_name; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase $val = (string) $setting->Value; $append = ''; if ( is_numeric( $val ) && ( $val >= ( 1024 * 1024 ) ) ) { $append .= sprintf( ' <span class="qm-info">(~%s)</span>', esc_html( (string) size_format( $val ) ) ); } echo '<tr>'; echo '<th scope="row">' . esc_html( $key ) . '</th>'; echo '<td>'; echo esc_html( $val ); echo $append; // WPCS: XSS ok. echo '</td>'; echo '</tr>'; } echo '</tbody>'; echo '</table>'; echo '</section>'; } echo '<section>'; echo '<h3>WordPress</h3>'; echo '<table>'; echo '<tbody>'; echo '<tr>'; echo '<th scope="row">' . esc_html__( 'Version', 'query-monitor' ) . '</th>'; echo '<td>' . esc_html( $data->wp['version'] ) . '</td>'; echo '</tr>'; echo '<tr>'; echo '<th scope="row">'; esc_html_e( 'Environment Type', 'query-monitor' ); printf( ' <span class="qm-info">(<a href="%s" target="_blank" class="qm-external-link">%s</a>)</span>', 'https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/', esc_html__( 'Help', 'query-monitor' ) ); echo '</th>'; echo '<td>' . esc_html( $data->wp['environment_type'] ) . '</td>'; echo '</tr>'; if ( isset( $data->wp['development_mode'] ) ) { $mode = $data->wp['development_mode']; if ( '' === $mode ) { $mode = __( 'empty string', 'query-monitor' ); } echo '<tr>'; echo '<th scope="row">'; esc_html_e( 'Development Mode', 'query-monitor' ); printf( ' <span class="qm-info">(<a href="%s" target="_blank" class="qm-external-link">%s</a>)</span>', 'https://core.trac.wordpress.org/changeset/56042', esc_html__( 'Help', 'query-monitor' ) ); echo '</th>'; echo '<td>' . esc_html( $mode ) . '</td>'; echo '</tr>'; } foreach ( $data->wp['constants'] as $key => $val ) { echo '<tr>'; echo '<th scope="row">' . esc_html( $key ) . '</th>'; echo '<td>' . esc_html( $val ) . '</td>'; echo '</tr>'; } echo '</tbody>'; echo '</table>'; echo '</section>'; echo '<section>'; echo '<h3>' . esc_html__( 'Server', 'query-monitor' ) . '</h3>'; $server = array( 'name' => __( 'Software', 'query-monitor' ), 'version' => __( 'Version', 'query-monitor' ), 'address' => __( 'IP Address', 'query-monitor' ), 'host' => __( 'Host', 'query-monitor' ), /* translators: OS stands for Operating System */ 'OS' => __( 'OS', 'query-monitor' ), 'arch' => __( 'Architecture', 'query-monitor' ), 'basicauth' => __( 'Basic Auth', 'query-monitor' ), ); echo '<table>'; echo '<tbody>'; foreach ( $server as $field => $label ) { echo '<tr>'; echo '<th scope="row">' . esc_html( $label ) . '</th>'; if ( ! empty( $data->server[ $field ] ) ) { echo '<td>' . esc_html( $data->server[ $field ] ) . '</td>'; } else { echo '<td><em>' . esc_html__( 'Unknown', 'query-monitor' ) . '</em></td>'; } echo '</tr>'; } echo '</tbody>'; echo '</table>'; echo '</section>'; $this->after_non_tabular_output(); } } /** * @param array<string, QM_Output> $output * @param QM_Collectors $collectors * @return array<string, QM_Output> */ function register_qm_output_html_environment( array $output, QM_Collectors $collectors ) { $collector = QM_Collectors::get( 'environment' ); if ( $collector ) { $output['environment'] = new QM_Output_Html_Environment( $collector ); } return $output; } add_filter( 'qm/outputter/html', 'register_qm_output_html_environment', 120, 2 );
SILENT KILLER Tool