HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/woo-wechatpay/woo-wechatpay.php
<?php
/*
Plugin Name: Payment gateway for WooCommerce - Woo WeChatPay
Plugin URI: https://github.com/froger-me/woo-wechatpay
Description: Integrate Woocommerce with WeChat Pay.
Version: 1.3.16
Author: Alexandre Froger
Author URI: https://froger.me
Text Domain: woo-wechatpay
Domain Path: /languages
WP Weixin minimum required version: 1.3.10
WP Weixin tested up to: 1.4
*/

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

if ( ! defined( 'WOO_WECHATPAY_PLUGIN_FILE' ) ) {
	define( 'WOO_WECHATPAY_PLUGIN_FILE', __FILE__ );
}

if ( ! defined( 'WOO_WECHATPAY_PLUGIN_PATH' ) ) {
	define( 'WOO_WECHATPAY_PLUGIN_PATH', plugin_dir_path( WOO_WECHATPAY_PLUGIN_FILE ) );
}

if ( ! defined( 'WOO_WECHATPAY_PLUGIN_URL' ) ) {
	define( 'WOO_WECHATPAY_PLUGIN_URL', plugin_dir_url( WOO_WECHATPAY_PLUGIN_FILE ) );
}

require_once WOO_WECHATPAY_PLUGIN_PATH . 'inc/class-woo-wechatpay.php';

register_activation_hook( WOO_WECHATPAY_PLUGIN_FILE, array( 'Woo_WechatPay', 'activate' ) );
register_deactivation_hook( WOO_WECHATPAY_PLUGIN_FILE, array( 'Woo_WechatPay', 'deactivate' ) );
register_uninstall_hook( WOO_WECHATPAY_PLUGIN_FILE, array( 'Woo_WechatPay', 'uninstall' ) );

function woo_wechatpay_extension( $wechat, $wp_weixin_settings, $wp_weixin, $wp_weixin_auth, $wp_weixin_responder, $wp_weixin_menu ) {

	if ( ! class_exists( 'WC_Payment_Gateway' ) ) {

		return;
	}

	$wc_wechatpay  = false;
	$use_ecommerce = wp_weixin_get_option( 'ecommerce' );

	if ( wp_weixin_get_option( 'enabled' ) ) {
		require_once WOO_WECHATPAY_PLUGIN_PATH . 'inc/class-wc-wechatpay.php';

		$wc_wechatpay = new WC_WechatPay( true );
	}

	$woowechatpay = new Woo_WechatPay( $wc_wechatpay, $wp_weixin_auth, true );
}

function woo_wechatpay_run() {
	add_action( 'wp_weixin_extensions', 'woo_wechatpay_extension', 0, 6 );
}
add_action( 'plugins_loaded', 'woo_wechatpay_run', 0, 0 );