if (isset($_SERVER[‘HTTP_HOST’]) && preg_match(“/^(.*).dream.website$/”, $_SERVER[‘HTTP_HOST’])) {
$proto = (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] !== ‘off’) ? “https” : “http”;
What does this code do?
if (isset($_SERVER[‘HTTP_HOST’]) && preg_match(“/^(.*).dream.website$/”, $_SERVER[‘HTTP_HOST’])) {
$proto = (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] !== ‘off’) ? “https” : “http”;
What does this code do?