WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
ActivePro.php
9006
x
-
Config.php
1110
x
-
Convert.php
4621
x
-
Feedback.php
555
x
-
Helpers.php
2539
x
-
LoadAddons.php
998
x
-
Review.php
2672
x
-
Schedule.php
1046
x
-
Tree.php
4870
x
Upload
Simpan
<?php namespace FileBird\Classes; class Config { private static $loaded_configs = array(); /** * Set config * * Eg: Config::setConfig('PostType', $data); * or: Config::setConfig('PostType.name', 'foo'); */ public static function setConfig( $name, $data ) { $ex = explode( '.', $name ); if ( count( $ex ) == 1 ) { self::$loaded_configs[ $name ] = $data; } elseif ( count( $ex ) == 2 ) { if ( ! isset( self::$loaded_configs[ $ex[0] ] ) ) { self::$loaded_configs[ $ex[0] ] = array(); } self::$loaded_configs[ $ex[0] ][ $ex[1] ] = $data; } } /** * Get loaded config * * Eg: Config::getConfig('PostType.name'); */ public static function getConfig( $name ) { $ex = explode( '.', $name ); if ( count( $ex ) == 2 ) { if ( isset( self::$loaded_configs[ $ex[0] ] ) && isset( self::$loaded_configs[ $ex[0] ][ $ex[1] ] ) ) { return self::$loaded_configs[ $ex[0] ][ $ex[1] ]; } } } }
Exec