403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.216.179
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/bzcreative.co.uk/wp-content/plugins/elementskit-lite/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/bzcreative.co.uk/wp-content/plugins/elementskit-lite/core/build-modules.php
<?php
namespace ElementsKit_Lite\Core;
use ElementsKit_Lite\Libs\Framework\Attr;

defined( 'ABSPATH' ) || exit;

/**
 * Module registrar.
 *
 * Call assosiated classes of every modules.
 *
 * @since 1.0.0
 * @access public
 */
class Build_Modules{

    private $all_modules;

    private $active_modules;

    use \ElementsKit_Lite\Traits\Singleton;

	/**
	 * Hold the module list.
	 *
	 * @since 1.0.0
	 * @access public
	 * @static
	 */

    private $system_modules = [
        'dynamic-content',
        'library',
        'controls',
    ];

    public function __construct(){
        $this->all_modules = \ElementsKit_Lite\Helpers\Module_List::instance()->get_list();
        $this->active_modules = Attr::instance()->utils->get_option('module_list', array_keys($this->all_modules));
        $this->active_modules = array_merge($this->active_modules, $this->system_modules);

        foreach($this->active_modules as $module_slug){
            if(isset($this->all_modules[$module_slug]['package']) && $this->all_modules[$module_slug]['package'] == 'pro-disabled'){
                continue;
            }

            if(isset($this->all_modules[$module_slug]['path'])){
                include_once $this->all_modules[$module_slug]['path'] . 'init.php';
            }

            // make the class name and call it.
            $class_name = (
                isset($this->all_modules[$module_slug]['base_class_name'])
                ? $this->all_modules[$module_slug]['base_class_name']
                : '\ElementsKit_Lite\Modules\\'. \ElementsKit_Lite\Utils::make_classname($module_slug) .'\Init'
            );
            if(class_exists($class_name)){
                new $class_name();
            }
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit