diff --git a/html/index.php b/html/index.php index 583ceb5732..1e3327fead 100755 --- a/html/index.php +++ b/html/index.php @@ -19,7 +19,8 @@ include("../includes/functions.php"); include("includes/functions.inc.php"); // Check for install.inc.php -if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php') { +if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php') +{ // no config.php does so let's redirect to the install header('Location: /install.php'); exit; @@ -93,23 +94,6 @@ include("includes/authenticate.inc.php"); if (strstr($_SERVER['REQUEST_URI'], 'widescreen=yes')) { $_SESSION['widescreen'] = 1; } if (strstr($_SERVER['REQUEST_URI'], 'widescreen=no')) { unset($_SESSION['widescreen']); } -# Load the settings for Multi-Tenancy. -if (isset($config['branding']) && is_array($config['branding'])) -{ - if ($config['branding'][$_SERVER['SERVER_NAME']]) - { - foreach ($config['branding'][$_SERVER['SERVER_NAME']] as $confitem => $confval) - { - eval("\$config['" . $confitem . "'] = \$confval;"); - } - } else { - foreach ($config['branding']['default'] as $confitem => $confval) - { - eval("\$config['" . $confitem . "'] = \$confval;"); - } - } -} - # page_title_prefix is displayed, unless page_title is set if ($config['page_title']) { $config['page_title_prefix'] = $config['page_title']; } @@ -120,8 +104,6 @@ if ($config['page_title']) { $config['page_title_prefix'] = $config['page_title'