✘✘ 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//plugin.php
<?php

namespace MPHBW;

class Plugin {

	/**
	 *
	 * @var \MPHBW\Plugin
	 */
	private static $instance = null;

	/**
	 *
	 * @var string
	 */
	private static $filepath;

    /**
     * @var string
     * @since 1.0.5
     */
    private static $dirpath = '';

	/**
	 *
	 * @var Settings\SettingsRegistry
	 */
	private $settings;

	/**
	 *
	 * @var PluginData
	 */
	private $pluginData;

	/**
	 *
	 * @var Dependencies
	 */
	private $dependencies;

	private function __construct(){
		// Do nothing.
	}

	/**
	 *
	 * @param string $filepath
	 */
	public static function setBaseFilepath( $filepath ){
		self::$filepath = $filepath;
        self::$dirpath = plugin_dir_path( $filepath );
	}

	public static function getInstance(){
		if ( !isset( self::$instance ) ) {
			self::$instance = new self();
			self::$instance->afterConstruct();
		}
		return self::$instance;
	}

	public function afterConstruct(){

		$this->pluginData	 = new PluginData( self::$filepath );
		$this->settings		 = new Settings\SettingsRegistry();
		$this->dependencies	 = new Dependencies();
		new AutoUpdater();

		add_action( 'plugins_loaded', array( $this, 'loadTextdomain' ) );
		add_action( 'plugins_loaded', array( $this, 'onLoad' ), 9 );

        add_filter( 'mphb_get_template_part', array( $this, 'addTemplatePath' ), 10, 2 );

		add_filter('woocommerce_prevent_admin_access', array($this, 'access'));
	}

    /**
     * @since 1.0.5
     */
    public function onLoad(){
        if ( $this->dependencies->check() ) {
            // Init payment method
            new \MPHBW\WoocommerceGateway();

            // Init emails
            $noRenewalTemplater = new \MPHB\Emails\Templaters\EmailTemplater();
            $noRenewalTemplater->setTagGroups( array( 'booking' => true, 'payment' => true ) );

            $noRenewalEmail = new Admin\Emails\NoBookingRenewalEmail( array( 'id' => 'admin_no_booking_renewal' ), $noRenewalTemplater );

            MPHB()->emails()->addEmail( $noRenewalEmail );
        }
    }

    /**
     * @param string $template
     * @param string $slug
     * @return string
     *
     * @since 1.0.5
     */
    public function addTemplatePath( $template, $slug ){
        if ( empty( $template ) && file_exists( $this->pathTo( "templates/{$slug}.php" ) ) ) {
            $template = $this->pathTo( "templates/{$slug}.php" );
        }

        return $template;
    }

    /**
     * @param string $relativePath Relative path to the file.
     * @return string Absolute path to the file.
     *
     * @since 1.0.5
     */
    public function pathTo( $relativePath ){
        return self::$dirpath . $relativePath;
    }

	/**
	 *
	 * @return Settings\SettingsRegistry
	 */
	public function getSettings(){
		return $this->settings;
	}

	/**
	 *
	 * @return Dependencies
	 */
	function getDependencies(){
		return $this->dependencies;
	}

	/**
	 *
	 * @return PluginData
	 */
	public function getPluginData(){
		return $this->pluginData;
	}

	public function loadTextDomain(){

		$slug = $this->pluginData->getSlug();

		$locale = mphbw_is_wp_version( '4.7', '>=' ) ? get_user_locale() : get_locale();

		$locale = apply_filters( 'plugin_locale', $locale, $slug );

		// wp-content/languages/mphb-woocommerce/mphb-woocommerce-{lang}_{country}.mo
		$customerMoFile = sprintf( '%1$s/%2$s/%2$s-%3$s.mo', WP_LANG_DIR, $slug, $locale );

		load_textdomain( $slug, $customerMoFile );

		load_plugin_textdomain( $slug, false, $slug . '/languages' );
	}

	public function access()
	{
		if (current_user_can('mphb_view_calendar')) {
			return false;
		}
	}

}


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