Website : phonehp.ir
backdoor
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Home
Console
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
nehpir
/
public_html
/
wp-content
/
plugins
/
woocommersa
/
includes
/
Filename :
Init.php
back
Warning
: Undefined variable $file in
/home/nehpir/public_html/goods.php
on line
545
Copy
<?php /** * WooCommersa Main Bootstrap (Clean Version - No License Check) */ if (!defined('ABSPATH')) exit; // The launch call is moved to the bottom of this file. /** * Main Class for WooCommersa */ class WooCommersa_Bootstrap { public static function launch() { if (defined('WOOCOMMERSA_LICENSE_ACTIVE') && WOOCOMMERSA_LICENSE_ACTIVE) { require_once WOOCOMMERSA_PATH . 'includes/Core/Autoloader.php'; \WooCommersa\Core\Autoloader::register(); add_action( 'plugins_loaded', array( self::class, 'init' ) ); add_action( 'init', array( self::class, 'load_textdomain' ) ); } else { add_action( 'admin_notices', array( self::class, 'license_missing_notice' ) ); } register_activation_hook( WOOCOMMERSA_PATH . 'woocommersa.php', array( '\WooCommersa\Core\Activator', 'activate' ) ); } public static function license_missing_notice() { ?> <div class="notice notice-error is-dismissible"> <p><?php echo sprintf( __( 'افزونه <b>ووکامرسا</b> غیرفعال است. لطفا برای استفاده از تمام قابلیتها، کد لایسنس خود را از مارکت <b>راستچین</b> دریافت و در بخش <a href="%s">تنظیمات لایسنس</a> وارد نمایید.', 'woocommersa' ), admin_url('admin.php?page=woocommersa-license') ); ?></p> </div> <?php } public static function init() { if ( ! class_exists( 'WooCommerce' ) ) { add_action( 'admin_notices', array( self::class, 'woocommerce_missing_notice' ) ); return; } // Bootstrap the modular plugin structure new \WooCommersa\Core\Plugin(); // Version-based DB update and migration $installed_version = get_option('woocommersa_version'); if (version_compare((string)$installed_version, (string)WOOCOMMERSA_VERSION, '<')) { \WooCommersa\Core\Activator::activate(); update_option('woocommersa_version', WOOCOMMERSA_VERSION); } // Handle SEO Redirections add_action('template_redirect', [self::class, 'handle_seo_redirections']); } public static function handle_seo_redirections() { if (!is_product()) return; $product_id = get_the_ID(); $redirect_status = get_post_meta($product_id, '_woocommersa_redirect_status', true); $redirect_url = get_post_meta($product_id, '_woocommersa_redirect_url', true); if ($redirect_status === 'yes' && !empty($redirect_url) && filter_var($redirect_url, FILTER_VALIDATE_URL)) { wp_redirect($redirect_url, 301); exit; } } public static function load_textdomain() { load_plugin_textdomain( 'woocommersa', false, dirname( plugin_basename( WOOCOMMERSA_PATH . 'woocommersa.php' ) ) . '/languages' ); } public static function woocommerce_missing_notice() { ?> <div class="error"> <p><?php _e( 'WooCommersa requires WooCommerce to be installed and active.', 'woocommersa' ); ?></p> </div> <?php } } // Launch the plugin directly \WooCommersa_Bootstrap::launch();