/ Published in: PHP
possibilitar a leitura de cada chave especÃfica do google maps para cada domÃnio respectivo à chave
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<% url = Request.ServerVariables ("SERVER_NAME") %> <% if url = "www.azure.net.br" or url = "azure.net.br" then chave = "ABQIAAAAWWXfeGdnpXVEWVt9X6jhwRSPNaVZ5kdqx-L0F4UdWbaE4W7EeBTtv4-1xMvsb76ndtHN7TYqCIspMA" end if %> <% if url = "www.azure.inf.br" or url = "azure.inf.br" then chave = "ABQIAAAAWWXfeGdnpXVEWVt9X6jhwRShotxHYEG3owc5OPbKWIl7isuB8RS7P_Qgbz5gJJqZ4fsYvu3j-dtdMQ" end if %> <% if url = "www.azuresi.com.br" or url = "azuresi.com.br" then chave = "ABQIAAAAWWXfeGdnpXVEWVt9X6jhwRTsk6yEMGG-zOHdXC2PhSbq7Xlc0hRnrNbJPglDQQoriGsn3QqsUk0XKA" end if %> <script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=<%=chave%>" type="text/javascript"></script>