HEX
Server: Apache/2.4.25
System: Linux ion14 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
User: (10087)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,system, exec, shell_exec, passthru, popen, proc_open
Upload Files
File: /home/www/web115/wordpress/wp-content/plugins/digimember/system/base/plugin.php
<?php

abstract class ncore_Plugin
{
    public function __construct( $parent, $type, $meta )
    {
        $this->parent = $parent;
        $this->api = $parent->api();
        $this->type = $type;
        $this->meta = (array) $meta;

        foreach ($this->metaDefaults() as $key => $value)
        {
            $must_set = !isset( $this->meta[ $key ] );
            if ($must_set) {
                $this->meta[ $key ] = $value;
            }
        }
    }

    /** @var ncore_ApiCore */
    protected $api;

    protected function meta( $name_or_names, $default = '' )
    {
        $names = is_array($name_or_names)
               ? $name_or_names
               : array( $name_or_names);

        foreach ($names as $name)
        {
            if (isset( $this->meta[$name] ))
            {
                return $this->meta[$name];
            }
        }

        if ($default === NCORE_ARG_REQUIRED)
        {
            $names_txt = implode( '/', $names);
            trigger_error( "Meta '$names_txt' is required!" );
        }

        return $default;
    }

    protected function metaDefaults()
    {
        return array();
    }

    protected function metas() {
        return $this->meta;
    }

    protected function parent()
    {
        return $this->parent;
    }

    protected function type()
    {
        return $this->type;
    }

    private $meta;
    private $parent;
    private $type;
}