can('customiser','configure')) throw new Exception("Vous n'avez pas la permission pour executer cette fonctionnalité",403); $themes = array( "default" => array( "label" => "Défaut", "folder" => "", "css-relative-url" => "", "path" => "", "checked" => $conf->get('core_theme') == "", "last-update" => 0 ) ); foreach(glob(__DIR__.SLASH.'theme'.SLASH.'*'.SLASH.'app.json') as $themeFile){ $path = dirname($themeFile); $theme = json_decode(file_get_contents($themeFile),true); $theme['folder'] = $path; $theme['css-relative-url'] = '/plugin/customiser/theme/'.basename($path).'/main.css'; $theme['checked'] = $conf->get('core_theme') == $theme['css-relative-url']; $theme['last-update'] = filemtime($themeFile); $themes[] = $theme; } ?>