I'm just trying to migrate from 3.0.14 to 3.2.1. I'm working for some phpBB-Servers, but use only one phpBB-codebase. So in the config.php, I'm doing something like:
Code: Select all
if ($_SERVER['HTTP_HOST'] == "example1.com")
{ // set database for example1.com
}
else if ($_SERVER['HTTP_HOST'] == "example2.com")
{ // set database for example2.com
}
I understand that for accessing $_SERVER, you should use the class request, like:
Code: Select all
$request->server('HTTP_HOST');
Code: Select all
$request->enable_super_globals();