aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-09 18:54:10 -0800
committerzotlabs <mike@macgirvin.com>2017-03-09 18:54:10 -0800
commit1a49f0d164ce94bc3fce227a68aa3796e22347e1 (patch)
tree01aa60c0d16a2a9c567d64297473b486c7bb526b /boot.php
parentc93db2cd218d5a1e8ff6e5b243b99e7fcbae36ea (diff)
downloadvolse-hubzilla-1a49f0d164ce94bc3fce227a68aa3796e22347e1.tar.gz
volse-hubzilla-1a49f0d164ce94bc3fce227a68aa3796e22347e1.tar.bz2
volse-hubzilla-1a49f0d164ce94bc3fce227a68aa3796e22347e1.zip
one role.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php47
1 files changed, 2 insertions, 45 deletions
diff --git a/boot.php b/boot.php
index 751bee9ec..16d60f61e 100755
--- a/boot.php
+++ b/boot.php
@@ -49,7 +49,7 @@ require_once('include/xchan.php');
require_once('include/hubloc.php');
-define ( 'PLATFORM_NAME', 'hubzilla' );
+define ( 'PLATFORM_NAME', 'red' );
define ( 'STD_VERSION', '2.3' );
define ( 'ZOT_REVISION', '1.2' );
@@ -166,14 +166,6 @@ define ( 'LOGGER_ALL', 4 );
/**
- * Server roles
- */
-
-define ( 'SERVER_ROLE_BASIC', 0x0001 );
-define ( 'SERVER_ROLE_STANDARD', 0x0002 );
-define ( 'SERVER_ROLE_PRO', 0x0004 );
-
-/**
* registration policies
*/
@@ -620,15 +612,7 @@ function sys_boot() {
$a->convert();
- if(defined('UNO')) {
- if(UNO)
- App::$config['system']['server_role'] = 'basic';
- else
- App::$config['system']['server_role'] = 'standard';
- }
-
- if(! (array_key_exists('server_role',App::$config['system']) && App::$config['system']['server_role']))
- App::$config['system']['server_role'] = 'standard';
+ App::$config['system']['server_role'] = 'pro';
App::$timezone = ((App::$config['system']['timezone']) ? App::$config['system']['timezone'] : 'UTC');
date_default_timezone_set(App::$timezone);
@@ -755,7 +739,6 @@ class miniApp {
class App {
public static $install = false; // true if we are installing the software
- public static $role = 0; // server role (constant, not the string)
public static $account = null; // account record of the logged-in account
public static $channel = null; // channel record of the current channel of the logged-in account
public static $observer = null; // xchan record of the page observer
@@ -1030,36 +1013,10 @@ class App {
}
}
- public static function get_role() {
- if(! self::$role)
- return self::set_role();
- return self::$role;
- }
-
- public static function set_role() {
- $role_str = \Zotlabs\Lib\System::get_server_role();
- switch($role_str) {
- case 'basic':
- $role = SERVER_ROLE_BASIC;
- break;
- case 'pro':
- $role = SERVER_ROLE_PRO;
- break;
- case 'standard':
- default:
- $role = SERVER_ROLE_STANDARD;
- break;
- }
- self::$role = $role;
- return $role;
- }
-
-
public static function get_scheme() {
return self::$scheme;
}
-
public static function get_hostname() {
return self::$hostname;
}