$Host = $_SERVER['HTTP_HOST']; $toRemove = 'www.'; if(substr($Host,0,strlen($toRemove))==$toRemove) { $Host = substr($Host,strlen($toRemove)); } if($Host=='living-store.it') { $Conf = array( 'color' => '#012b6f', 'img' => 'living' ); } else { $Conf = array( 'color' => '#101f56', 'img' => 'om' ); } ?>