Return to Snippet

Revision: 38767
at January 7, 2011 05:00 by rbulgueroni


Initial Code
<% 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&amp;v=2&amp;sensor=true&amp;key=<%=chave%>" type="text/javascript"></script>

Initial URL

                                

Initial Description
possibilitar a leitura de cada chave específica do google maps para cada domínio respectivo à chave

Initial Title
Google Maps para múltiplos domínios

Initial Tags
php

Initial Language
PHP