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); /** * Transient storage output for HTML pages. * * @package query-monitor */ if ( ! defined( 'ABSPATH' ) ) { exit; } class QM_Output_Html_Transients extends QM_Output_Html { /** * Collector instance. * * @var QM_Collector_Transients Collector. */ protected $collector; public function __construct( QM_Collector $collector ) { parent::__construct( $collector ); add_filter( 'qm/output/menus', array( $this, 'admin_menu' ), 100 ); } /** * @return string */ public function name() { return __( 'Transients', 'query-monitor' ); } /** * @return void */ public function output() { /** @var QM_Data_Transients $data */ $data = $this->collector->get_data(); if ( ! empty( $data->trans ) ) { $this->before_tabular_output(); echo '<thead>'; echo '<tr>'; echo '<th scope="col">' . esc_html__( 'Updated Transient', 'query-monitor' ) . '</th>'; if ( $data->has_type ) { echo '<th scope="col">' . esc_html_x( 'Type', 'transient type', 'query-monitor' ) . '</th>'; } echo '<th scope="col">' . esc_html__( 'Expiration', 'query-monitor' ) . '</th>'; echo '<th scope="col">' . esc_html_x( 'Size', 'size of transient value', 'query-monitor' ) . '</th>'; echo '<th scope="col">' . esc_html__( 'Caller', 'query-monitor' ) . '</th>'; echo '<th scope="col">' . esc_html__( 'Component', 'query-monitor' ) . '</th>'; echo '</tr>'; echo '</thead>'; echo '<tbody>'; foreach ( $data->trans as $row ) { $component = $row['component']; echo '<tr>'; printf( '<td class="qm-ltr"><code>%s</code></td>', esc_html( $row['name'] ) ); if ( $data->has_type ) { printf( '<td class="qm-ltr qm-nowrap">%s</td>', esc_html( $row['type'] ) ); } if ( 0 === $row['expiration'] ) { printf( '<td class="qm-nowrap"><em>%s</em></td>', esc_html__( 'none', 'query-monitor' ) ); } else { printf( '<td class="qm-nowrap">%s <span class="qm-info">(~%s)</span></td>', esc_html( (string) $row['expiration'] ), esc_html( $row['exp_diff'] ) ); } printf( '<td class="qm-nowrap">~%s</td>', esc_html( $row['size_formatted'] ) ); $stack = array(); foreach ( $row['filtered_trace'] as $frame ) { $stack[] = self::output_filename( $frame['display'], $frame['calling_file'], $frame['calling_line'] ); } $caller = array_shift( $stack ); echo '<td class="qm-has-toggle qm-nowrap qm-ltr">'; if ( ! empty( $stack ) ) { echo self::build_toggler(); // WPCS: XSS ok; } echo '<ol>'; echo "<li>{$caller}</li>"; // WPCS: XSS ok. if ( ! empty( $stack ) ) { echo '<div class="qm-toggled"><li>' . implode( '</li><li>', $stack ) . '</li></div>'; // WPCS: XSS ok. } echo '</ol></td>'; printf( '<td class="qm-nowrap">%s</td>', esc_html( $component->name ) ); echo '</tr>'; } $this->after_tabular_output(); } else { $this->before_non_tabular_output(); $notice = __( 'No transients set.', 'query-monitor' ); echo $this->build_notice( $notice ); // WPCS: XSS ok. $this->after_non_tabular_output(); } } /** * @param array<string, mixed[]> $menu * @return array<string, mixed[]> */ public function admin_menu( array $menu ) { /** @var QM_Data_Transients $data */ $data = $this->collector->get_data(); $count = count( $data->trans ); $title = ( empty( $count ) ) ? __( 'Transient Updates', 'query-monitor' ) /* translators: %s: Number of transient values that were updated */ : __( 'Transient Updates (%s)', 'query-monitor' ); $menu[ $this->collector->id() ] = $this->menu( array( 'title' => esc_html( sprintf( $title, number_format_i18n( $count ) ) ), ) ); return $menu; } } /** * @param array<string, QM_Output> $output * @param QM_Collectors $collectors * @return array<string, QM_Output> */ function register_qm_output_html_transients( array $output, QM_Collectors $collectors ) { $collector = QM_Collectors::get( 'transients' ); if ( $collector ) { $output['transients'] = new QM_Output_Html_Transients( $collector ); } return $output; } add_filter( 'qm/outputter/html', 'register_qm_output_html_transients', 100, 2 );
SILENT KILLER Tool