✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/mphb-woocommerce/includes//dependencies.php
<?php

namespace MPHBW;

class Dependencies {

	const WOO_VERSION	 = '3.2.6';
	const MPHB_VERSION = '2.4.0';

	public function __construct(){
		add_action( 'admin_notices', array( $this, 'checkAndShowNotice' ) );
	}

	/**
	 * Check plugin dependencies. Don't use before plugins_loaded action
	 *
	 * @return boolean
	 */
	public function check(){
		return $this->checkMPHB() && $this->checkWoocommerce();
	}

	private function isMPHBActive(){
		return mphbw_is_plugin_active( 'motopress-hotel-booking/motopress-hotel-booking.php' ) ||
			mphbw_is_plugin_active( 'motopress-hotel-booking-lite/motopress-hotel-booking.php' );
	}

	private function isMPHBCorrectVersion(){
		if ( !function_exists( 'MPHB' ) ) {
			return false;
		}
		$mphb = MPHB();

		return method_exists( $mphb, 'getVersion' ) &&
			version_compare( $mphb->getVersion(), self::MPHB_VERSION, '>=' );
	}

	private function checkMPHB(){
		return $this->isMPHBActive() && $this->isMPHBCorrectVersion();
	}

	private function isWoocommerceActive(){
		return mphbw_is_plugin_active( 'woocommerce/woocommerce.php' );
	}

	private function isWoocommerceCorrectVersion(){
		if ( !function_exists( 'wc' ) ) {
			return false;
		}

		$woocommerce = wc();
		return $woocommerce && property_exists( $woocommerce, 'version' ) &&
			version_compare( $woocommerce->version, self::WOO_VERSION, '>=' );
	}

	private function checkWoocommerce(){
		return $this->isWoocommerceActive() && $this->isWoocommerceCorrectVersion();
	}

	/**
	 *
	 * @return bool
	 */
	public function checkCurrency(){
		$mphbCurrency	 = MPHB()->settings()->currency()->getCurrencyCode();
		$wooCurrency	 = get_woocommerce_currency();
		return $mphbCurrency == $wooCurrency;
	}

	function checkAndShowNotice(){
		if ( !$this->checkMPHB() ) {
			echo '<div class="error"><p>' . sprintf( __( 'Hotel Booking WooCommerce Payments plugin requires Hotel Booking plugin version %s or higher.', 'mphb-woocommerce' ), self::MPHB_VERSION ) . '</p></div>';
		}

		if ( !$this->checkWoocommerce() ) {
			echo '<div class="error"><p>' . sprintf( __( 'Hotel Booking WooCommerce Payments requires WooCommerce plugin version %s or higher.', 'mphb-woocommerce' ), self::WOO_VERSION ) . '</p></div>';
		}

		if ( $this->checkMPHB() && $this->checkWoocommerce() && !$this->checkCurrency() ) {
			echo '<div class="error"><p>' . sprintf( __( 'Hotel Booking WooCommerce Payments requires equal currencies set up in WooCommerce(%s) and Hotel Booking(%s).', 'mphb-woocommerce' ), get_woocommerce_currency(), MPHB()->settings()->currency()->getCurrencyCode() ) . '</p></div>';
		}
	}

}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
28 Apr 2026 8.56 AM
builxejc / builxejc
0755
admin
--
28 Apr 2026 8.56 AM
builxejc / builxejc
0755
libraries
--
28 Apr 2026 8.56 AM
builxejc / builxejc
0755
settings
--
28 Apr 2026 8.56 AM
builxejc / builxejc
0755
.htaccess
0.41 KB
28 Apr 2026 8.56 AM
builxejc / builxejc
0644
auto-updater.php
0.686 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
autoloader.php
2.645 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
booking-utils.php
1.488 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
dependencies.php
2.525 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
plugin-data.php
2.327 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
plugin.php
3.481 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
reservation-product.php
3.012 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
woocommerce-gateway.php
9.896 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
woocommerce-helper.php
17.526 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
woocommerce-listener.php
7.313 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF