403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.217.145
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/pawsandpatience.co.uk/wp-content/plugins/wp-smushit/core/parser/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/pawsandpatience.co.uk/wp-content/plugins/wp-smushit/core/parser/class-rest-content.php
<?php

namespace Smush\Core\Parser;

class Rest_Content {
	/**
	 * @var string
	 */
	private $content;
	/**
	 * @var Image_URL[]
	 */
	private $image_urls;

	public function __construct( $content, $image_urls ) {
		$this->content    = $content;
		$this->image_urls = $image_urls;
	}

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

	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->content;
		foreach ( $this->image_urls as $image_url ) {
			if ( $image_url->has_updates() ) {
				$updated = str_replace(
					$image_url->get_previous_url(),
					$image_url->get_url(),
					$updated
				);
			}
		}

		return $updated;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit