%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/knwn/wp-content/plugins/query-monitor/output/
Upload File :
Create Path :
Current File : /var/www/knwn/wp-content/plugins/query-monitor/output/Headers.php

<?php
/**
 * 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 ) ) {
				header( sprintf( 'X-QM-%s-%s: %s', $id, $key, $value ) );
			} else {
				header( sprintf( 'X-QM-%s-%s: %s', $id, $key, json_encode( $value ) ) );
			}
		}

	}

}

Zerion Mini Shell 1.0