From 5243dd153bed7fe79188478922a58e8057be3f3e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 7 Aug 2016 17:29:35 -0700 Subject: use config system.server_role and deprecate 'UNO' --- boot.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index a6cc23c9f..9eac0f884 100755 --- a/boot.php +++ b/boot.php @@ -602,8 +602,12 @@ function sys_boot() { @include('.htconfig.php'); - if(! defined('UNO')) - define('UNO', 0); + if(defined('UNO')) { + if(UNO) + App::$config['system']['server_role'] = 'basic'; + else + App::$config['system']['server_role'] = 'pro'; + } if(array_key_exists('default_timezone',get_defined_vars())) { App::$config['system']['timezone'] = $default_timezone; -- cgit v1.2.3