| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/domains/mimra.ir/mimqadim/wp-content/plugins/1query-monitor/output/ |
Upload File : |
<?php declare(strict_types = 1);
/**
* Abstract output class for HTTP headers.
*
* @package query-monitor
*/
abstract class QM_Output_Headers extends QM_Output {
/**
* @return void
*/
public function output() {
$id = $this->collector->id;
foreach ( $this->get_output() as $key => $value ) {
if ( ! is_scalar( $value ) ) {
$value = json_encode( $value );
}
# Remove illegal characters (Header may not contain NUL bytes)
if ( is_string( $value ) ) {
$value = str_replace( chr( 0 ), '', $value );
}
header( sprintf( 'X-QM-%s-%s: %s', $id, $key, $value ) );
}
}
}