Mass move to root

This commit is contained in:
magnolia-fan
2011-04-09 17:41:24 +04:00
parent 0640e2424e
commit 62ff3f277f
484 changed files with 0 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
class Config {
private static $_config = array();
public static function loadFile($config_name, $file_path) {
self::$_config[$config_name] = parse_ini_file($file_path, true);
}
public static function get($str) {
$path = explode(':', $str);
$res = self::$_config;
for ($i = 0; $i < count($path); $i++) {
$res = $res[$path[$i]];
}
return $res;
}
}
?>