Esempio n. 1
0
 private static function checkThemes()
 {
     $g = glob(TH_ROOT . TH_THEMES . '*/theme.json');
     foreach ($g as $v) {
         $parts = explode('/', str_replace('\\', '/', $v));
         $ini = (array) json_decode(file_get_contents($v));
         $themes[$parts[count($parts) - 2]] = $ini;
     }
     self::$themes = $themes;
 }