isInstallMode() instead to check for install mode. */ const MODE_INSTALL = 0; /** * @deprecated since version 2008.08 Use the precise mode constant to check for a specific capability instead. */ const MODE_NORMAL = App::MODE_LOCALCONFIGPRESENT | App::MODE_DBAVAILABLE | App::MODE_DBCONFIGAVAILABLE | App::MODE_MAINTENANCEDISABLED; public $module_loaded = false; public $module_class = null; public $query_string = ''; public $config = []; public $page = []; public $pager = []; public $page_offset; public $profile; public $profile_uid; public $user; public $cid; public $contact; public $contacts; public $page_contact; public $content; public $data = []; public $error = false; public $cmd = ''; public $argv; public $argc; public $module; public $mode = App::MODE_INSTALL; public $strings; public $basepath; public $urlpath; public $hooks = []; public $timezone; public $interactive = true; public $addons; public $addons_admin = []; public $apps = []; public $identities; public $is_mobile = false; public $is_tablet = false; public $is_friendica_app; public $performance = []; public $callstack = []; public $theme_info = []; public $backend = true; public $nav_sel; public $category; // Allow themes to control internal parameters // by changing App values in theme.php public $sourcename = ''; public $videowidth = 425; public $videoheight = 350; public $force_max_items = 0; public $theme_events_in_profile = true; public $stylesheets = []; public $footerScripts = []; /** * Register a stylesheet file path to be included in the tag of every page. * Inclusion is done in App->initHead(). * The path can be absolute or relative to the Friendica installation base folder. * * @see App->initHead() * * @param string $path */ public function registerStylesheet($path) { $url = str_replace($this->get_basepath() . DIRECTORY_SEPARATOR, '', $path); $this->stylesheets[] = trim($url, '/'); } /** * Register a javascript file path to be included in the