403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.217.73
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/domains/new.davlermedia.com/wp-content/plugins/templately/includes/Core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/domains/new.davlermedia.com/wp-content/plugins/templately/includes/Core/Module.php
<?php
namespace Templately\Core;

use Templately\Utils\Base;
use function is_subclass_of;

class Module extends Base {
    private $modules = [];

    public function active( $module, $type = 'Platform' ){
        $_type = \strtolower( $type );
        if( array_key_exists( $_type, $this->modules ) &&
            array_key_exists( $module, $this->modules[ $_type ] ) &&
            is_subclass_of( $this->modules[ $_type ][ $module ]->object, __NAMESPACE__ . '\\' . $type ) ) {
            return $this->modules[ $_type ][ $module ]->object;
        }

        return null;
    }

    public function add( $module, $type = 'Platform' ){
        $_type = \strtolower( $type );
        if( ! array_key_exists( $_type, $this->modules) ) {
            $this->modules[ $_type ] = [];
        }

		if( isset( $module->id ) ) {
			$this->modules[ $_type ][ $module->id ] = $module;
		} else {
			$this->modules[ $_type ][] = $module;
		}
    }

	public function get( $type = 'Platform' ){
		$_type = \strtolower( $type );
		if( array_key_exists( $_type, $this->modules ) ) {
			return $this->modules[ $_type ];
		}

		return [];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit