aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index a6cc23c9f..dfa7da0cb 100755
--- a/boot.php
+++ b/boot.php
@@ -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');