diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-02-09 06:03:43 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-02-09 06:03:43 +0100 |
commit | 8c99228c8ab4d0475dc2065e5682dd22d680d4e7 (patch) | |
tree | 65d2d57bde451526dc1dc3567d4c8722c7df807b /boot.php | |
parent | 2935c5fe1ad7999d6abf527bfc8e8d353ceb9d32 (diff) | |
parent | f984502499c836cde0be647907be505508c04e0c (diff) | |
download | volse-hubzilla-8c99228c8ab4d0475dc2065e5682dd22d680d4e7.tar.gz volse-hubzilla-8c99228c8ab4d0475dc2065e5682dd22d680d4e7.tar.bz2 volse-hubzilla-8c99228c8ab4d0475dc2065e5682dd22d680d4e7.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -650,7 +650,6 @@ class App { private $perms = null; // observer permissions private $widgets = array(); // widgets for this page - public $groups; public $language; public $module_loaded = false; @@ -2167,7 +2166,8 @@ function construct_page(&$a) { if($a->get_scheme() === 'https' && $a->config['system']['transport_security_header']) header("Strict-Transport-Security: max-age=31536000"); - header("Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"); + if($a->config['system']['content_security_policy']) + header("Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"); if($a->config['system']['x_security_headers']) { header("X-Frame-Options: SAMEORIGIN"); @@ -2394,3 +2394,9 @@ function get_site_icon() { return z_root() . '/images/hz-32.png'; } + +function get_server_role() { + if(UNO) + return 'basic'; + return 'advanced'; +} |