Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Application\Core\System;
- class Config
- {
- protected static $_path_default_base_config = '/core/system/default_config.php';
- protected static $_path_base_config = '/core/config/base_config.php';
- protected static $_path_config = '/core/config/config.php';
- protected static $_base = array();
- protected static $_config = array();
- protected function __construct()
- {
- }
- protected function __clone()
- {
- }
- protected function __destruct()
- {
- }
- public static function base($name = null)
- {
- return (!is_null($name) ? self::$_base[$name] : self::$_base);
- }
- public static function get($name = null)
- {
- return (!is_null($name) ? self::$_config[$name] : self::$_config);
- }
- public static function setBaseConfigPath($path = '')
- {
- self::$_path_base_config = $path;
- }
- public static function setConfigPath($path = '')
- {
- self::$_path_config = $path;
- }
- public static function load_base_config()
- {
- if (!file_exists(self::$_path_base_config)) {
- exit('error_system_is_not_configured');
- }
- self::$_base = self::load(self::$_path_base_config);
- }
- public static function load_config()
- {
- if (file_exists(self::$_path_config)) {
- self::$_config = self::load(self::$_path_config);
- ..................................................................
- ......................................
- ..............
Add Comment
Please, Sign In to add comment