403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/plugins-install.php
<?php

// Prevent Direct Access
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

require __DIR__.'/plugins-install/class-tgm-plugin-activation.php';

function buka_register_required_plugins() {

	$plugins = [

		[
			'name'      => 'Codestar Framework',
			'slug'      => 'codestar-framework',
			'source'    => get_template_directory() . '/includes/plugins-install/plugins-files/codestar-framework.zip',
			'version'   => '2.1.1.1',
			'required'  => true,
		],
		[
			'name'      => 'Buka Elementor Addons',
			'slug'      => 'buka-elementor-addons',
			'source'    => get_template_directory() . '/includes/plugins-install/plugins-files/buka-elementor-addons.zip',
			'version'   => '1.2.2',
			'required'  => true,
		],
		[
			'name'      => 'Elementor',
			'slug'      => 'elementor',
			'required'  => true,
		],
		[
			'name'      => 'Kirki Customizer Framework',
			'slug'      => 'kirki',
			'required'  => true,
		],
		[
			'name'      => 'Meta Box',
			'slug'      => 'meta-box',
			'required'  => true,
		],
		[
			'name'      => 'Contact Form 7',
			'slug'      => 'contact-form-7',
			'required'  => false,
		],
		[
			'name'      => 'Classic Widgets',
			'slug'      => 'classic-widgets',
			'required'  => false,
		],
		[
			'name'      => 'One Click Demo Import',
			'slug'      => 'one-click-demo-import',
			'required'  => false,
		],

	];

	if( get_locale() == 'fa_IR' || get_locale() == 'fa_AF' ){

		$plugins[] = [
			'name'      => 'Parsi Date',
			'slug'      => 'wp-parsidate',
			'required'  => false,
		];

	}

	$config = [
		'id'           => 'wp-buka',                  // Unique ID for hashing notices for multiple instances of TGMPA.
		'default_path' => '',                         // Default absolute path to bundled plugins.
		'menu'         => 'buka-install-plugins',     // Menu slug.
		'parent_slug'  => 'plugins.php',              // Parent menu slug.
		'capability'   => 'manage_options',           // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
		'has_notices'  => true,                       // Show admin notices or not.
		'dismissable'  => true,                       // If false, a user cannot dismiss the nag message.
		'dismiss_msg'  => '',                         // If 'dismissable' is false, this message will be output at top of nag.
		'is_automatic' => true,                       // Automatically activate plugins after installation or not.
		'message'      => '',                         // Message to output right before the plugins table.
	];

	tgmpa( $plugins, $config );
}

add_action( 'tgmpa_register', 'buka_register_required_plugins' );

Youez - 2016 - github.com/yon3zu