diff options
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -602,15 +602,22 @@ function sys_boot() { @include('.htconfig.php'); - if(! defined('UNO')) - define('UNO', 0); - if(array_key_exists('default_timezone',get_defined_vars())) { App::$config['system']['timezone'] = $default_timezone; } $a->convert(); + if(defined('UNO')) { + if(UNO) + App::$config['system']['server_role'] = 'basic'; + else + App::$config['system']['server_role'] = 'pro'; + } + + if(! (array_key_exists('server_role',App::$config['system']) && App::$config['system']['server_role'])) + App::$config['system']['server_role'] = 'pro'; + App::$timezone = ((App::$config['system']['timezone']) ? App::$config['system']['timezone'] : 'UTC'); date_default_timezone_set(App::$timezone); @@ -633,7 +640,6 @@ function sys_boot() { * Load configs from db. Overwrite configs from .htconfig.php */ - load_config('config'); load_config('system'); load_config('feature'); |