123456789101112131415161718192021222324 |
- <?php
- global $_,$conf;
- switch($_['action']){
- //Reset des paramètres du thème
- case 'customiser_reset_theme':
- global $myUser,$_,$conf;
- if(!$myUser->can('customiser','configure')) throw new Exception("Permissions insuffisantes",403);
- if(file_exists(__DIR__.SLASH.'css'.SLASH.'theme.css'))
- unlink(__DIR__.SLASH.'css'.SLASH.'theme.css');
- header('location: setting.php?section=global.customiser');
- break;
- case 'customiser_theme_save':
- Action::write(function(&$response){
- global $myUser,$_,$conf;
- if(!$myUser->can('customiser','configure')) throw new Exception("Permissions insuffisantes",403);
-
- $conf->put('core_theme',$_['theme']);
-
- });
- break;
- }
- ?>
|