mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
server roles
This commit is contained in:
parent
5243dd153b
commit
de455e4cd0
1 changed files with 8 additions and 6 deletions
14
boot.php
14
boot.php
|
@ -602,6 +602,12 @@ function sys_boot() {
|
|||
|
||||
@include('.htconfig.php');
|
||||
|
||||
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';
|
||||
|
@ -609,11 +615,8 @@ function sys_boot() {
|
|||
App::$config['system']['server_role'] = 'pro';
|
||||
}
|
||||
|
||||
if(array_key_exists('default_timezone',get_defined_vars())) {
|
||||
App::$config['system']['timezone'] = $default_timezone;
|
||||
}
|
||||
|
||||
$a->convert();
|
||||
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);
|
||||
|
@ -637,7 +640,6 @@ function sys_boot() {
|
|||
* Load configs from db. Overwrite configs from .htconfig.php
|
||||
*/
|
||||
|
||||
load_config('config');
|
||||
load_config('system');
|
||||
load_config('feature');
|
||||
|
||||
|
|
Loading…
Reference in a new issue