403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.178
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/azfilmst/public_html/wp-content/plugins/wp-smushit/core/parser/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/azfilmst/public_html/wp-content/plugins/wp-smushit/core/parser/class-style.php
<?php

namespace Smush\Core\Parser;

class Style implements Replaceable {
	/**
	 * @var string
	 */
	private $css;
	/**
	 * @var Image_URL[]
	 */
	private $image_urls;
	/**
	 * @var int
	 */
	private $position;

	public function __construct( $css, $image_urls, $position = - 1 ) {
		$this->css        = $css;
		$this->image_urls = $image_urls;
		$this->position   = $position;
	}

	/**
	 * @return string
	 */
	public function get_css() {
		return $this->css;
	}

	public function get_image_urls() {
		return $this->image_urls;
	}

	public function has_updates() {
		foreach ( $this->image_urls as $image_url ) {
			if ( $image_url->has_updates() ) {
				return true;
			}
		}

		return false;
	}

	public function get_updated() {
		$updated = $this->css;
		foreach ( $this->image_urls as $image_url ) {
			if ( $image_url->has_updates() ) {
				$updated = str_replace(
					$image_url->get_previous_url(),
					esc_url_raw( $image_url->get_url() ),
					$updated
				);
			}
		}

		return $updated;
	}

	public function get_original() {
		return $this->get_css();
	}

	public function get_position() {
		return $this->position;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit